(0.2ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.2ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (2.0ms) 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.0ms) begin transaction  (0.3ms) 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.1ms) 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.9ms) 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.3ms) 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.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.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'  (1.0ms) 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.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 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.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 "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", "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.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_tasks" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "rewarding_id" integer, "taskable_type" varchar(255), "points" integer, "created_at" datetime, "updated_at" datetime)  (0.1ms)  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.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.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.2ms) commit transaction Migrating to CreateGamificationMedals (20140313134259)  (0.1ms) 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.7ms) commit transaction Migrating to AddDescriptionToGamificationMedals (20140314132611)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "gamification_medals" ADD "description" text SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140314132611"]]  (0.6ms) commit transaction Migrating to RenameGamificationTasksToGoals (20140315142524)  (0.0ms) begin transaction  (0.3ms) ALTER TABLE "gamification_tasks" RENAME TO "gamification_goals"  (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.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.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.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.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 "tindex_agamification_rewards_on_task_id" ON "agamification_rewards" ("goal_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", "rewardable_type")  (0.0ms) SELECT * FROM "gamification_rewards"  (0.2ms) 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.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.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.0ms) 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.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_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_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.0ms) 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.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.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"]]  (0.9ms) 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.4ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20140318220723"]]  (1.4ms) 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'  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.779256"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.779256"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.783820"], ["updated_at", "2015-08-31 10:06:43.783820"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.824467"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.824467"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 37ms (ActiveRecord: 1.1ms)  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.829437"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.829437"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.830717"], ["updated_at", "2015-08-31 10:06:43.830717"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.836935"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.836935"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.841095"], ["updated_at", "2015-08-31 10:06:43.841095"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.843334"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:06:43.843334"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.844359"], ["updated_at", "2015-08-31 10:06:43.844359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.850749"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.850749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 6ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.853894"], ["updated_at", "2015-08-31 10:06:43.853894"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.855084"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:06:43.855084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.856064"], ["updated_at", "2015-08-31 10:06:43.856064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.862198"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.862198"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 5ms (ActiveRecord: 0.6ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.865757"], ["updated_at", "2015-08-31 10:06:43.865757"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.867010"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:06:43.867010"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.868058"], ["updated_at", "2015-08-31 10:06:43.868058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 9ms (Views: 6.6ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.880753"], ["updated_at", "2015-08-31 10:06:43.880753"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.882044"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:06:43.882044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.883040"], ["updated_at", "2015-08-31 10:06:43.883040"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.889790"], ["points", 100], ["updated_at", "2015-08-31 10:06:43.889790"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.892667"], ["goal_id", 1], ["updated_at", "2015-08-31 10:06:43.892667"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.899589"], ["description", "Quidem quod dolore dolores recusandae totam est."], ["goal_id", 1], ["image", nil], ["name", "magni"], ["updated_at", "2015-08-31 10:06:43.899589"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.2ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (5.1ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (11.4ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.932339"], ["points", 100], ["updated_at", "2015-08-31 10:06:43.932339"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.934139"], ["goal_id", 1], ["updated_at", "2015-08-31 10:06:43.934139"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.935505"], ["description", "Quidem quod dolore dolores recusandae totam est."], ["goal_id", 1], ["image", nil], ["name", "magni"], ["updated_at", "2015-08-31 10:06:43.935505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.9ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (3.9ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.945233"], ["points", 100], ["updated_at", "2015-08-31 10:06:43.945233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.946795"], ["goal_id", 1], ["updated_at", "2015-08-31 10:06:43.946795"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.948084"], ["description", "Quidem quod dolore dolores recusandae totam est."], ["goal_id", 1], ["image", nil], ["name", "magni"], ["updated_at", "2015-08-31 10:06:43.948084"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.3ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.9ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.960751"], ["updated_at", "2015-08-31 10:06:43.960751"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.962729"], ["description", "Quidem quod dolore dolores recusandae totam est."], ["image", nil], ["name", "magni"], ["updated_at", "2015-08-31 10:06:43.962729"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.964612"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.964612"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:06:43.965272"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.968162"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.968162"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.972813"], ["updated_at", "2015-08-31 10:06:43.972813"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.4ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.974773"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.974773"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "gamification_rewards" SET "updated_at" = '2015-08-31 10:06:43.978261', "seen_at" = '2015-08-31 10:06:43.978261' WHERE "gamification_rewards"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.982527"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.982527"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.983725"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.983725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.984722"], ["updated_at", "2015-08-31 10:06:43.984722"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.989106"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.989106"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.990225"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.990225"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:43.991440"], ["updated_at", "2015-08-31 10:06:43.991440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:43.993883"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:43.993883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:43.998819"], ["points", 1], ["updated_at", "2015-08-31 10:06:43.998819"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.000145"], ["updated_at", "2015-08-31 10:06:44.000145"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:44.002021"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:44.002021"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.005146"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.005146"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.006355"], ["updated_at", "2015-08-31 10:06:44.006355"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.011432"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.011432"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.012488"], ["updated_at", "2015-08-31 10:06:44.012488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:44.014418"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:44.014418"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.017250"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.017250"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.018143"], ["updated_at", "2015-08-31 10:06:44.018143"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:44.019807"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:06:44.019807"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.024635"], ["updated_at", "2015-08-31 10:06:44.024635"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by ArticlesController#show as HTML Parameters: {"id"=>"1"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.032175"], ["updated_at", "2015-08-31 10:06:44.032175"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.033511"], ["updated_at", "2015-08-31 10:06:44.033511"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.048890"], ["updated_at", "2015-08-31 10:06:44.048890"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["description", "Quidem quod dolore dolores recusandae totam est."], ["goal_id", 1], ["image", nil], ["name", "magni"], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["goal_id", 1], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["goal_id", 2], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["seen_at", "2015-08-29 10:06:44.050980"], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["points", 1], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["description", "Quidem quod dolore dolores recusandae totam est."], ["goal_id", 1], ["image", nil], ["name", "magni"], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["goal_id", 1], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["goal_id", 2], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:06:44.050980"], ["seen_at", "2015-08-29 10:06:44.050980"], ["updated_at", "2015-08-31 10:06:44.050980"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:08:09.686672"], ["updated_at", "2015-08-31 10:08:09.686672"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:08:09.710271"], ["description", "Ut sequi magni nulla voluptatibus expedita impedit nobis."], ["image", nil], ["name", "quisquam"], ["updated_at", "2015-08-31 10:08:09.710271"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:08:09.717696"], ["points", 1], ["updated_at", "2015-08-31 10:08:09.717696"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:08:09.718536"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:08:09.734417"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:08:09.734417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:08:28.618517"], ["updated_at", "2015-08-31 10:08:28.618517"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:08:28.645196"], ["description", "Recusandae occaecati incidunt soluta aut minima consequatur ipsam."], ["image", nil], ["name", "aut"], ["updated_at", "2015-08-31 10:08:28.645196"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:08:28.652232"], ["points", 1], ["updated_at", "2015-08-31 10:08:28.652232"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:08:28.652942"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:08:28.665053"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:08:28.665053"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:08:58.257458"], ["updated_at", "2015-08-31 10:08:58.257458"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:08:58.270180"], ["points", 1], ["updated_at", "2015-08-31 10:08:58.270180"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:08:58.283521"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:08:58.283521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:08:58.308915"], ["description", "Magni sit eum aspernatur id."], ["image", nil], ["name", "debitis"], ["updated_at", "2015-08-31 10:08:58.308915"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.2ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:09:07.793738"], ["updated_at", "2015-08-31 10:09:07.793738"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:09:07.806865"], ["points", 1], ["updated_at", "2015-08-31 10:09:07.806865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:07.819824"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:09:07.819824"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1) Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:07.845952"], ["description", "Perspiciatis delectus inventore rerum."], ["image", nil], ["name", "non"], ["updated_at", "2015-08-31 10:09:07.845952"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.5ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:09:42.194409"], ["updated_at", "2015-08-31 10:09:42.194409"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:42.217687"], ["description", "Eaque sapiente animi ipsa."], ["image", nil], ["name", "provident"], ["updated_at", "2015-08-31 10:09:42.217687"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:09:42.225426"], ["points", 1], ["updated_at", "2015-08-31 10:09:42.225426"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:09:42.226168"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:42.237614"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:09:42.237614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1) Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:09:55.894512"], ["updated_at", "2015-08-31 10:09:55.894512"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:55.921125"], ["description", "Expedita dolore laudantium consequatur similique facere."], ["image", nil], ["name", "explicabo"], ["updated_at", "2015-08-31 10:09:55.921125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:09:55.928429"], ["points", 1], ["updated_at", "2015-08-31 10:09:55.928429"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:09:55.929233"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:55.943475"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:09:55.943475"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:09:55.944944"], ["points", 1], ["updated_at", "2015-08-31 10:09:55.944944"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:09:55.946453"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:09:55.946453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2) Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.2ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.4ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:33.566002"], ["updated_at", "2015-08-31 10:11:33.566002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:33.589019"], ["description", "Ea delectus deleniti ut."], ["image", nil], ["name", "maiores"], ["updated_at", "2015-08-31 10:11:33.589019"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:33.596231"], ["points", 1], ["updated_at", "2015-08-31 10:11:33.596231"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:11:33.596948"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:33.609315"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:33.609315"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:33.610540"], ["points", 1], ["updated_at", "2015-08-31 10:11:33.610540"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:33.611865"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:33.611865"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2) Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.4ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:42.884542"], ["updated_at", "2015-08-31 10:11:42.884542"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:42.907885"], ["description", "Dolorem ipsum voluptates suscipit excepturi corrupti."], ["image", nil], ["name", "voluptatem"], ["updated_at", "2015-08-31 10:11:42.907885"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:42.915338"], ["points", 1], ["updated_at", "2015-08-31 10:11:42.915338"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:11:42.916138"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:42.930279"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:42.930279"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:42.931832"], ["points", 1], ["updated_at", "2015-08-31 10:11:42.931832"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:42.933382"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:42.933382"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.3ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.043624"], ["updated_at", "2015-08-31 10:11:46.043624"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.059580"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.059580"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "gamification_rewards" SET "updated_at" = '2015-08-31 10:11:46.070912', "seen_at" = '2015-08-31 10:11:46.070912' WHERE "gamification_rewards"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.077472"], ["points", 100], ["updated_at", "2015-08-31 10:11:46.077472"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.079222"], ["goal_id", 1], ["updated_at", "2015-08-31 10:11:46.079222"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.084745"], ["description", "Dolorum qui quis reprehenderit beatae odit et amet."], ["goal_id", 1], ["image", nil], ["name", "quibusdam"], ["updated_at", "2015-08-31 10:11:46.084745"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (3.3ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (8.1ms)  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.103638"], ["points", 100], ["updated_at", "2015-08-31 10:11:46.103638"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.4ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.105549"], ["goal_id", 1], ["updated_at", "2015-08-31 10:11:46.105549"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.107417"], ["description", "Dolorum qui quis reprehenderit beatae odit et amet."], ["goal_id", 1], ["image", nil], ["name", "quibusdam"], ["updated_at", "2015-08-31 10:11:46.107417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.3ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.8ms)  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.120833"], ["points", 100], ["updated_at", "2015-08-31 10:11:46.120833"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.122560"], ["goal_id", 1], ["updated_at", "2015-08-31 10:11:46.122560"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.123905"], ["description", "Dolorum qui quis reprehenderit beatae odit et amet."], ["goal_id", 1], ["image", nil], ["name", "quibusdam"], ["updated_at", "2015-08-31 10:11:46.123905"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.9ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.2ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.135938"], ["updated_at", "2015-08-31 10:11:46.135938"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.137305"], ["description", "Dolorum qui quis reprehenderit beatae odit et amet."], ["image", nil], ["name", "quibusdam"], ["updated_at", "2015-08-31 10:11:46.137305"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.138696"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.138696"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-08-31 10:11:46.139182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.141163"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.141163"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.142076"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.142076"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.143670"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.143670"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.152440"], ["updated_at", "2015-08-31 10:11:46.152440"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by ArticlesController#show as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.1ms)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.164159"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.164159"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.165570"], ["updated_at", "2015-08-31 10:11:46.165570"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.168493"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.168493"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.174946"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.174946"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.176148"], ["updated_at", "2015-08-31 10:11:46.176148"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.178241"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.178241"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.180737"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.180737"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.181614"], ["updated_at", "2015-08-31 10:11:46.181614"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.184565"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.184565"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.185518"], ["updated_at", "2015-08-31 10:11:46.185518"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.187046"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.187046"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.190618"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.190618"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.191764"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.191764"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.193180"], ["updated_at", "2015-08-31 10:11:46.193180"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.198133"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.198133"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.199533"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.199533"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.201142"], ["updated_at", "2015-08-31 10:11:46.201142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.203457"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.203457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.220173"], ["updated_at", "2015-08-31 10:11:46.220173"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.221604"], ["updated_at", "2015-08-31 10:11:46.221604"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["description", "Dolorum qui quis reprehenderit beatae odit et amet."], ["goal_id", 1], ["image", nil], ["name", "quibusdam"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 2], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["seen_at", "2015-08-29 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["description", "Dolorum qui quis reprehenderit beatae odit et amet."], ["goal_id", 1], ["image", nil], ["name", "quibusdam"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 2], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["seen_at", "2015-08-29 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["points", 1], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-08-31 10:11:46.225481"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-08-31 10:11:46.225481"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.444336"], ["updated_at", "2015-09-11 12:05:41.444336"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.450966"], ["updated_at", "2015-09-11 12:05:41.450966"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.474590"], ["updated_at", "2015-09-11 12:05:41.474590"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.4ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (1.3ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.495222"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.495222"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.2ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.1ms) SAVEPOINT active_record_1 SQL (0.1ms) UPDATE "gamification_rewards" SET "updated_at" = '2015-09-11 12:05:41.514910', "seen_at" = '2015-09-11 12:05:41.514910' WHERE "gamification_rewards"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.8ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.522015"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.522015"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.524631"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.524631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.531127"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.531127"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.2ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (5.1ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (12.0ms)  (0.5ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.556286"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.556286"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.558085"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.558085"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.559417"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.559417"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.3ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (5.2ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.570965"], ["points", 100], ["updated_at", "2015-09-11 12:05:41.570965"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.572664"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.572664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.574083"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.574083"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.1ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.8ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.585171"], ["updated_at", "2015-09-11 12:05:41.585171"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by ArticlesController#show as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.596457"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.596457"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.598054"], ["updated_at", "2015-09-11 12:05:41.598054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.607029"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.607029"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 7ms (ActiveRecord: 0.6ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.611007"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.611007"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.612323"], ["updated_at", "2015-09-11 12:05:41.612323"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.620142"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.620142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.623644"], ["updated_at", "2015-09-11 12:05:41.623644"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.624904"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.624904"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.626044"], ["updated_at", "2015-09-11 12:05:41.626044"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.633929"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.633929"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.9ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.638393"], ["updated_at", "2015-09-11 12:05:41.638393"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.640107"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.640107"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.641576"], ["updated_at", "2015-09-11 12:05:41.641576"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.650243"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.650243"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 8ms (ActiveRecord: 0.7ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.654671"], ["updated_at", "2015-09-11 12:05:41.654671"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.656237"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.656237"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.657733"], ["updated_at", "2015-09-11 12:05:41.657733"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 4ms (Views: 1.6ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.666054"], ["updated_at", "2015-09-11 12:05:41.666054"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.667325"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:05:41.667325"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.668356"], ["updated_at", "2015-09-11 12:05:41.668356"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.2ms)  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.674883"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.674883"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.676454"], ["updated_at", "2015-09-11 12:05:41.676454"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.679058"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.679058"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.7ms) rollback transaction  (0.1ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.683292"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.683292"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.684642"], ["updated_at", "2015-09-11 12:05:41.684642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.686643"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.686643"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.691694"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.691694"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.692724"], ["updated_at", "2015-09-11 12:05:41.692724"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.694573"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.694573"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.698064"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.698064"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.699125"], ["updated_at", "2015-09-11 12:05:41.699125"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.5ms) rollback transaction  (0.0ms) begin transaction  (9.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.711505"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.711505"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.713245"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.713245"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.714972"], ["updated_at", "2015-09-11 12:05:41.714972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.717407"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.717407"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.723026"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.723026"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.724735"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.724735"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.726296"], ["updated_at", "2015-09-11 12:05:41.726296"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.732947"], ["updated_at", "2015-09-11 12:05:41.732947"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["seen_at", "2015-09-09 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["seen_at", "2015-09-09 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["goal_id", 1], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]] SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["description", "Nobis maiores sapiente ducimus atque."], ["image", nil], ["name", "quasi"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]] SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["points", 1], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:05:41.736749"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:05:41.736749"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.191520"], ["updated_at", "2015-09-11 12:06:19.191520"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by ArticlesController#show as HTML Parameters: {"id"=>"1"} Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Rendered articles/show.html.erb within layouts/application (0.2ms) Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.1ms)  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.208079"], ["updated_at", "2015-09-11 12:06:19.208079"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.7ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.210236"], ["updated_at", "2015-09-11 12:06:19.210236"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.215359"], ["updated_at", "2015-09-11 12:06:19.215359"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.224371"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.224371"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.230875"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.230875"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.231579"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.242435"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.242435"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.243603"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.243603"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.244855"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.244855"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.8ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.254871"], ["updated_at", "2015-09-11 12:06:19.254871"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.257172"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.257172"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.258932"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.258932"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.259642"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.261546"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.261546"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.262696"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.262696"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.264456"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.264456"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.8ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.270182"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.270182"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.271668"], ["updated_at", "2015-09-11 12:06:19.271668"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.285267"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.285267"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 12ms (ActiveRecord: 0.8ms)  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.6ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.289791"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.289791"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.291103"], ["updated_at", "2015-09-11 12:06:19.291103"]]  (0.1ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.297212"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.297212"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 5ms (ActiveRecord: 0.4ms)  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.300707"], ["updated_at", "2015-09-11 12:06:19.300707"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.301940"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.301940"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.303142"], ["updated_at", "2015-09-11 12:06:19.303142"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.309828"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.309828"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 6ms (ActiveRecord: 0.5ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.7ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.313445"], ["updated_at", "2015-09-11 12:06:19.313445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.314725"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.314725"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.315821"], ["updated_at", "2015-09-11 12:06:19.315821"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.322002"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.322002"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 5ms (ActiveRecord: 0.5ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.325607"], ["updated_at", "2015-09-11 12:06:19.325607"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.327096"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.327096"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.328324"], ["updated_at", "2015-09-11 12:06:19.328324"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 3ms (Views: 1.1ms | ActiveRecord: 0.1ms)  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.5ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.335298"], ["updated_at", "2015-09-11 12:06:19.335298"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.336521"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:19.336521"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.337796"], ["updated_at", "2015-09-11 12:06:19.337796"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.344892"], ["updated_at", "2015-09-11 12:06:19.344892"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL  (0.3ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["seen_at", "2015-09-09 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["seen_at", "2015-09-09 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 100], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 100], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 100], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["description", "Nihil quia aperiam a eveniet iure molestiae."], ["goal_id", 1], ["image", nil], ["name", "temporibus"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "gamification_rewards" SET "updated_at" = '2015-09-11 12:06:19.346862', "seen_at" = '2015-09-11 12:06:19.346862' WHERE "gamification_rewards"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["points", 1], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:19.346862"], ["updated_at", "2015-09-11 12:06:19.346862"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:40.041208"], ["updated_at", "2015-09-11 12:06:40.041208"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.068048"], ["description", "Iusto cum nulla reprehenderit aut ratione."], ["image", nil], ["name", "qui"], ["updated_at", "2015-09-11 12:06:40.068048"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.075771"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.075771"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:40.076567"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.088399"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.088399"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.089613"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.089613"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.091123"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.091123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.4ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:40.104374"], ["updated_at", "2015-09-11 12:06:40.104374"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.106030"], ["description", "Iusto cum nulla reprehenderit aut ratione."], ["image", nil], ["name", "qui"], ["updated_at", "2015-09-11 12:06:40.106030"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.107742"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.107742"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:06:40.108445"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.110400"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.110400"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:40.111453"], ["points", 1], ["updated_at", "2015-09-11 12:06:40.111453"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:40.113091"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:40.113091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2) SQL (0.0ms) DELETE FROM "gamification_medals" WHERE "gamification_medals"."id" = 1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.8ms) rollback transaction  (0.3ms) begin transaction  (0.1ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (1.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.570488"], ["updated_at", "2015-09-11 12:06:44.570488"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (1.1ms) rollback transaction  (0.1ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.576123"], ["seen_at", "2015-09-09 12:06:44.574745"], ["updated_at", "2015-09-11 12:06:44.576123"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.582287"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.582287"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.9ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.584091"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.584091"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.590972"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.590972"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.592631"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.592631"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.593803"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:44.593803"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.602210"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.602210"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.603275"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.603275"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.604582"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.604582"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.605920"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.605920"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.607106"], ["goal_id", 2], ["updated_at", "2015-09-11 12:06:44.607106"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]] Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]  (0.6ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.613806"], ["seen_at", "2015-09-09 12:06:44.612713"], ["updated_at", "2015-09-11 12:06:44.613806"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)  (0.4ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Filter chain halted as :verify_checksum rendered or redirected Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by Gamification::RewardsController#create as HTML Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"} Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]] User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Redirected to http://example.org Completed 302 Found in 0ms (ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]] SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]] SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2) SQL (0.0ms) DELETE FROM "gamification_medals" WHERE "gamification_medals"."id" = 1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 2]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."goal_id" = ? AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."rewardable_id" = 1 LIMIT 1 [["goal_id", 1]]  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 100], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 100], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["points", 100], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" IS NULL AND "gamification_rewards"."rewardable_type" IS NULL AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["goal_id", 1], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["description", "Quia recusandae vero earum."], ["goal_id", 1], ["image", nil], ["name", "esse"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]] Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms) Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" IS NULL) LIMIT 1 SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? AND "gamification_rewards"."seen_at" IS NULL [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) UPDATE "gamification_rewards" SET "updated_at" = '2015-09-11 12:06:44.616352', "seen_at" = '2015-09-11 12:06:44.616352' WHERE "gamification_rewards"."id" = 1  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:06:44.616352"], ["updated_at", "2015-09-11 12:06:44.616352"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Processing by ArticlesController#show as HTML Parameters: {"id"=>"1"} Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]] Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)  (0.0ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:07:40.128321"], ["updated_at", "2015-09-11 12:07:40.128321"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:07:40.152429"], ["description", "Libero sequi aut quisquam ullam."], ["image", nil], ["name", "cumque"], ["updated_at", "2015-09-11 12:07:40.152429"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:07:40.163928"], ["points", 1], ["updated_at", "2015-09-11 12:07:40.163928"]] SQL (0.2ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:07:40.165002"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:07:40.181152"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:07:40.181152"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:07:40.182476"], ["points", 1], ["updated_at", "2015-09-11 12:07:40.182476"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.0ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:07:40.183838"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:07:40.183838"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:07:40.195664"], ["updated_at", "2015-09-11 12:07:40.195664"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.3ms) rollback transaction  (0.3ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:08:00.530587"], ["updated_at", "2015-09-11 12:08:00.530587"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (1.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:08:00.557074"], ["description", "Eaque vel qui cum aut nihil quam nisi officia."], ["image", nil], ["name", "commodi"], ["updated_at", "2015-09-11 12:08:00.557074"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:08:00.564258"], ["points", 1], ["updated_at", "2015-09-11 12:08:00.564258"]] SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2015-09-11 12:08:00.565024"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 1) LIMIT 1 SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:08:00.577611"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:08:00.577611"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2015-09-11 12:08:00.578977"], ["points", 1], ["updated_at", "2015-09-11 12:08:00.578977"]]  (0.0ms) RELEASE SAVEPOINT active_record_1  (0.0ms) SAVEPOINT active_record_1 Gamification::Reward Exists (0.1ms) SELECT 1 AS one FROM "gamification_rewards" WHERE ("gamification_rewards"."rewardable_id" = 1 AND "gamification_rewards"."rewardable_type" = 'User' AND "gamification_rewards"."goal_id" = 2) LIMIT 1 SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2015-09-11 12:08:00.580772"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2015-09-11 12:08:00.580772"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]] Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2) Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)  (1.2ms) rollback transaction  (0.0ms) begin transaction  (0.0ms) SAVEPOINT active_record_1 SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2015-09-11 12:08:00.592907"], ["updated_at", "2015-09-11 12:08:00.592907"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."rewardable_id" = ? AND "gamification_rewards"."rewardable_type" = ? [["rewardable_id", 1], ["rewardable_type", "User"]]  (0.4ms) rollback transaction