(1.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)   (0.1ms) select sqlite_version(*)  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Migrating to CreateGamificationTasks (20140309173049)  (0.1ms) begin transaction  (0.5ms) CREATE TABLE "gamification_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "taskable_id" integer, "taskable_type" varchar(255), "points" integer, "created_at" datetime, "updated_at" datetime)  (0.3ms) CREATE INDEX "index_gamification_tasks_on_taskable_id_and_taskable_type" ON "gamification_tasks" ("taskable_id", "taskable_type") SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140309173049"]]  (0.8ms) commit transaction Migrating to CreateGamificationScorings (20140309175957)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "gamification_scorings" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "subjectable_id" integer, "subjectable_type" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE INDEX "index_gamification_scorings_on_task_id" ON "gamification_scorings" ("task_id")  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_task_id' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_scorings_on_subjectable" ON "gamification_scorings" ("subjectable_id", "subjectable_type") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140309175957"]]  (0.6ms) commit transaction Migrating to CreateUsers (20140309200402)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140309200402"]]  (0.5ms) commit transaction Migrating to CreateArticles (20140309200453)  (0.0ms) begin transaction  (0.2ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime, "updated_at" datetime) SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140309200453"]]  (0.5ms) commit transaction Migrating to RenameEverything (20140310081749)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "gamification_scorings" RENAME TO "gamification_rewards"  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_task_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_rewards_on_task_id" ON "gamification_rewards" ("task_id")  (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_task_id' AND type='index'  (0.9ms) DROP INDEX "index_gamification_scorings_on_task_id"  (0.3ms) CREATE TEMPORARY TABLE "agamification_rewards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "rewardable_id" integer, "subjectable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'  (0.1ms) CREATE INDEX "tindex_agamification_rewards_on_task_id" ON "agamification_rewards" ("task_id")  (0.0ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "tindex_gamification_scorings_on_subjectable" ON "agamification_rewards" ("rewardable_id", "subjectable_type")  (0.0ms) SELECT * FROM "gamification_rewards"  (0.1ms) DROP TABLE "gamification_rewards"  (0.1ms) CREATE TABLE "gamification_rewards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "rewardable_id" integer, "subjectable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='tindex_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_gamification_scorings_on_subjectable' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_scorings_on_subjectable" ON "gamification_rewards" ("rewardable_id", "subjectable_type")  (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_rewards_on_task_id" ON "gamification_rewards" ("task_id")  (0.0ms) SELECT * FROM "agamification_rewards"  (0.2ms) DROP TABLE "agamification_rewards"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) CREATE TEMPORARY TABLE "agamification_rewards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "rewardable_id" integer, "rewardable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'  (0.1ms) CREATE INDEX "tindex_agamification_rewards_on_task_id" ON "agamification_rewards" ("task_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "tindex_gamification_scorings_on_subjectable" ON "agamification_rewards" ("rewardable_id", "rewardable_type")  (0.0ms) SELECT * FROM "gamification_rewards"  (0.1ms) DROP TABLE "gamification_rewards"  (0.1ms) CREATE TABLE "gamification_rewards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "rewardable_id" integer, "rewardable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='tindex_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_gamification_scorings_on_subjectable' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_scorings_on_subjectable" ON "gamification_rewards" ("rewardable_id", "rewardable_type")  (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_rewards_on_task_id" ON "gamification_rewards" ("task_id")  (0.0ms) SELECT * FROM "agamification_rewards"  (0.1ms) DROP TABLE "agamification_rewards"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) CREATE TEMPORARY TABLE "agamification_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "rewarding_id" integer, "taskable_type" varchar(255), "points" integer, "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index'   (0.1ms) CREATE INDEX "tindex_agamification_tasks_on_taskable_id_and_taskable_type" ON "agamification_tasks" ("rewarding_id", "taskable_type")  (0.0ms) SELECT * FROM "gamification_tasks"  (0.1ms) DROP TABLE "gamification_tasks"  (0.1ms) CREATE TABLE "gamification_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "rewarding_id" integer, "taskable_type" varchar(255), "points" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_tasks_on_taskable_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_tasks_on_taskable_id_and_taskable_type' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_tasks_on_taskable_id_and_taskable_type" ON "gamification_tasks" ("rewarding_id", "taskable_type")  (0.0ms) SELECT * FROM "agamification_tasks"  (0.1ms) DROP TABLE "agamification_tasks"  (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_tasks_on_rewarding_id_and_taskable_type" ON "gamification_tasks" ("rewarding_id", "taskable_type")  (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_taskable_id_and_taskable_type' AND type='index'   (0.1ms) DROP INDEX "index_gamification_tasks_on_taskable_id_and_taskable_type"  (0.1ms) CREATE TEMPORARY TABLE "agamification_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "rewarding_id" integer, "rewarding_type" varchar(255), "points" integer, "created_at" datetime, "updated_at" datetime)   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'  (0.1ms) CREATE INDEX "tindex_agamification_tasks_on_rewarding_id_and_taskable_type" ON "agamification_tasks" ("rewarding_id", "rewarding_type")  (0.0ms) SELECT * FROM "gamification_tasks"  (0.1ms) DROP TABLE "gamification_tasks"  (0.1ms) CREATE TABLE "gamification_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "rewarding_id" integer, "rewarding_type" varchar(255), "points" integer, "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='tindex_agamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_tasks_on_rewarding_id_and_taskable_type" ON "gamification_tasks" ("rewarding_id", "rewarding_type")  (0.0ms) SELECT * FROM "agamification_tasks"  (0.1ms) DROP TABLE "agamification_tasks"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_tasks_on_rewarding_id_and_rewarding_type" ON "gamification_tasks" ("rewarding_id", "rewarding_type")  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_taskable_type' AND type='index'  (0.1ms) DROP INDEX "index_gamification_tasks_on_rewarding_id_and_taskable_type" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140310081749"]]  (1.1ms) commit transaction Migrating to CreateGamificationMedals (20140313134259)  (0.0ms) begin transaction  (0.3ms) CREATE TABLE "gamification_medals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "task_id" integer, "name" varchar(255), "image" varchar(255), "created_at" datetime, "updated_at" datetime)   (0.1ms) CREATE INDEX "index_gamification_medals_on_task_id" ON "gamification_medals" ("task_id") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140313134259"]]  (0.6ms) commit transaction Migrating to AddDescriptionToGamificationMedals (20140314132611)  (0.0ms) begin transaction  (0.2ms) ALTER TABLE "gamification_medals" ADD "description" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140314132611"]]  (0.5ms) commit transaction Migrating to RenameGamificationTasksToGoals (20140315142524)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "gamification_tasks" RENAME TO "gamification_goals"  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_goals_on_rewarding_id_and_rewarding_type" ON "gamification_goals" ("rewarding_id", "rewarding_type")  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_goals_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_goals_on_rewarding_id_and_rewarding_type' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_tasks_on_rewarding_id_and_rewarding_type' AND type='index'  (0.3ms) DROP INDEX "index_gamification_tasks_on_rewarding_id_and_rewarding_type"  (0.1ms) CREATE TEMPORARY TABLE "agamification_rewards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "goal_id" integer, "rewardable_id" integer, "rewardable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'  (0.1ms) CREATE INDEX "tindex_agamification_rewards_on_task_id" ON "agamification_rewards" ("goal_id")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "tindex_gamification_scorings_on_subjectable" ON "agamification_rewards" ("rewardable_id", "rewardable_type")  (0.0ms) SELECT * FROM "gamification_rewards"  (0.1ms) DROP TABLE "gamification_rewards"  (0.1ms) CREATE TABLE "gamification_rewards" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "goal_id" integer, "rewardable_id" integer, "rewardable_type" varchar(255), "created_at" datetime, "updated_at" datetime)  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='tindex_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_rewards_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_scorings_on_subjectable" ON "gamification_rewards" ("rewardable_id", "rewardable_type")  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'  (0.1ms) CREATE INDEX "index_gamification_rewards_on_task_id" ON "gamification_rewards" ("goal_id")  (0.1ms) SELECT * FROM "agamification_rewards"  (0.1ms) DROP TABLE "agamification_rewards"  (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_rewards_on_goal_id" ON "gamification_rewards" ("goal_id")  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_goal_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_goal_id' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) DROP INDEX "index_gamification_rewards_on_task_id"  (0.1ms) CREATE TEMPORARY TABLE "agamification_medals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "goal_id" integer, "name" varchar(255), "image" varchar(255), "created_at" datetime, "updated_at" datetime, "description" text)   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_task_id' AND type='index'  (0.1ms) CREATE INDEX "tindex_agamification_medals_on_task_id" ON "agamification_medals" ("goal_id")  (0.0ms) SELECT * FROM "gamification_medals"  (0.1ms) DROP TABLE "gamification_medals"  (0.1ms) CREATE TABLE "gamification_medals" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "goal_id" integer, "name" varchar(255), "image" varchar(255), "created_at" datetime, "updated_at" datetime, "description" text)  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='tindex_agamification_medals_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='tindex_agamification_medals_on_task_id' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_medals_on_task_id" ON "gamification_medals" ("goal_id")  (0.1ms) SELECT * FROM "agamification_medals"  (0.1ms) DROP TABLE "agamification_medals"  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_task_id' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_task_id' AND type='index'  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_task_id' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_medals_on_goal_id" ON "gamification_medals" ("goal_id")  (0.0ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_goal_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_goal_id' AND type='index'   (0.0ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_task_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_task_id' AND type='index'  (0.1ms) DROP INDEX "index_gamification_medals_on_task_id" SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140315142524"]]  (1.0ms) commit transaction Migrating to AddSeenAtToGamificationRewards (20140318220723)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "gamification_rewards" ADD "seen_at" datetime  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_goal_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_goal_id' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'   (0.1ms) CREATE INDEX "index_gamification_rewards_on_seen_at" ON "gamification_rewards" ("seen_at") SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140318220723"]]  (0.5ms) commit transaction ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"  (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_goals_on_rewarding_id_and_rewarding_type' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_goals_on_rewarding_id_and_rewarding_type' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_medals_on_goal_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_medals_on_goal_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_seen_at' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_seen_at' AND type='index'  (0.1ms)  SELECT sql FROM sqlite_master WHERE name='index_gamification_rewards_on_goal_id' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_rewards_on_goal_id' AND type='index'   (0.1ms) SELECT sql FROM sqlite_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index' UNION ALL SELECT sql FROM sqlite_temp_master WHERE name='index_gamification_scorings_on_subjectable' AND type='index'