Created
August 6, 2012 23:09
-
-
Save dpmccabe/3279394 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Connecting to database specified by database.yml | |
(2.0ms) ALTER TABLE "answers" DISABLE TRIGGER ALL;ALTER TABLE "admin_users" DISABLE TRIGGER ALL;ALTER TABLE "question_groups" DISABLE TRIGGER ALL;ALTER TABLE "subjects" DISABLE TRIGGER ALL;ALTER TABLE "active_admin_comments" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "assessments" DISABLE TRIGGER ALL;ALTER TABLE "billings" DISABLE TRIGGER ALL;ALTER TABLE "free_response_sections" DISABLE TRIGGER ALL;ALTER TABLE "friendly_id_slugs" DISABLE TRIGGER ALL;ALTER TABLE "lessons" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "pages" DISABLE TRIGGER ALL;ALTER TABLE "contacts" DISABLE TRIGGER ALL;ALTER TABLE "assessment_items" DISABLE TRIGGER ALL;ALTER TABLE "packages" DISABLE TRIGGER ALL;ALTER TABLE "settings" DISABLE TRIGGER ALL;ALTER TABLE "shippings" DISABLE TRIGGER ALL;ALTER TABLE "questions" DISABLE TRIGGER ALL;ALTER TABLE "transactions" DISABLE TRIGGER ALL;ALTER TABLE "user_assessment_responses" DISABLE TRIGGER ALL;ALTER TABLE "user_assessments" DISABLE TRIGGER ALL;ALTER TABLE "user_free_response_sections" DISABLE TRIGGER ALL;ALTER TABLE "user_subjects" DISABLE TRIGGER ALL | |
(0.3ms) select current_database() | |
(2.2ms) select table_name from information_schema.views where table_schema = 'gaf_test' | |
(704.2ms) TRUNCATE TABLE "answers", "admin_users", "question_groups", "subjects", "active_admin_comments", "users", "assessments", "billings", "free_response_sections", "friendly_id_slugs", "lessons", "pages", "contacts", "assessment_items", "packages", "settings", "shippings", "questions", "transactions", "user_assessment_responses", "user_assessments", "user_free_response_sections", "user_subjects" RESTART IDENTITY CASCADE; | |
(1.5ms) ALTER TABLE "answers" ENABLE TRIGGER ALL;ALTER TABLE "admin_users" ENABLE TRIGGER ALL;ALTER TABLE "question_groups" ENABLE TRIGGER ALL;ALTER TABLE "subjects" ENABLE TRIGGER ALL;ALTER TABLE "active_admin_comments" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "assessments" ENABLE TRIGGER ALL;ALTER TABLE "billings" ENABLE TRIGGER ALL;ALTER TABLE "free_response_sections" ENABLE TRIGGER ALL;ALTER TABLE "friendly_id_slugs" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "lessons" ENABLE TRIGGER ALL;ALTER TABLE "pages" ENABLE TRIGGER ALL;ALTER TABLE "contacts" ENABLE TRIGGER ALL;ALTER TABLE "assessment_items" ENABLE TRIGGER ALL;ALTER TABLE "packages" ENABLE TRIGGER ALL;ALTER TABLE "settings" ENABLE TRIGGER ALL;ALTER TABLE "shippings" ENABLE TRIGGER ALL;ALTER TABLE "questions" ENABLE TRIGGER ALL;ALTER TABLE "transactions" ENABLE TRIGGER ALL;ALTER TABLE "user_assessment_responses" ENABLE TRIGGER ALL;ALTER TABLE "user_assessments" ENABLE TRIGGER ALL;ALTER TABLE "user_free_response_sections" ENABLE TRIGGER ALL;ALTER TABLE "user_subjects" ENABLE TRIGGER ALL | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.2ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.2ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.3ms) BEGIN | |
(0.3ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.5ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.2ms) SAVEPOINT active_record_1 | |
Question Load (1.1ms) SELECT "questions".* FROM "questions" WHERE ("questions"."questionable_id" IS NULL) ORDER BY position DESC LIMIT 1 | |
SQL (8.7ms) INSERT INTO "questions" ("content", "correct_answer", "created_at", "image", "image_needed", "position", "questionable_id", "questionable_type", "randomize_answers", "ttype_cd", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content", "question text"], ["correct_answer", nil], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", true], ["position", 1], ["questionable_id", nil], ["questionable_type", nil], ["randomize_answers", false], ["ttype_cd", 1], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
Answer Load (0.8ms) SELECT "answers".* FROM "answers" WHERE ("answers"."question_id" = 1) ORDER BY position DESC LIMIT 1 | |
SQL (1.1ms) INSERT INTO "answers" ("content", "correct", "created_at", "image", "image_needed", "position", "question_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content", "one"], ["correct", false], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", false], ["position", 1], ["question_id", 1], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
Answer Load (0.6ms) SELECT "answers".* FROM "answers" WHERE ("answers"."question_id" = 1) ORDER BY position DESC LIMIT 1 | |
SQL (0.5ms) INSERT INTO "answers" ("content", "correct", "created_at", "image", "image_needed", "position", "question_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content", "two"], ["correct", true], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", false], ["position", 2], ["question_id", 1], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
Answer Load (0.7ms) SELECT "answers".* FROM "answers" WHERE ("answers"."question_id" = 1) ORDER BY position DESC LIMIT 1 | |
SQL (0.4ms) INSERT INTO "answers" ("content", "correct", "created_at", "image", "image_needed", "position", "question_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["content", "three"], ["correct", false], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", false], ["position", 3], ["question_id", 1], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
(0.2ms) RELEASE SAVEPOINT active_record_1 | |
Question Load (0.8ms) SELECT "questions".* FROM "questions" WHERE "questions"."id" = $1 LIMIT 1 [["id", 1]] | |
Answer Load (0.6ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY position LIMIT 1 | |
Answer Load (0.4ms) SELECT "answers".* FROM "answers" WHERE "answers"."question_id" = 1 ORDER BY position | |
(0.2ms) ROLLBACK | |
(0.1ms) BEGIN | |
(0.1ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.2ms) SAVEPOINT active_record_1 | |
SQL (1.3ms) INSERT INTO "question_groups" ("assessment_item_id", "content", "created_at", "image", "image_needed", "number_lines", "passage", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["assessment_item_id", nil], ["content", "question group text"], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", false], ["number_lines", true], ["passage", "question group passage"], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
Question Load (0.6ms) SELECT "questions".* FROM "questions" WHERE ("questions"."questionable_id" = 1) ORDER BY position DESC LIMIT 1 | |
SQL (0.4ms) INSERT INTO "questions" ("content", "correct_answer", "created_at", "image", "image_needed", "position", "questionable_id", "questionable_type", "randomize_answers", "ttype_cd", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content", "multiple choice question text"], ["correct_answer", nil], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", false], ["position", 1], ["questionable_id", 1], ["questionable_type", "QuestionGroup"], ["randomize_answers", false], ["ttype_cd", 1], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
Question Load (0.5ms) SELECT "questions".* FROM "questions" WHERE ("questions"."questionable_id" = 1) ORDER BY position DESC LIMIT 1 | |
SQL (0.6ms) INSERT INTO "questions" ("content", "correct_answer", "created_at", "image", "image_needed", "position", "questionable_id", "questionable_type", "randomize_answers", "ttype_cd", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11) RETURNING "id" [["content", "fill-in question text"], ["correct_answer", nil], ["created_at", 2012-08-06 18:07:56 -0500], ["image", nil], ["image_needed", false], ["position", 2], ["questionable_id", 1], ["questionable_type", "QuestionGroup"], ["randomize_answers", false], ["ttype_cd", 2], ["updated_at", 2012-08-06 18:07:56 -0500]] | |
(0.2ms) RELEASE SAVEPOINT active_record_1 | |
QuestionGroup Load (0.8ms) SELECT "question_groups".* FROM "question_groups" WHERE "question_groups"."id" = $1 LIMIT 1 [["id", 1]] | |
Question Load (1.1ms) SELECT "questions".* FROM "questions" WHERE "questions"."questionable_id" = 1 AND "questions"."questionable_type" = 'QuestionGroup' ORDER BY position LIMIT 1 | |
Question Load (1.7ms) SELECT "questions".* FROM "questions" WHERE "questions"."questionable_id" = 1 AND "questions"."questionable_type" = 'QuestionGroup' ORDER BY position | |
(0.2ms) ROLLBACK | |
(0.2ms) BEGIN | |
(0.3ms) SAVEPOINT active_record_1 | |
(0.2ms) RELEASE SAVEPOINT active_record_1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment