qwester 0.0.8 → 0.0.9

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.
Files changed (33) hide show
  1. data/README.rdoc +33 -0
  2. data/app/models/qwester/answer_store.rb +11 -1
  3. data/app/models/qwester/rule_set.rb +1 -1
  4. data/db/migrate/20121122130930_add_position_to_answers.rb +11 -0
  5. data/lib/qwester/version.rb +5 -1
  6. data/test/dummy/app/models/admin_user.rb +0 -9
  7. data/test/dummy/db/development.sqlite3 +0 -0
  8. data/test/dummy/db/migrate/{20130111112926_create_rule_sets.qwester.rb → 20130314103647_create_rule_sets.qwester.rb} +1 -1
  9. data/test/dummy/db/migrate/{20130111121500_add_ids_to_questionnaires_questions.qwester.rb → 20130314103655_add_ids_to_questionnaires_questions.qwester.rb} +1 -1
  10. data/test/dummy/db/migrate/20130314103656_add_position_to_answers.qwester.rb +12 -0
  11. data/test/dummy/db/schema.rb +3 -4
  12. data/test/dummy/db/test.sqlite3 +0 -0
  13. data/test/dummy/log/development.log +597 -0
  14. data/test/dummy/log/test.log +13644 -0
  15. data/test/unit/qwester/answer_store_test.rb +5 -0
  16. metadata +39 -39
  17. data/db/migrate/20121122130930_add_cope_index_and_position_to_answers.rb +0 -6
  18. data/test/dummy/db/migrate/20130111112934_add_cope_index_and_position_to_answers.qwester.rb +0 -7
  19. /data/test/dummy/db/migrate/{20130111112924_create_questions.qwester.rb → 20130314103645_create_questions.qwester.rb} +0 -0
  20. /data/test/dummy/db/migrate/{20130111112925_create_answers.qwester.rb → 20130314103646_create_answers.qwester.rb} +0 -0
  21. /data/test/dummy/db/migrate/{20130111112927_create_questionnaires.qwester.rb → 20130314103648_create_questionnaires.qwester.rb} +0 -0
  22. /data/test/dummy/db/migrate/{20130111112928_create_answer_stores.qwester.rb → 20130314103649_create_answer_stores.qwester.rb} +0 -0
  23. /data/test/dummy/db/migrate/{20130111112929_add_questionnaire_id_to_answers.qwester.rb → 20130314103650_add_questionnaire_id_to_answers.qwester.rb} +0 -0
  24. /data/test/dummy/db/migrate/{20130111112930_change_answers_value_to_string.qwester.rb → 20130314103651_change_answers_value_to_string.qwester.rb} +0 -0
  25. /data/test/dummy/db/migrate/{20130111112931_add_button_image_to_questionnaires.qwester.rb → 20130314103652_add_button_image_to_questionnaires.qwester.rb} +0 -0
  26. /data/test/dummy/db/migrate/{20130111112932_create_ckeditor_assets.qwester.rb → 20130314103653_create_ckeditor_assets.qwester.rb} +0 -0
  27. /data/test/dummy/db/migrate/{20130111112933_add_ref_to_questions.qwester.rb → 20130314103654_add_ref_to_questions.qwester.rb} +0 -0
  28. /data/test/dummy/db/migrate/{20130111112935_remove_questionnaire_from_answer.qwester.rb → 20130314103657_remove_questionnaire_from_answer.qwester.rb} +0 -0
  29. /data/test/dummy/db/migrate/{20130111112936_add_rule_to_rule_sets.qwester.rb → 20130314103658_add_rule_to_rule_sets.qwester.rb} +0 -0
  30. /data/test/dummy/db/migrate/{20130111112937_add_multi_answer_to_questions.qwester.rb → 20130314103659_add_multi_answer_to_questions.qwester.rb} +0 -0
  31. /data/test/dummy/db/migrate/{20130111112938_create_answer_stores_questionnaires.qwester.rb → 20130314103660_create_answer_stores_questionnaires.qwester.rb} +0 -0
  32. /data/test/dummy/db/migrate/{20130111112939_add_link_text_to_rule_sets.qwester.rb → 20130314103661_add_link_text_to_rule_sets.qwester.rb} +0 -0
  33. /data/test/dummy/db/migrate/{20130306115340_add_preserved_to_answer_stores.qwester.rb → 20130314103662_add_preserved_to_answer_stores.qwester.rb} +0 -0
@@ -40365,3 +40365,600 @@ Connecting to database specified by database.yml
40365
40365
  SQL (7.5ms) DELETE FROM "qwester_answer_stores" WHERE "qwester_answer_stores"."id" = ? [["id", 1]]
40366
40366
   (133.1ms) commit transaction
40367
40367
   (1.8ms) SELECT COUNT(*) FROM "qwester_answer_stores"
40368
+ Connecting to database specified by database.yml
40369
+ Connecting to database specified by database.yml
40370
+ Connecting to database specified by database.yml
40371
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
40372
+ Migrating to DeviseCreateAdminUsers (20130110115938)
40373
+ Migrating to CreateAdminComments (20130110115940)
40374
+ Migrating to CreateQuestions (20130111112924)
40375
+ Migrating to CreateAnswers (20130111112925)
40376
+ Migrating to CreateRuleSets (20130111112926)
40377
+ Migrating to CreateQuestionnaires (20130111112927)
40378
+ Migrating to CreateAnswerStores (20130111112928)
40379
+ Migrating to AddQuestionnaireIdToAnswers (20130111112929)
40380
+ Migrating to ChangeAnswersValueToString (20130111112930)
40381
+ Migrating to AddButtonImageToQuestionnaires (20130111112931)
40382
+ Migrating to CreateCkeditorAssets (20130111112932)
40383
+ Migrating to AddRefToQuestions (20130111112933)
40384
+ Migrating to AddCopeIndexAndPositionToAnswers (20130111112934)
40385
+ Migrating to RemoveQuestionnaireFromAnswer (20130111112935)
40386
+ Migrating to AddRuleToRuleSets (20130111112936)
40387
+ Migrating to AddMultiAnswerToQuestions (20130111112937)
40388
+ Migrating to CreateAnswerStoresQuestionnaires (20130111112938)
40389
+ Migrating to AddLinkTextToRuleSets (20130111112939)
40390
+ Migrating to AddIdsToQuestionnairesQuestions (20130111121500)
40391
+ Migrating to AddPreservedToAnswerStores (20130306115340)
40392
+ Migrating to AddPositionToAnswers (20130314102933)
40393
+  (0.1ms) select sqlite_version(*)
40394
+  (0.1ms) begin transaction
40395
+  (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314102933')
40396
+  (162.7ms) commit transaction
40397
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40398
+ Connecting to database specified by database.yml
40399
+  (0.2ms) select sqlite_version(*)
40400
+  (174.3ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
40401
+  (219.4ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40402
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40403
+ Migrating to DeviseCreateAdminUsers (20130110115938)
40404
+  (0.2ms) begin transaction
40405
+  (7.9ms) 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)
40406
+  (0.4ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
40407
+  (0.2ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
40408
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130110115938')
40409
+  (179.9ms) commit transaction
40410
+ Migrating to CreateAdminComments (20130110115940)
40411
+  (0.1ms) begin transaction
40412
+  (3.6ms) 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)
40413
+  (0.3ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
40414
+  (0.6ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
40415
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130110115940')
40416
+  (134.8ms) commit transaction
40417
+ Migrating to CreateQuestions (20130111112924)
40418
+  (0.1ms) begin transaction
40419
+  (1.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)
40420
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112924')
40421
+  (125.2ms) commit transaction
40422
+ Migrating to CreateAnswers (20130111112925)
40423
+  (0.7ms) begin transaction
40424
+  (4.7ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40425
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112925')
40426
+  (113.2ms) commit transaction
40427
+ Migrating to CreateRuleSets (20130111112926)
40428
+  (0.1ms) begin transaction
40429
+  (0.4ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" varchar(255), "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40430
+  (0.2ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
40431
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112926')
40432
+  (98.9ms) commit transaction
40433
+ Migrating to CreateQuestionnaires (20130111112927)
40434
+  (0.1ms) begin transaction
40435
+  (0.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) 
40436
+  (0.1ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer)
40437
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112927')
40438
+  (82.6ms) commit transaction
40439
+ Migrating to CreateAnswerStores (20130111112928)
40440
+  (0.1ms) begin transaction
40441
+  (1.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)
40442
+  (0.2ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer) 
40443
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112928')
40444
+  (88.8ms) commit transaction
40445
+ Migrating to AddQuestionnaireIdToAnswers (20130111112929)
40446
+  (0.1ms) begin transaction
40447
+  (0.5ms) ALTER TABLE "qwester_answers" ADD "questionnaire_id" integer
40448
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112929')
40449
+  (103.6ms) commit transaction
40450
+ Migrating to ChangeAnswersValueToString (20130111112930)
40451
+  (0.1ms) begin transaction
40452
+  (0.4ms) CREATE TEMPORARY TABLE "altered_qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "questionnaire_id" integer) 
40453
+  (0.1ms) SELECT * FROM "qwester_answers"
40454
+  (0.2ms) DROP TABLE "qwester_answers"
40455
+  (0.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, "questionnaire_id" integer)
40456
+  (0.1ms) SELECT * FROM "altered_qwester_answers"
40457
+  (0.3ms) DROP TABLE "altered_qwester_answers"
40458
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112930')
40459
+  (138.4ms) commit transaction
40460
+ Migrating to AddButtonImageToQuestionnaires (20130111112931)
40461
+  (0.1ms) begin transaction
40462
+  (0.4ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_name" varchar(255)
40463
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_content_type" varchar(255)
40464
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_size" integer
40465
+  (0.1ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_updated_at" datetime
40466
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112931')
40467
+  (286.5ms) commit transaction
40468
+ Migrating to CreateCkeditorAssets (20130111112932)
40469
+  (0.1ms) begin transaction
40470
+  (0.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) 
40471
+  (0.2ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
40472
+  (0.2ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
40473
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112932')
40474
+  (240.0ms) commit transaction
40475
+ Migrating to AddRefToQuestions (20130111112933)
40476
+  (0.1ms) begin transaction
40477
+  (0.4ms) ALTER TABLE "qwester_questions" ADD "ref" varchar(255)
40478
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112933')
40479
+  (221.9ms) commit transaction
40480
+ Migrating to AddCopeIndexAndPositionToAnswers (20130111112934)
40481
+  (0.1ms) begin transaction
40482
+  (0.7ms) ALTER TABLE "qwester_answers" ADD "position" integer
40483
+  (0.5ms) ALTER TABLE "qwester_answers" ADD "cope_index" integer DEFAULT 0
40484
+  (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112934')
40485
+  (197.4ms) commit transaction
40486
+ Migrating to RemoveQuestionnaireFromAnswer (20130111112935)
40487
+  (0.1ms) begin transaction
40488
+  (0.3ms) CREATE TEMPORARY TABLE "altered_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, "questionnaire_id" integer, "position" integer, "cope_index" integer DEFAULT 0)
40489
+  (0.2ms) SELECT * FROM "qwester_answers"
40490
+  (0.3ms) DROP TABLE "qwester_answers"
40491
+  (0.7ms) 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, "cope_index" integer DEFAULT 0) 
40492
+  (0.2ms) SELECT * FROM "altered_qwester_answers"
40493
+  (0.2ms) DROP TABLE "altered_qwester_answers"
40494
+  (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112935')
40495
+  (126.4ms) commit transaction
40496
+ Migrating to AddRuleToRuleSets (20130111112936)
40497
+  (0.1ms) begin transaction
40498
+  (1.3ms) ALTER TABLE "qwester_rule_sets" ADD "rule" text
40499
+  (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112936')
40500
+  (126.8ms) commit transaction
40501
+ Migrating to AddMultiAnswerToQuestions (20130111112937)
40502
+  (0.3ms) begin transaction
40503
+  (9.6ms) ALTER TABLE "qwester_questions" ADD "multi_answer" boolean
40504
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112937')
40505
+  (207.2ms) commit transaction
40506
+ Migrating to CreateAnswerStoresQuestionnaires (20130111112938)
40507
+  (0.3ms) begin transaction
40508
+  (1.6ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
40509
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112938')
40510
+  (313.8ms) commit transaction
40511
+ Migrating to AddLinkTextToRuleSets (20130111112939)
40512
+  (0.1ms) begin transaction
40513
+  (0.5ms) ALTER TABLE "qwester_rule_sets" ADD "link_text" varchar(255)
40514
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111112939')
40515
+  (546.6ms) commit transaction
40516
+ Migrating to AddIdsToQuestionnairesQuestions (20130111121500)
40517
+  (0.1ms) begin transaction
40518
+  (0.3ms) CREATE TEMPORARY TABLE "altered_qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer) 
40519
+  (0.1ms) SELECT * FROM "qwester_questionnaires_questions"
40520
+  (1.5ms) DROP TABLE "qwester_questionnaires_questions"
40521
+  (1.0ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
40522
+  (0.1ms) SELECT * FROM "altered_qwester_questionnaires_questions"
40523
+  (0.1ms) DROP TABLE "altered_qwester_questionnaires_questions"
40524
+  (0.2ms) ALTER TABLE "qwester_questionnaires_questions" ADD "position" integer
40525
+  (0.1ms) ALTER TABLE "qwester_questionnaires_questions" ADD "created_at" datetime
40526
+  (0.2ms) ALTER TABLE "qwester_questionnaires_questions" ADD "updated_at" datetime
40527
+  (0.1ms) UPDATE qwester_questionnaires_questions SET created_at = '2013-03-14 10:30:51', updated_at = '2013-03-14 10:30:51';
40528
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130111121500')
40529
+  (607.9ms) commit transaction
40530
+ Migrating to AddPreservedToAnswerStores (20130306115340)
40531
+  (0.2ms) begin transaction
40532
+  (2.8ms) ALTER TABLE "qwester_answer_stores" ADD "preserved" datetime
40533
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130306115340')
40534
+  (497.3ms) commit transaction
40535
+ Migrating to AddPositionToAnswers (20130314102933)
40536
+  (0.1ms) begin transaction
40537
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314102933')
40538
+  (536.2ms) commit transaction
40539
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40540
+ Connecting to database specified by database.yml
40541
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" 
40542
+ Connecting to database specified by database.yml
40543
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
40544
+  (0.2ms) select sqlite_version(*)
40545
+  (171.2ms) 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) 
40546
+  (155.6ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
40547
+  (107.8ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
40548
+  (120.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)
40549
+  (132.2ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
40550
+  (172.7ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
40551
+  (156.5ms) 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) 
40552
+  (223.4ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer)
40553
+  (145.0ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
40554
+  (169.2ms) 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, "cope_index" integer DEFAULT 0)
40555
+  (219.7ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
40556
+  (270.0ms) 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)
40557
+  (281.4ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
40558
+  (307.1ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
40559
+  (244.4ms) 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) 
40560
+  (126.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)
40561
+  (232.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) 
40562
+  (305.4ms) CREATE TABLE "qwester_rule_sets" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar(255), "description" varchar(255), "url" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "rule" text, "link_text" varchar(255))
40563
+  (274.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
40564
+  (325.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40565
+  (0.3ms) SELECT version FROM "schema_migrations"
40566
+  (658.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20130314102933')
40567
+  (518.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20130111112935')
40568
+  (310.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130111112933')
40569
+  (348.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20130111112939')
40570
+  (265.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20130111112927')
40571
+ Interrupt: : INSERT INTO "schema_migrations" (version) VALUES ('20130111112927')
40572
+ Connecting to database specified by database.yml
40573
+  (0.1ms) select sqlite_version(*)
40574
+  (201.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
40575
+  (239.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40576
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40577
+ Migrating to CreateQuestions (20130314103645)
40578
+  (0.1ms) begin transaction
40579
+  (7.4ms) 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)
40580
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103645')
40581
+  (266.3ms) commit transaction
40582
+ Migrating to CreateAnswers (20130314103646)
40583
+  (0.1ms) begin transaction
40584
+  (4.0ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40585
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103646')
40586
+  (131.1ms) commit transaction
40587
+ Migrating to CreateRuleSets (20130314103647)
40588
+  (0.2ms) begin transaction
40589
+  (4.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)
40590
+  (0.5ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
40591
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103647')
40592
+  (135.9ms) commit transaction
40593
+ Migrating to CreateQuestionnaires (20130314103648)
40594
+  (0.1ms) begin transaction
40595
+  (0.4ms) 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) 
40596
+  (0.2ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer)
40597
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103648')
40598
+  (134.8ms) commit transaction
40599
+ Migrating to CreateAnswerStores (20130314103649)
40600
+  (0.1ms) begin transaction
40601
+  (0.4ms) 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)
40602
+  (0.1ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer) 
40603
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103649')
40604
+  (144.3ms) commit transaction
40605
+ Migrating to AddQuestionnaireIdToAnswers (20130314103650)
40606
+  (0.3ms) begin transaction
40607
+  (0.5ms) ALTER TABLE "qwester_answers" ADD "questionnaire_id" integer
40608
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103650')
40609
+  (140.6ms) commit transaction
40610
+ Migrating to ChangeAnswersValueToString (20130314103651)
40611
+  (0.3ms) begin transaction
40612
+  (0.6ms) CREATE TEMPORARY TABLE "altered_qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "questionnaire_id" integer) 
40613
+  (0.2ms) SELECT * FROM "qwester_answers"
40614
+  (0.4ms) DROP TABLE "qwester_answers"
40615
+  (4.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, "questionnaire_id" integer)
40616
+  (0.2ms) SELECT * FROM "altered_qwester_answers"
40617
+  (0.4ms) DROP TABLE "altered_qwester_answers"
40618
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103651')
40619
+  (211.0ms) commit transaction
40620
+ Migrating to AddButtonImageToQuestionnaires (20130314103652)
40621
+  (0.1ms) begin transaction
40622
+  (1.9ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_name" varchar(255)
40623
+  (0.3ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_content_type" varchar(255)
40624
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_size" integer
40625
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_updated_at" datetime
40626
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103652')
40627
+  (524.6ms) commit transaction
40628
+ Migrating to CreateCkeditorAssets (20130314103653)
40629
+  (0.1ms) begin transaction
40630
+  (10.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) 
40631
+  (0.4ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
40632
+  (0.4ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
40633
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103653')
40634
+  (221.4ms) commit transaction
40635
+ Migrating to AddRefToQuestions (20130314103654)
40636
+  (0.1ms) begin transaction
40637
+  (0.6ms) ALTER TABLE "qwester_questions" ADD "ref" varchar(255)
40638
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103654')
40639
+  (276.4ms) commit transaction
40640
+ Migrating to AddIdsToQuestionnairesQuestions (20130314103655)
40641
+  (0.1ms) begin transaction
40642
+  (0.4ms) CREATE TEMPORARY TABLE "altered_qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer) 
40643
+  (0.2ms) SELECT * FROM "qwester_questionnaires_questions"
40644
+  (0.4ms) DROP TABLE "qwester_questionnaires_questions"
40645
+  (1.0ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
40646
+  (0.1ms) SELECT * FROM "altered_qwester_questionnaires_questions"
40647
+  (0.2ms) DROP TABLE "altered_qwester_questionnaires_questions"
40648
+  (0.3ms) ALTER TABLE "qwester_questionnaires_questions" ADD "position" integer
40649
+  (0.3ms) ALTER TABLE "qwester_questionnaires_questions" ADD "created_at" datetime
40650
+  (0.4ms) ALTER TABLE "qwester_questionnaires_questions" ADD "updated_at" datetime
40651
+  (0.1ms) UPDATE qwester_questionnaires_questions SET created_at = '2013-03-14 10:37:01', updated_at = '2013-03-14 10:37:01';
40652
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103655')
40653
+  (178.2ms) commit transaction
40654
+ Migrating to AddPositionToAnswers (20130314103656)
40655
+  (0.1ms) begin transaction
40656
+  (1.1ms) ALTER TABLE "qwester_answers" ADD "position" integer
40657
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103656')
40658
+  (217.9ms) commit transaction
40659
+ Migrating to RemoveQuestionnaireFromAnswer (20130314103657)
40660
+  (0.1ms) begin transaction
40661
+  (0.4ms) CREATE TEMPORARY TABLE "altered_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, "questionnaire_id" integer, "position" integer)
40662
+  (0.2ms) SELECT * FROM "qwester_answers"
40663
+  (2.7ms) DROP TABLE "qwester_answers"
40664
+  (1.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) 
40665
+  (0.2ms) SELECT * FROM "altered_qwester_answers"
40666
+  (0.2ms) DROP TABLE "altered_qwester_answers"
40667
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103657')
40668
+  (395.7ms) commit transaction
40669
+ Migrating to AddRuleToRuleSets (20130314103658)
40670
+  (0.2ms) begin transaction
40671
+  (1.5ms) ALTER TABLE "qwester_rule_sets" ADD "rule" text
40672
+  (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103658')
40673
+  (360.2ms) commit transaction
40674
+ Migrating to AddMultiAnswerToQuestions (20130314103659)
40675
+  (0.2ms) begin transaction
40676
+  (1.2ms) ALTER TABLE "qwester_questions" ADD "multi_answer" boolean
40677
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103659')
40678
+  (418.9ms) commit transaction
40679
+ Migrating to CreateAnswerStoresQuestionnaires (20130314103660)
40680
+  (0.1ms) begin transaction
40681
+  (0.5ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
40682
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103660')
40683
+  (325.3ms) commit transaction
40684
+ Migrating to AddLinkTextToRuleSets (20130314103661)
40685
+  (0.1ms) begin transaction
40686
+  (0.4ms) ALTER TABLE "qwester_rule_sets" ADD "link_text" varchar(255)
40687
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103661')
40688
+  (221.5ms) commit transaction
40689
+ Migrating to AddPreservedToAnswerStores (20130314103662)
40690
+  (0.2ms) begin transaction
40691
+  (2.3ms) ALTER TABLE "qwester_answer_stores" ADD "preserved" datetime
40692
+  (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103662')
40693
+  (272.2ms) commit transaction
40694
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40695
+ Connecting to database specified by database.yml
40696
+ Qwester::Questionnaire Load (0.2ms) SELECT "qwester_questionnaires".* FROM "qwester_questionnaires" 
40697
+ Connecting to database specified by database.yml
40698
+ Connecting to database specified by database.yml
40699
+ Connecting to database specified by database.yml
40700
+ Connecting to database specified by database.yml
40701
+ Connecting to database specified by database.yml
40702
+  (0.1ms) select sqlite_version(*)
40703
+  (109.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
40704
+  (132.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40705
+  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40706
+ Migrating to CreateQuestions (20130314103645)
40707
+  (0.1ms) begin transaction
40708
+  (1.8ms) 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)
40709
+  (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103645')
40710
+  (119.7ms) commit transaction
40711
+ Migrating to CreateAnswers (20130314103646)
40712
+  (0.1ms) begin transaction
40713
+  (2.8ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40714
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103646')
40715
+  (118.1ms) commit transaction
40716
+ Migrating to CreateRuleSets (20130314103647)
40717
+  (0.1ms) begin transaction
40718
+  (0.7ms) 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)
40719
+  (0.2ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
40720
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103647')
40721
+  (125.4ms) commit transaction
40722
+ Migrating to CreateQuestionnaires (20130314103648)
40723
+  (0.1ms) begin transaction
40724
+  (0.4ms) 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) 
40725
+  (0.2ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer)
40726
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103648')
40727
+  (139.0ms) commit transaction
40728
+ Migrating to CreateAnswerStores (20130314103649)
40729
+  (0.2ms) begin transaction
40730
+  (11.1ms) 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)
40731
+  (0.2ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer) 
40732
+  (9.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103649')
40733
+  (130.5ms) commit transaction
40734
+ Migrating to AddQuestionnaireIdToAnswers (20130314103650)
40735
+  (0.1ms) begin transaction
40736
+  (0.6ms) ALTER TABLE "qwester_answers" ADD "questionnaire_id" integer
40737
+  (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103650')
40738
+  (133.9ms) commit transaction
40739
+ Migrating to ChangeAnswersValueToString (20130314103651)
40740
+  (0.1ms) begin transaction
40741
+  (0.5ms) CREATE TEMPORARY TABLE "altered_qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "questionnaire_id" integer) 
40742
+  (0.1ms) SELECT * FROM "qwester_answers"
40743
+  (1.9ms) DROP TABLE "qwester_answers"
40744
+  (0.7ms) 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, "questionnaire_id" integer)
40745
+  (3.9ms) SELECT * FROM "altered_qwester_answers"
40746
+  (0.3ms) DROP TABLE "altered_qwester_answers"
40747
+  (1.0ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103651')
40748
+  (121.1ms) commit transaction
40749
+ Migrating to AddButtonImageToQuestionnaires (20130314103652)
40750
+  (0.1ms) begin transaction
40751
+  (2.7ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_name" varchar(255)
40752
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_content_type" varchar(255)
40753
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_size" integer
40754
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_updated_at" datetime
40755
+  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103652')
40756
+  (196.4ms) commit transaction
40757
+ Migrating to CreateCkeditorAssets (20130314103653)
40758
+  (0.2ms) begin transaction
40759
+  (1.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) 
40760
+  (0.3ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
40761
+  (0.3ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
40762
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103653')
40763
+  (173.4ms) commit transaction
40764
+ Migrating to AddRefToQuestions (20130314103654)
40765
+  (0.2ms) begin transaction
40766
+  (0.6ms) ALTER TABLE "qwester_questions" ADD "ref" varchar(255)
40767
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103654')
40768
+  (287.7ms) commit transaction
40769
+ Migrating to AddIdsToQuestionnairesQuestions (20130314103655)
40770
+  (0.1ms) begin transaction
40771
+  (0.5ms) CREATE TEMPORARY TABLE "altered_qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer) 
40772
+  (0.2ms) SELECT * FROM "qwester_questionnaires_questions"
40773
+  (9.2ms) DROP TABLE "qwester_questionnaires_questions"
40774
+  (0.5ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
40775
+  (0.2ms) SELECT * FROM "altered_qwester_questionnaires_questions"
40776
+  (0.4ms) DROP TABLE "altered_qwester_questionnaires_questions"
40777
+  (0.5ms) ALTER TABLE "qwester_questionnaires_questions" ADD "position" integer
40778
+  (0.3ms) ALTER TABLE "qwester_questionnaires_questions" ADD "created_at" datetime
40779
+  (0.3ms) ALTER TABLE "qwester_questionnaires_questions" ADD "updated_at" datetime
40780
+  (0.1ms) UPDATE qwester_questionnaires_questions SET created_at = '2013-03-14 10:57:07', updated_at = '2013-03-14 10:57:07';
40781
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103655')
40782
+  (200.1ms) commit transaction
40783
+ Migrating to AddPositionToAnswers (20130314103656)
40784
+  (0.2ms) begin transaction
40785
+  (7.9ms) ALTER TABLE "qwester_answers" ADD "position" integer
40786
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103656')
40787
+  (248.1ms) commit transaction
40788
+ Migrating to RemoveQuestionnaireFromAnswer (20130314103657)
40789
+  (0.1ms) begin transaction
40790
+  (0.3ms) CREATE TEMPORARY TABLE "altered_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, "questionnaire_id" integer, "position" integer)
40791
+  (0.1ms) SELECT * FROM "qwester_answers"
40792
+  (2.0ms) DROP TABLE "qwester_answers"
40793
+  (1.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) 
40794
+  (0.1ms) SELECT * FROM "altered_qwester_answers"
40795
+  (0.2ms) DROP TABLE "altered_qwester_answers"
40796
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103657')
40797
+  (161.6ms) commit transaction
40798
+ Migrating to AddRuleToRuleSets (20130314103658)
40799
+  (0.1ms) begin transaction
40800
+  (0.6ms) ALTER TABLE "qwester_rule_sets" ADD "rule" text
40801
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103658')
40802
+  (127.2ms) commit transaction
40803
+ Migrating to AddMultiAnswerToQuestions (20130314103659)
40804
+  (0.2ms) begin transaction
40805
+  (1.6ms) ALTER TABLE "qwester_questions" ADD "multi_answer" boolean
40806
+  (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103659')
40807
+  (114.0ms) commit transaction
40808
+ Migrating to CreateAnswerStoresQuestionnaires (20130314103660)
40809
+  (0.1ms) begin transaction
40810
+  (0.5ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
40811
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103660')
40812
+  (112.6ms) commit transaction
40813
+ Migrating to AddLinkTextToRuleSets (20130314103661)
40814
+  (0.1ms) begin transaction
40815
+  (0.2ms) ALTER TABLE "qwester_rule_sets" ADD "link_text" varchar(255)
40816
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103661')
40817
+  (121.9ms) commit transaction
40818
+ Migrating to AddPreservedToAnswerStores (20130314103662)
40819
+  (0.1ms) begin transaction
40820
+  (0.4ms) ALTER TABLE "qwester_answer_stores" ADD "preserved" datetime
40821
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103662')
40822
+  (113.9ms) commit transaction
40823
+ Migrating to AddDeviseToAdminUsers (20130314105040)
40824
+  (0.1ms) begin transaction
40825
+  (0.2ms) ALTER TABLE "admin_users" ADD "email" varchar(255) DEFAULT '' NOT NULL
40826
+ SQLite3::SQLException: no such table: admin_users: ALTER TABLE "admin_users" ADD "email" varchar(255) DEFAULT '' NOT NULL
40827
+  (0.1ms) rollback transaction
40828
+ Connecting to database specified by database.yml
40829
+  (0.1ms) select sqlite_version(*)
40830
+  (309.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
40831
+  (299.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
40832
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
40833
+ Migrating to DeviseCreateAdminUsers (20130110115938)
40834
+  (0.1ms) begin transaction
40835
+  (2.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)
40836
+  (0.4ms) CREATE UNIQUE INDEX "index_admin_users_on_email" ON "admin_users" ("email")
40837
+  (0.2ms) CREATE UNIQUE INDEX "index_admin_users_on_reset_password_token" ON "admin_users" ("reset_password_token")
40838
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130110115938')
40839
+  (131.9ms) commit transaction
40840
+ Migrating to CreateAdminComments (20130110115940)
40841
+  (0.1ms) begin transaction
40842
+  (0.4ms) 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)
40843
+  (0.1ms) CREATE INDEX "index_active_admin_comments_on_namespace" ON "active_admin_comments" ("namespace")
40844
+  (0.6ms) CREATE INDEX "index_active_admin_comments_on_author_type_and_author_id" ON "active_admin_comments" ("author_type", "author_id")
40845
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130110115940')
40846
+  (129.7ms) commit transaction
40847
+ Migrating to CreateQuestions (20130314103645)
40848
+  (0.1ms) begin transaction
40849
+  (2.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)
40850
+  (1.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103645')
40851
+  (105.8ms) commit transaction
40852
+ Migrating to CreateAnswers (20130314103646)
40853
+  (0.1ms) begin transaction
40854
+  (0.4ms) CREATE TABLE "qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
40855
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103646')
40856
+  (100.3ms) commit transaction
40857
+ Migrating to CreateRuleSets (20130314103647)
40858
+  (0.1ms) begin transaction
40859
+  (0.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)
40860
+  (0.6ms) CREATE TABLE "qwester_answers_rule_sets" ("answer_id" integer, "rule_set_id" integer) 
40861
+  (0.7ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103647')
40862
+  (152.5ms) commit transaction
40863
+ Migrating to CreateQuestionnaires (20130314103648)
40864
+  (0.2ms) begin transaction
40865
+  (2.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) 
40866
+  (8.7ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer)
40867
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103648')
40868
+  (126.1ms) commit transaction
40869
+ Migrating to CreateAnswerStores (20130314103649)
40870
+  (0.1ms) begin transaction
40871
+  (0.4ms) 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)
40872
+  (0.2ms) CREATE TABLE "qwester_answer_stores_answers" ("answer_id" integer, "answer_store_id" integer) 
40873
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103649')
40874
+  (173.5ms) commit transaction
40875
+ Migrating to AddQuestionnaireIdToAnswers (20130314103650)
40876
+  (0.1ms) begin transaction
40877
+  (0.5ms) ALTER TABLE "qwester_answers" ADD "questionnaire_id" integer
40878
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103650')
40879
+  (271.2ms) commit transaction
40880
+ Migrating to ChangeAnswersValueToString (20130314103651)
40881
+  (0.1ms) begin transaction
40882
+  (0.5ms) CREATE TEMPORARY TABLE "altered_qwester_answers" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "question_id" integer, "value" boolean, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL, "questionnaire_id" integer) 
40883
+  (3.1ms) SELECT * FROM "qwester_answers"
40884
+  (2.3ms) DROP TABLE "qwester_answers"
40885
+  (5.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, "questionnaire_id" integer)
40886
+  (0.3ms) SELECT * FROM "altered_qwester_answers"
40887
+  (1.1ms) DROP TABLE "altered_qwester_answers"
40888
+  (1.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103651')
40889
+  (128.1ms) commit transaction
40890
+ Migrating to AddButtonImageToQuestionnaires (20130314103652)
40891
+  (0.1ms) begin transaction
40892
+  (0.4ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_name" varchar(255)
40893
+  (0.3ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_content_type" varchar(255)
40894
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_file_size" integer
40895
+  (0.2ms) ALTER TABLE "qwester_questionnaires" ADD "button_image_updated_at" datetime
40896
+  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103652')
40897
+  (302.4ms) commit transaction
40898
+ Migrating to CreateCkeditorAssets (20130314103653)
40899
+  (0.1ms) begin transaction
40900
+  (3.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) 
40901
+  (0.9ms) CREATE INDEX "qwester_idx_ckeditor_assetable_type" ON "qwester_ckeditor_assets" ("assetable_type", "type", "assetable_id")
40902
+  (0.3ms) CREATE INDEX "qwester_idx_ckeditor_assetable" ON "qwester_ckeditor_assets" ("assetable_type", "assetable_id")
40903
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103653')
40904
+  (264.9ms) commit transaction
40905
+ Migrating to AddRefToQuestions (20130314103654)
40906
+  (0.2ms) begin transaction
40907
+  (0.7ms) ALTER TABLE "qwester_questions" ADD "ref" varchar(255)
40908
+  (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103654')
40909
+  (138.1ms) commit transaction
40910
+ Migrating to AddIdsToQuestionnairesQuestions (20130314103655)
40911
+  (0.1ms) begin transaction
40912
+  (0.4ms) CREATE TEMPORARY TABLE "altered_qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer) 
40913
+  (0.2ms) SELECT * FROM "qwester_questionnaires_questions"
40914
+  (2.8ms) DROP TABLE "qwester_questionnaires_questions"
40915
+  (0.4ms) CREATE TABLE "qwester_questionnaires_questions" ("questionnaire_id" integer, "question_id" integer, "id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)
40916
+  (0.1ms) SELECT * FROM "altered_qwester_questionnaires_questions"
40917
+  (0.3ms) DROP TABLE "altered_qwester_questionnaires_questions"
40918
+  (0.4ms) ALTER TABLE "qwester_questionnaires_questions" ADD "position" integer
40919
+  (0.2ms) ALTER TABLE "qwester_questionnaires_questions" ADD "created_at" datetime
40920
+  (0.2ms) ALTER TABLE "qwester_questionnaires_questions" ADD "updated_at" datetime
40921
+  (0.1ms) UPDATE qwester_questionnaires_questions SET created_at = '2013-03-14 11:06:50', updated_at = '2013-03-14 11:06:50';
40922
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103655')
40923
+  (109.5ms) commit transaction
40924
+ Migrating to AddPositionToAnswers (20130314103656)
40925
+  (0.1ms) begin transaction
40926
+  (0.4ms) ALTER TABLE "qwester_answers" ADD "position" integer
40927
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103656')
40928
+  (161.0ms) commit transaction
40929
+ Migrating to RemoveQuestionnaireFromAnswer (20130314103657)
40930
+  (0.1ms) begin transaction
40931
+  (0.3ms) CREATE TEMPORARY TABLE "altered_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, "questionnaire_id" integer, "position" integer)
40932
+  (0.1ms) SELECT * FROM "qwester_answers"
40933
+  (0.3ms) DROP TABLE "qwester_answers"
40934
+  (0.6ms) 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) 
40935
+  (0.1ms) SELECT * FROM "altered_qwester_answers"
40936
+  (0.2ms) DROP TABLE "altered_qwester_answers"
40937
+  (0.8ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103657')
40938
+  (254.4ms) commit transaction
40939
+ Migrating to AddRuleToRuleSets (20130314103658)
40940
+  (0.2ms) begin transaction
40941
+  (0.5ms) ALTER TABLE "qwester_rule_sets" ADD "rule" text
40942
+  (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103658')
40943
+  (287.8ms) commit transaction
40944
+ Migrating to AddMultiAnswerToQuestions (20130314103659)
40945
+  (0.1ms) begin transaction
40946
+  (3.3ms) ALTER TABLE "qwester_questions" ADD "multi_answer" boolean
40947
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103659')
40948
+  (303.0ms) commit transaction
40949
+ Migrating to CreateAnswerStoresQuestionnaires (20130314103660)
40950
+  (0.2ms) begin transaction
40951
+  (8.2ms) CREATE TABLE "qwester_answer_stores_questionnaires" ("questionnaire_id" integer, "answer_store_id" integer) 
40952
+  (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103660')
40953
+  (118.4ms) commit transaction
40954
+ Migrating to AddLinkTextToRuleSets (20130314103661)
40955
+  (0.1ms) begin transaction
40956
+  (2.4ms) ALTER TABLE "qwester_rule_sets" ADD "link_text" varchar(255)
40957
+  (0.9ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103661')
40958
+  (101.0ms) commit transaction
40959
+ Migrating to AddPreservedToAnswerStores (20130314103662)
40960
+  (0.1ms) begin transaction
40961
+  (0.5ms) ALTER TABLE "qwester_answer_stores" ADD "preserved" datetime
40962
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130314103662')
40963
+  (163.0ms) commit transaction
40964
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations"