gamification 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d12ac96526bf82d4e068a056d92b965a0e460e09
4
- data.tar.gz: b3e824c42128c6ce8ae7fd061868f2e15e00fad3
3
+ metadata.gz: a826fb286ef9f41ef06bcdc8af4f874e8d287397
4
+ data.tar.gz: 73ccaf960bfa3a11bb6364048902c34d154d3bfb
5
5
  SHA512:
6
- metadata.gz: a412f4d2b35a51e6b101535af6d50e4927afb4d71b6dda62ccf31fb9d4342e6077e446132c6953b5708e30a07a52ce2244ec63afde3bf20c556a61aeb4734569
7
- data.tar.gz: e3a457bc6e231f41bb08a5e95d9e312ae433fd25725c8642a7da1461e8a4cf3d9bc2468baae977381e1d5d90a386d2a49305328804602dfe77790a5d25e62cf2
6
+ metadata.gz: 7ca4f608d7fe608b757fd31d8e7aafd5442571387e80e02890d32e181a85882e9cd30773101dd9eac7b3a194d97b5edce561bef4181da21e31626b693cf90ba3
7
+ data.tar.gz: ce362b54b51a6dbb331eb5fbb3ee8d4785acf67fe3798309b9abf99571f54680889490341571be56d3b7188b63cd38e65d9b11fd1e09b5a242187b2e0c5f197e
@@ -6,7 +6,7 @@ module Gamification::Concerns::Rewardable
6
6
  has_many :goals, through: :rewards, class_name: '::Gamification::Goal'
7
7
 
8
8
  def medals
9
- rewards.includes(goal: :medal).collect(&:medal).compact! || []
9
+ rewards.includes(goal: :medal).collect(&:medal).compact || []
10
10
  end
11
11
  end
12
12
  end
@@ -1,3 +1,3 @@
1
1
  module Gamification
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
@@ -3311,3 +3311,2562 @@ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
3311
3311
   (0.0ms) RELEASE SAVEPOINT active_record_1
3312
3312
  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"]]
3313
3313
   (0.4ms) rollback transaction
3314
+  (0.3ms) begin transaction
3315
+  (0.0ms) rollback transaction
3316
+  (0.0ms) begin transaction
3317
+  (0.0ms) rollback transaction
3318
+  (0.0ms) begin transaction
3319
+  (0.0ms) SAVEPOINT active_record_1
3320
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.475432"], ["updated_at", "2016-02-25 09:08:25.475432"]]
3321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3322
+  (0.0ms) SAVEPOINT active_record_1
3323
+ SQL (1.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.483939"], ["updated_at", "2016-02-25 09:08:25.483939"]]
3324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3325
+  (1.0ms) rollback transaction
3326
+  (0.1ms) begin transaction
3327
+  (0.1ms) SAVEPOINT active_record_1
3328
+ Gamification::Reward Exists (0.4ms) 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
3329
+ SQL (1.4ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.530118"], ["seen_at", "2016-02-23 09:08:25.506221"], ["updated_at", "2016-02-25 09:08:25.530118"]]
3330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3331
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
3332
+  (0.4ms) rollback transaction
3333
+  (0.0ms) begin transaction
3334
+  (0.0ms) SAVEPOINT active_record_1
3335
+ 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
3336
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.538368"], ["updated_at", "2016-02-25 09:08:25.538368"]]
3337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3338
+  (0.3ms) rollback transaction
3339
+  (0.0ms) begin transaction
3340
+  (0.0ms) SAVEPOINT active_record_1
3341
+ 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
3342
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.541305"], ["seen_at", "2016-02-23 09:08:25.540453"], ["updated_at", "2016-02-25 09:08:25.541305"]]
3343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3344
+  (0.3ms) rollback transaction
3345
+  (0.0ms) begin transaction
3346
+  (0.0ms) rollback transaction
3347
+  (0.0ms) begin transaction
3348
+  (0.0ms) SAVEPOINT active_record_1
3349
+ 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
3350
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3351
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3352
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
3353
+  (0.0ms) rollback transaction
3354
+  (0.0ms) begin transaction
3355
+  (0.0ms) rollback transaction
3356
+  (0.0ms) begin transaction
3357
+  (0.0ms) SAVEPOINT active_record_1
3358
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3360
+  (0.0ms) SAVEPOINT active_record_1
3361
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3363
+  (0.0ms) SAVEPOINT active_record_1
3364
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["description", "Eum occaecati et facilis dicta tempora blanditiis totam."], ["goal_id", 1], ["image", nil], ["name", "nesciunt"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3366
+  (0.0ms) SAVEPOINT active_record_1
3367
+ 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
3368
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3370
+  (0.0ms) SAVEPOINT active_record_1
3371
+ 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
3372
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 2], ["updated_at", "2016-02-25 09:08:25.543048"]]
3373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3374
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
3375
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3376
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3377
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
3378
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
3379
+  (0.0ms) rollback transaction
3380
+  (0.0ms) begin transaction
3381
+  (0.0ms) SAVEPOINT active_record_1
3382
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3384
+  (0.0ms) SAVEPOINT active_record_1
3385
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3386
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3387
+  (0.0ms) SAVEPOINT active_record_1
3388
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["description", "Eum occaecati et facilis dicta tempora blanditiis totam."], ["goal_id", 1], ["image", nil], ["name", "nesciunt"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3390
+  (0.0ms) SAVEPOINT active_record_1
3391
+ 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
3392
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3393
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3394
+  (0.0ms) SAVEPOINT active_record_1
3395
+ 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
3396
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 2], ["updated_at", "2016-02-25 09:08:25.543048"]]
3397
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3398
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
3399
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3400
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3401
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
3402
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
3403
+  (0.0ms) rollback transaction
3404
+  (0.0ms) begin transaction
3405
+  (0.0ms) SAVEPOINT active_record_1
3406
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3408
+  (0.0ms) SAVEPOINT active_record_1
3409
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3411
+ Processing by Gamification::RewardsController#create as HTML
3412
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
3413
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3414
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3415
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3416
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3417
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3418
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3419
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3420
+ 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]]
3421
+  (0.0ms) SAVEPOINT active_record_1
3422
+ 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
3423
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3425
+ Redirected to http://example.org
3426
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3427
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
3428
+  (0.0ms) rollback transaction
3429
+  (0.0ms) begin transaction
3430
+  (0.0ms) SAVEPOINT active_record_1
3431
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3433
+  (0.0ms) SAVEPOINT active_record_1
3434
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3436
+ Processing by Gamification::RewardsController#create as HTML
3437
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
3438
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3439
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3440
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3441
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3442
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3443
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3444
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3445
+ 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]]
3446
+  (0.0ms) SAVEPOINT active_record_1
3447
+ 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
3448
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3450
+ Redirected to http://example.org
3451
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3452
+  (0.0ms) rollback transaction
3453
+  (0.0ms) begin transaction
3454
+  (0.0ms) SAVEPOINT active_record_1
3455
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3457
+  (0.0ms) SAVEPOINT active_record_1
3458
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3460
+  (0.0ms) SAVEPOINT active_record_1
3461
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3463
+ Processing by Gamification::RewardsController#create as HTML
3464
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
3465
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3466
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3467
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3468
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3469
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3470
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3471
+ 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"]]
3472
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3473
+ 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]]
3474
+  (0.0ms) SAVEPOINT active_record_1
3475
+ 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
3476
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3477
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3478
+ Redirected to http://example.org
3479
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3480
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
3481
+  (0.0ms) rollback transaction
3482
+  (0.0ms) begin transaction
3483
+  (0.0ms) SAVEPOINT active_record_1
3484
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3486
+  (0.0ms) SAVEPOINT active_record_1
3487
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3489
+  (0.0ms) SAVEPOINT active_record_1
3490
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3492
+ Processing by Gamification::RewardsController#create as HTML
3493
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
3494
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3495
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3496
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3497
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3498
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3499
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3500
+ 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"]]
3501
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3502
+ 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]]
3503
+  (0.0ms) SAVEPOINT active_record_1
3504
+ 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
3505
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3507
+ Redirected to http://example.org
3508
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
3509
+  (0.0ms) rollback transaction
3510
+  (0.0ms) begin transaction
3511
+  (0.0ms) SAVEPOINT active_record_1
3512
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3513
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3514
+  (0.0ms) SAVEPOINT active_record_1
3515
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3517
+  (0.0ms) SAVEPOINT active_record_1
3518
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3520
+ Processing by Gamification::RewardsController#create as HTML
3521
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
3522
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3523
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3524
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3525
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3526
+ Filter chain halted as :verify_checksum rendered or redirected
3527
+ Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
3528
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
3529
+  (0.0ms) rollback transaction
3530
+  (0.0ms) begin transaction
3531
+  (0.0ms) SAVEPOINT active_record_1
3532
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3533
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3534
+  (0.0ms) SAVEPOINT active_record_1
3535
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3537
+  (0.0ms) SAVEPOINT active_record_1
3538
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3539
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3540
+ Processing by Gamification::RewardsController#create as HTML
3541
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
3542
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3543
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3544
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3545
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3546
+ Filter chain halted as :verify_checksum rendered or redirected
3547
+ Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
3548
+  (0.0ms) rollback transaction
3549
+  (0.0ms) begin transaction
3550
+  (0.0ms) SAVEPOINT active_record_1
3551
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3552
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3553
+  (0.0ms) SAVEPOINT active_record_1
3554
+ 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
3555
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3557
+ 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"]]
3558
+ 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"]]
3559
+  (0.0ms) SAVEPOINT active_record_1
3560
+ SQL (0.0ms) UPDATE "gamification_rewards" SET "updated_at" = '2016-02-25 09:08:25.543048', "seen_at" = '2016-02-25 09:08:25.543048' WHERE "gamification_rewards"."id" = 1
3561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3562
+  (0.0ms) rollback transaction
3563
+  (0.0ms) begin transaction
3564
+  (0.0ms) SAVEPOINT active_record_1
3565
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 100], ["updated_at", "2016-02-25 09:08:25.543048"]]
3566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3567
+  (0.0ms) SAVEPOINT active_record_1
3568
+ 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
3569
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3570
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3571
+  (0.0ms) SAVEPOINT active_record_1
3572
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["description", "Eum occaecati et facilis dicta tempora blanditiis totam."], ["goal_id", 1], ["image", nil], ["name", "nesciunt"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3574
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3575
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
3576
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
3577
+  (0.0ms) rollback transaction
3578
+  (0.0ms) begin transaction
3579
+  (0.0ms) SAVEPOINT active_record_1
3580
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 100], ["updated_at", "2016-02-25 09:08:25.543048"]]
3581
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3582
+  (0.0ms) SAVEPOINT active_record_1
3583
+ 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
3584
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3585
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3586
+  (0.0ms) SAVEPOINT active_record_1
3587
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["description", "Eum occaecati et facilis dicta tempora blanditiis totam."], ["goal_id", 1], ["image", nil], ["name", "nesciunt"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3588
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3589
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3590
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
3591
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
3592
+  (0.0ms) rollback transaction
3593
+  (0.0ms) begin transaction
3594
+  (0.0ms) SAVEPOINT active_record_1
3595
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 100], ["updated_at", "2016-02-25 09:08:25.543048"]]
3596
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3597
+  (0.0ms) SAVEPOINT active_record_1
3598
+ 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
3599
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3600
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3601
+  (0.0ms) SAVEPOINT active_record_1
3602
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["description", "Eum occaecati et facilis dicta tempora blanditiis totam."], ["goal_id", 1], ["image", nil], ["name", "nesciunt"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3604
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3605
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
3606
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
3607
+  (0.0ms) rollback transaction
3608
+  (0.0ms) begin transaction
3609
+  (0.0ms) SAVEPOINT active_record_1
3610
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3611
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3612
+  (0.0ms) SAVEPOINT active_record_1
3613
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["description", "Eum occaecati et facilis dicta tempora blanditiis totam."], ["image", nil], ["name", "nesciunt"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3614
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3615
+  (0.0ms) SAVEPOINT active_record_1
3616
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3617
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
3618
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3619
+  (0.0ms) SAVEPOINT active_record_1
3620
+ 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
3621
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3623
+  (0.0ms) SAVEPOINT active_record_1
3624
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3626
+  (0.0ms) SAVEPOINT active_record_1
3627
+ 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
3628
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3630
+ 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"]]
3631
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3632
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3633
+  (0.0ms) rollback transaction
3634
+  (0.0ms) begin transaction
3635
+  (0.0ms) SAVEPOINT active_record_1
3636
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3637
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3638
+ 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"]]
3639
+  (0.0ms) rollback transaction
3640
+  (0.0ms) begin transaction
3641
+  (0.0ms) SAVEPOINT active_record_1
3642
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3644
+  (0.0ms) SAVEPOINT active_record_1
3645
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3647
+  (0.0ms) SAVEPOINT active_record_1
3648
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3650
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
3651
+ 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]]
3652
+ 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]]
3653
+  (0.0ms) rollback transaction
3654
+  (0.0ms) begin transaction
3655
+  (0.0ms) SAVEPOINT active_record_1
3656
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3657
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3658
+  (0.0ms) SAVEPOINT active_record_1
3659
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3661
+ 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]]
3662
+  (0.0ms) SAVEPOINT active_record_1
3663
+ 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
3664
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3666
+  (0.0ms) rollback transaction
3667
+  (0.0ms) begin transaction
3668
+  (0.0ms) SAVEPOINT active_record_1
3669
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3671
+  (0.0ms) SAVEPOINT active_record_1
3672
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3674
+  (0.0ms) SAVEPOINT active_record_1
3675
+ 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
3676
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3677
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3678
+ 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]]
3679
+  (0.0ms) rollback transaction
3680
+  (0.0ms) begin transaction
3681
+  (0.0ms) SAVEPOINT active_record_1
3682
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3684
+  (0.0ms) SAVEPOINT active_record_1
3685
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3686
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3687
+  (0.0ms) SAVEPOINT active_record_1
3688
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3690
+ 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]]
3691
+  (0.0ms) SAVEPOINT active_record_1
3692
+ 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
3693
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3694
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3695
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
3696
+ 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]]
3697
+ 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]]
3698
+  (0.0ms) rollback transaction
3699
+  (0.0ms) begin transaction
3700
+  (0.0ms) SAVEPOINT active_record_1
3701
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3703
+  (0.0ms) SAVEPOINT active_record_1
3704
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3705
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3706
+  (0.0ms) SAVEPOINT active_record_1
3707
+ 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
3708
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3710
+ 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]]
3711
+  (0.0ms) rollback transaction
3712
+  (0.0ms) begin transaction
3713
+  (0.0ms) SAVEPOINT active_record_1
3714
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["points", 1], ["updated_at", "2016-02-25 09:08:25.543048"]]
3715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3716
+  (0.0ms) SAVEPOINT active_record_1
3717
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3719
+ 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]]
3720
+  (0.0ms) rollback transaction
3721
+  (0.0ms) begin transaction
3722
+  (0.0ms) SAVEPOINT active_record_1
3723
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:08:25.543048"], ["updated_at", "2016-02-25 09:08:25.543048"]]
3724
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3725
+ Processing by ArticlesController#show as HTML
3726
+ Parameters: {"id"=>"1"}
3727
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3728
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
3729
+  (0.0ms) rollback transaction
3730
+  (0.3ms) begin transaction
3731
+  (0.0ms) rollback transaction
3732
+  (0.0ms) begin transaction
3733
+  (0.0ms) rollback transaction
3734
+  (0.0ms) begin transaction
3735
+  (0.0ms) SAVEPOINT active_record_1
3736
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.040488"], ["updated_at", "2016-02-25 09:11:14.040488"]]
3737
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3738
+  (0.0ms) SAVEPOINT active_record_1
3739
+ SQL (0.9ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.050358"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:14.050358"]]
3740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3741
+  (0.0ms) SAVEPOINT active_record_1
3742
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.052975"], ["updated_at", "2016-02-25 09:11:14.052975"]]
3743
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3744
+ Processing by Gamification::RewardsController#create as HTML
3745
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
3746
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3747
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3748
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3749
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3750
+ Rendered text template (0.0ms)
3751
+ Filter chain halted as :verify_checksum rendered or redirected
3752
+ Completed 403 Forbidden in 11ms (Views: 5.7ms | ActiveRecord: 0.4ms)
3753
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
3754
+  (1.1ms) rollback transaction
3755
+  (0.0ms) begin transaction
3756
+  (0.0ms) SAVEPOINT active_record_1
3757
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.072947"], ["updated_at", "2016-02-25 09:11:14.072947"]]
3758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3759
+  (0.0ms) SAVEPOINT active_record_1
3760
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.074541"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:14.074541"]]
3761
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3762
+  (0.0ms) SAVEPOINT active_record_1
3763
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.075883"], ["updated_at", "2016-02-25 09:11:14.075883"]]
3764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3765
+ Processing by Gamification::RewardsController#create as HTML
3766
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
3767
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3768
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3769
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3770
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3771
+ Filter chain halted as :verify_checksum rendered or redirected
3772
+ Completed 403 Forbidden in 3ms (Views: 0.3ms | ActiveRecord: 0.2ms)
3773
+  (0.6ms) rollback transaction
3774
+  (0.1ms) begin transaction
3775
+  (0.0ms) SAVEPOINT active_record_1
3776
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.083424"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.083424"]]
3777
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3778
+  (0.0ms) SAVEPOINT active_record_1
3779
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.084648"], ["updated_at", "2016-02-25 09:11:14.084648"]]
3780
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3781
+ Processing by Gamification::RewardsController#create as HTML
3782
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
3783
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3784
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3785
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3786
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3787
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3788
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3789
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3790
+ 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]]
3791
+  (0.0ms) SAVEPOINT active_record_1
3792
+ 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
3793
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.106456"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.106456"]]
3794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3795
+ Redirected to http://example.org
3796
+ Completed 302 Found in 21ms (ActiveRecord: 0.6ms)
3797
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
3798
+  (0.6ms) rollback transaction
3799
+  (0.1ms) begin transaction
3800
+  (0.0ms) SAVEPOINT active_record_1
3801
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.110866"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.110866"]]
3802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3803
+  (0.0ms) SAVEPOINT active_record_1
3804
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.112272"], ["updated_at", "2016-02-25 09:11:14.112272"]]
3805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3806
+ Processing by Gamification::RewardsController#create as HTML
3807
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
3808
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3809
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3810
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3811
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3812
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3813
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
3814
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3815
+ 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]]
3816
+  (0.0ms) SAVEPOINT active_record_1
3817
+ 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
3818
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.119181"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.119181"]]
3819
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3820
+ Redirected to http://example.org
3821
+ Completed 302 Found in 6ms (ActiveRecord: 0.4ms)
3822
+  (0.8ms) rollback transaction
3823
+  (0.0ms) begin transaction
3824
+  (0.0ms) SAVEPOINT active_record_1
3825
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.122887"], ["updated_at", "2016-02-25 09:11:14.122887"]]
3826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3827
+  (0.0ms) SAVEPOINT active_record_1
3828
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.124292"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:14.124292"]]
3829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3830
+  (0.1ms) SAVEPOINT active_record_1
3831
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.125932"], ["updated_at", "2016-02-25 09:11:14.125932"]]
3832
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3833
+ Processing by Gamification::RewardsController#create as HTML
3834
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
3835
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3836
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3837
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3838
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3839
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3840
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3841
+ 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"]]
3842
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3843
+ 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]]
3844
+  (0.0ms) SAVEPOINT active_record_1
3845
+ 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
3846
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.136228"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.136228"]]
3847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3848
+ Redirected to http://example.org
3849
+ Completed 302 Found in 8ms (ActiveRecord: 0.7ms)
3850
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
3851
+  (0.9ms) rollback transaction
3852
+  (0.1ms) begin transaction
3853
+  (0.0ms) SAVEPOINT active_record_1
3854
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.140459"], ["updated_at", "2016-02-25 09:11:14.140459"]]
3855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3856
+  (0.0ms) SAVEPOINT active_record_1
3857
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.142141"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:14.142141"]]
3858
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3859
+  (0.0ms) SAVEPOINT active_record_1
3860
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.143658"], ["updated_at", "2016-02-25 09:11:14.143658"]]
3861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3862
+ Processing by Gamification::RewardsController#create as HTML
3863
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
3864
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3865
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3866
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3867
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3868
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3869
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
3870
+ 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"]]
3871
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
3872
+ 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]]
3873
+  (0.0ms) SAVEPOINT active_record_1
3874
+ 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
3875
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.160036"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.160036"]]
3876
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3877
+ Redirected to http://example.org
3878
+ Completed 302 Found in 15ms (ActiveRecord: 0.6ms)
3879
+  (0.9ms) rollback transaction
3880
+  (0.0ms) begin transaction
3881
+  (0.0ms) SAVEPOINT active_record_1
3882
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.165181"], ["updated_at", "2016-02-25 09:11:14.165181"]]
3883
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3884
+  (0.0ms) SAVEPOINT active_record_1
3885
+ 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
3886
+ SQL (0.4ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.167877"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.167877"]]
3887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3888
+ 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"]]
3889
+ 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"]]
3890
+  (0.0ms) SAVEPOINT active_record_1
3891
+ SQL (0.1ms) UPDATE "gamification_rewards" SET "updated_at" = '2016-02-25 09:11:14.171286', "seen_at" = '2016-02-25 09:11:14.171286' WHERE "gamification_rewards"."id" = 1
3892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3893
+  (0.6ms) rollback transaction
3894
+  (0.0ms) begin transaction
3895
+  (0.0ms) SAVEPOINT active_record_1
3896
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.174418"], ["updated_at", "2016-02-25 09:11:14.174418"]]
3897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3898
+  (0.0ms) SAVEPOINT active_record_1
3899
+ SQL (0.3ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.180276"], ["description", "Est molestiae quisquam et nostrum."], ["image", nil], ["name", "perspiciatis"], ["updated_at", "2016-02-25 09:11:14.180276"]]
3900
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3901
+  (0.0ms) SAVEPOINT active_record_1
3902
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.183726"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.183726"]]
3903
+ SQL (0.2ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2016-02-25 09:11:14.184318"]]
3904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3905
+  (0.0ms) SAVEPOINT active_record_1
3906
+ 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
3907
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.187606"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.187606"]]
3908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3909
+  (0.0ms) SAVEPOINT active_record_1
3910
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.189159"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.189159"]]
3911
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3912
+  (0.0ms) SAVEPOINT active_record_1
3913
+ 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
3914
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.191069"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.191069"]]
3915
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3916
+ 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"]]
3917
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3918
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3919
+ 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"]]
3920
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
3921
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
3922
+  (0.7ms) rollback transaction
3923
+  (0.0ms) begin transaction
3924
+  (0.0ms) SAVEPOINT active_record_1
3925
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.200707"], ["updated_at", "2016-02-25 09:11:14.200707"]]
3926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3927
+ 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"]]
3928
+  (0.3ms) rollback transaction
3929
+  (0.0ms) begin transaction
3930
+  (0.0ms) SAVEPOINT active_record_1
3931
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.205186"], ["updated_at", "2016-02-25 09:11:14.205186"]]
3932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3933
+  (0.0ms) SAVEPOINT active_record_1
3934
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.206351"], ["updated_at", "2016-02-25 09:11:14.206351"]]
3935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3936
+  (0.5ms) rollback transaction
3937
+  (0.0ms) begin transaction
3938
+  (0.0ms) SAVEPOINT active_record_1
3939
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.212244"], ["points", 100], ["updated_at", "2016-02-25 09:11:14.212244"]]
3940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3941
+  (0.0ms) SAVEPOINT active_record_1
3942
+ 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
3943
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.214036"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:14.214036"]]
3944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3945
+  (0.0ms) SAVEPOINT active_record_1
3946
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.215380"], ["description", "Est molestiae quisquam et nostrum."], ["goal_id", 1], ["image", nil], ["name", "perspiciatis"], ["updated_at", "2016-02-25 09:11:14.215380"]]
3947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3948
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3949
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.5ms)
3950
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (6.4ms)
3951
+  (0.9ms) rollback transaction
3952
+  (0.1ms) begin transaction
3953
+  (0.1ms) SAVEPOINT active_record_1
3954
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.232960"], ["points", 100], ["updated_at", "2016-02-25 09:11:14.232960"]]
3955
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3956
+  (0.0ms) SAVEPOINT active_record_1
3957
+ 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
3958
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.235555"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:14.235555"]]
3959
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3960
+  (0.0ms) SAVEPOINT active_record_1
3961
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.237510"], ["description", "Est molestiae quisquam et nostrum."], ["goal_id", 1], ["image", nil], ["name", "perspiciatis"], ["updated_at", "2016-02-25 09:11:14.237510"]]
3962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3963
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3964
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.2ms)
3965
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.6ms)
3966
+  (0.9ms) rollback transaction
3967
+  (0.0ms) begin transaction
3968
+  (0.0ms) SAVEPOINT active_record_1
3969
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.249612"], ["points", 100], ["updated_at", "2016-02-25 09:11:14.249612"]]
3970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3971
+  (0.0ms) SAVEPOINT active_record_1
3972
+ 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
3973
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.251655"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:14.251655"]]
3974
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3975
+  (0.0ms) SAVEPOINT active_record_1
3976
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.253503"], ["description", "Est molestiae quisquam et nostrum."], ["goal_id", 1], ["image", nil], ["name", "perspiciatis"], ["updated_at", "2016-02-25 09:11:14.253503"]]
3977
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3978
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
3979
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.0ms)
3980
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.5ms)
3981
+  (0.9ms) rollback transaction
3982
+  (0.0ms) begin transaction
3983
+  (0.0ms) SAVEPOINT active_record_1
3984
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.265579"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.265579"]]
3985
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3986
+  (0.0ms) SAVEPOINT active_record_1
3987
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.266823"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.266823"]]
3988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3989
+  (0.0ms) SAVEPOINT active_record_1
3990
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.268264"], ["description", "Est molestiae quisquam et nostrum."], ["goal_id", 1], ["image", nil], ["name", "perspiciatis"], ["updated_at", "2016-02-25 09:11:14.268264"]]
3991
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3992
+  (0.0ms) SAVEPOINT active_record_1
3993
+ 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
3994
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.269733"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:14.269733"]]
3995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3996
+  (0.0ms) SAVEPOINT active_record_1
3997
+ 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
3998
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.270931"], ["goal_id", 2], ["updated_at", "2016-02-25 09:11:14.270931"]]
3999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4000
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
4001
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4002
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4003
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
4004
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
4005
+  (0.8ms) rollback transaction
4006
+  (0.0ms) begin transaction
4007
+  (0.0ms) SAVEPOINT active_record_1
4008
+ 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
4009
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.275977"], ["seen_at", "2016-02-23 09:11:14.274766"], ["updated_at", "2016-02-25 09:11:14.275977"]]
4010
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4011
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
4012
+  (0.4ms) rollback transaction
4013
+  (0.0ms) begin transaction
4014
+  (0.0ms) SAVEPOINT active_record_1
4015
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.279668"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.279668"]]
4016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4017
+  (0.0ms) SAVEPOINT active_record_1
4018
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.280937"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.280937"]]
4019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4020
+  (0.0ms) SAVEPOINT active_record_1
4021
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.282478"], ["description", "Est molestiae quisquam et nostrum."], ["goal_id", 1], ["image", nil], ["name", "perspiciatis"], ["updated_at", "2016-02-25 09:11:14.282478"]]
4022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4023
+  (0.0ms) SAVEPOINT active_record_1
4024
+ 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
4025
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.284106"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:14.284106"]]
4026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4027
+  (0.0ms) SAVEPOINT active_record_1
4028
+ 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
4029
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.285508"], ["goal_id", 2], ["updated_at", "2016-02-25 09:11:14.285508"]]
4030
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4031
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
4032
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4033
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4034
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
4035
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
4036
+  (0.9ms) rollback transaction
4037
+  (0.1ms) begin transaction
4038
+  (0.0ms) SAVEPOINT active_record_1
4039
+ 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
4040
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.291013"], ["updated_at", "2016-02-25 09:11:14.291013"]]
4041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4042
+  (0.3ms) rollback transaction
4043
+  (0.0ms) begin transaction
4044
+  (0.0ms) SAVEPOINT active_record_1
4045
+ 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
4046
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.293996"], ["seen_at", "2016-02-23 09:11:14.293026"], ["updated_at", "2016-02-25 09:11:14.293996"]]
4047
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4048
+  (0.3ms) rollback transaction
4049
+  (0.0ms) begin transaction
4050
+  (0.0ms) rollback transaction
4051
+  (0.0ms) begin transaction
4052
+  (0.0ms) rollback transaction
4053
+  (0.0ms) begin transaction
4054
+  (0.0ms) SAVEPOINT active_record_1
4055
+ 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
4056
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4058
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
4059
+  (0.0ms) rollback transaction
4060
+  (0.0ms) begin transaction
4061
+  (0.0ms) SAVEPOINT active_record_1
4062
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4064
+ Processing by ArticlesController#show as HTML
4065
+ Parameters: {"id"=>"1"}
4066
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4067
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
4068
+  (0.0ms) rollback transaction
4069
+  (0.0ms) begin transaction
4070
+  (0.0ms) SAVEPOINT active_record_1
4071
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4072
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4073
+  (0.0ms) SAVEPOINT active_record_1
4074
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4075
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4076
+  (0.0ms) SAVEPOINT active_record_1
4077
+ 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
4078
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4080
+ 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]]
4081
+  (0.0ms) rollback transaction
4082
+  (0.0ms) begin transaction
4083
+  (0.0ms) SAVEPOINT active_record_1
4084
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4086
+  (0.0ms) SAVEPOINT active_record_1
4087
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4089
+ 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]]
4090
+  (0.0ms) rollback transaction
4091
+  (0.0ms) begin transaction
4092
+  (0.0ms) SAVEPOINT active_record_1
4093
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4094
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4095
+  (0.0ms) SAVEPOINT active_record_1
4096
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4097
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4098
+  (0.0ms) SAVEPOINT active_record_1
4099
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4101
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
4102
+ 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]]
4103
+ 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]]
4104
+  (0.0ms) rollback transaction
4105
+  (0.0ms) begin transaction
4106
+  (0.0ms) SAVEPOINT active_record_1
4107
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4109
+  (0.0ms) SAVEPOINT active_record_1
4110
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4112
+  (0.0ms) SAVEPOINT active_record_1
4113
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4115
+ 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]]
4116
+  (0.0ms) SAVEPOINT active_record_1
4117
+ 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
4118
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4120
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
4121
+ 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]]
4122
+ 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]]
4123
+  (0.0ms) rollback transaction
4124
+  (0.0ms) begin transaction
4125
+  (0.0ms) SAVEPOINT active_record_1
4126
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4128
+  (0.0ms) SAVEPOINT active_record_1
4129
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4131
+ 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]]
4132
+  (0.0ms) SAVEPOINT active_record_1
4133
+ 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
4134
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4136
+  (0.0ms) rollback transaction
4137
+  (0.0ms) begin transaction
4138
+  (0.0ms) SAVEPOINT active_record_1
4139
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["points", 1], ["updated_at", "2016-02-25 09:11:14.295743"]]
4140
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4141
+  (0.0ms) SAVEPOINT active_record_1
4142
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4144
+  (0.0ms) SAVEPOINT active_record_1
4145
+ 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
4146
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:14.295743"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:14.295743"]]
4147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4148
+ 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]]
4149
+  (0.0ms) rollback transaction
4150
+  (0.3ms) begin transaction
4151
+  (0.1ms) SAVEPOINT active_record_1
4152
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.800572"], ["points", 100], ["updated_at", "2016-02-25 09:11:29.800572"]]
4153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4154
+  (0.0ms) SAVEPOINT active_record_1
4155
+ 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
4156
+ SQL (1.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.814505"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:29.814505"]]
4157
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4158
+  (0.0ms) SAVEPOINT active_record_1
4159
+ SQL (0.2ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.821383"], ["description", "Dicta quos labore et voluptatem nesciunt dolor vero."], ["goal_id", 1], ["image", nil], ["name", "repudiandae"], ["updated_at", "2016-02-25 09:11:29.821383"]]
4160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4161
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4162
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (5.5ms)
4163
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (9.5ms)
4164
+  (1.5ms) rollback transaction
4165
+  (0.1ms) begin transaction
4166
+  (0.1ms) SAVEPOINT active_record_1
4167
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.842043"], ["points", 100], ["updated_at", "2016-02-25 09:11:29.842043"]]
4168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4169
+  (0.0ms) SAVEPOINT active_record_1
4170
+ 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
4171
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.844731"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:29.844731"]]
4172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4173
+  (0.0ms) SAVEPOINT active_record_1
4174
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.846650"], ["description", "Dicta quos labore et voluptatem nesciunt dolor vero."], ["goal_id", 1], ["image", nil], ["name", "repudiandae"], ["updated_at", "2016-02-25 09:11:29.846650"]]
4175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4176
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4177
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.0ms)
4178
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.4ms)
4179
+  (0.6ms) rollback transaction
4180
+  (0.0ms) begin transaction
4181
+  (0.0ms) SAVEPOINT active_record_1
4182
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.857796"], ["points", 100], ["updated_at", "2016-02-25 09:11:29.857796"]]
4183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4184
+  (0.0ms) SAVEPOINT active_record_1
4185
+ 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
4186
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.859497"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:29.859497"]]
4187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4188
+  (0.0ms) SAVEPOINT active_record_1
4189
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.860764"], ["description", "Dicta quos labore et voluptatem nesciunt dolor vero."], ["goal_id", 1], ["image", nil], ["name", "repudiandae"], ["updated_at", "2016-02-25 09:11:29.860764"]]
4190
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4191
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4192
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.0ms)
4193
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.3ms)
4194
+  (0.6ms) rollback transaction
4195
+  (0.0ms) begin transaction
4196
+  (0.0ms) SAVEPOINT active_record_1
4197
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.871369"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.871369"]]
4198
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4199
+  (0.0ms) SAVEPOINT active_record_1
4200
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.873099"], ["updated_at", "2016-02-25 09:11:29.873099"]]
4201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4202
+ Processing by Gamification::RewardsController#create as HTML
4203
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
4204
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4205
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4206
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4207
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4208
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4209
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4210
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4211
+ 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]]
4212
+  (0.1ms) SAVEPOINT active_record_1
4213
+ 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
4214
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.892029"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.892029"]]
4215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4216
+ Redirected to http://example.org
4217
+ Completed 302 Found in 16ms (ActiveRecord: 0.7ms)
4218
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
4219
+  (0.7ms) rollback transaction
4220
+  (0.1ms) begin transaction
4221
+  (0.0ms) SAVEPOINT active_record_1
4222
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.896619"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.896619"]]
4223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4224
+  (0.0ms) SAVEPOINT active_record_1
4225
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.897683"], ["updated_at", "2016-02-25 09:11:29.897683"]]
4226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4227
+ Processing by Gamification::RewardsController#create as HTML
4228
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
4229
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4230
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4231
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4232
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4233
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4234
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4235
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4236
+ 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]]
4237
+  (0.0ms) SAVEPOINT active_record_1
4238
+ 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
4239
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.905018"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.905018"]]
4240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4241
+ Redirected to http://example.org
4242
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
4243
+  (0.7ms) rollback transaction
4244
+  (0.1ms) begin transaction
4245
+  (0.0ms) SAVEPOINT active_record_1
4246
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.909936"], ["updated_at", "2016-02-25 09:11:29.909936"]]
4247
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4248
+  (0.0ms) SAVEPOINT active_record_1
4249
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.913071"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:29.913071"]]
4250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4251
+  (0.0ms) SAVEPOINT active_record_1
4252
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.914444"], ["updated_at", "2016-02-25 09:11:29.914444"]]
4253
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4254
+ Processing by Gamification::RewardsController#create as HTML
4255
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
4256
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4257
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4258
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4259
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4260
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4261
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4262
+ 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"]]
4263
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4264
+ 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]]
4265
+  (0.0ms) SAVEPOINT active_record_1
4266
+ 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
4267
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.929713"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.929713"]]
4268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4269
+ Redirected to http://example.org
4270
+ Completed 302 Found in 14ms (ActiveRecord: 0.7ms)
4271
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
4272
+  (0.7ms) rollback transaction
4273
+  (0.0ms) begin transaction
4274
+  (0.0ms) SAVEPOINT active_record_1
4275
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.933358"], ["updated_at", "2016-02-25 09:11:29.933358"]]
4276
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4277
+  (0.0ms) SAVEPOINT active_record_1
4278
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.934708"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:29.934708"]]
4279
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4280
+  (0.0ms) SAVEPOINT active_record_1
4281
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.935727"], ["updated_at", "2016-02-25 09:11:29.935727"]]
4282
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4283
+ Processing by Gamification::RewardsController#create as HTML
4284
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
4285
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4286
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4287
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4288
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4289
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4290
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4291
+ 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"]]
4292
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4293
+ 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]]
4294
+  (0.1ms) SAVEPOINT active_record_1
4295
+ 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
4296
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.942407"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.942407"]]
4297
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4298
+ Redirected to http://example.org
4299
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
4300
+  (0.8ms) rollback transaction
4301
+  (0.0ms) begin transaction
4302
+  (0.0ms) SAVEPOINT active_record_1
4303
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.946212"], ["updated_at", "2016-02-25 09:11:29.946212"]]
4304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4305
+  (0.0ms) SAVEPOINT active_record_1
4306
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.947604"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:29.947604"]]
4307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4308
+  (0.1ms) SAVEPOINT active_record_1
4309
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.949086"], ["updated_at", "2016-02-25 09:11:29.949086"]]
4310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4311
+ Processing by Gamification::RewardsController#create as HTML
4312
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
4313
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4314
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4315
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4316
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4317
+ Filter chain halted as :verify_checksum rendered or redirected
4318
+ Completed 403 Forbidden in 5ms (Views: 2.2ms | ActiveRecord: 0.1ms)
4319
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
4320
+  (0.6ms) rollback transaction
4321
+  (0.0ms) begin transaction
4322
+  (0.0ms) SAVEPOINT active_record_1
4323
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.958665"], ["updated_at", "2016-02-25 09:11:29.958665"]]
4324
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4325
+  (0.0ms) SAVEPOINT active_record_1
4326
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.959886"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:11:29.959886"]]
4327
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4328
+  (0.0ms) SAVEPOINT active_record_1
4329
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.960926"], ["updated_at", "2016-02-25 09:11:29.960926"]]
4330
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4331
+ Processing by Gamification::RewardsController#create as HTML
4332
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
4333
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4334
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4335
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4336
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4337
+ Filter chain halted as :verify_checksum rendered or redirected
4338
+ Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
4339
+  (0.6ms) rollback transaction
4340
+  (0.0ms) begin transaction
4341
+  (0.0ms) SAVEPOINT active_record_1
4342
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.967310"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.967310"]]
4343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4344
+  (0.0ms) SAVEPOINT active_record_1
4345
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.968589"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.968589"]]
4346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4347
+  (0.0ms) SAVEPOINT active_record_1
4348
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.969552"], ["updated_at", "2016-02-25 09:11:29.969552"]]
4349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4350
+ 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]]
4351
+  (0.0ms) SAVEPOINT active_record_1
4352
+ 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
4353
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.971441"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.971441"]]
4354
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4355
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
4356
+ 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]]
4357
+ 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]]
4358
+  (0.7ms) rollback transaction
4359
+  (0.0ms) begin transaction
4360
+  (0.0ms) SAVEPOINT active_record_1
4361
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.975446"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.975446"]]
4362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4363
+  (0.0ms) SAVEPOINT active_record_1
4364
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.976522"], ["updated_at", "2016-02-25 09:11:29.976522"]]
4365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4366
+  (0.0ms) SAVEPOINT active_record_1
4367
+ 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
4368
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.978166"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.978166"]]
4369
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4370
+ 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]]
4371
+  (0.5ms) rollback transaction
4372
+  (0.1ms) begin transaction
4373
+  (0.1ms) SAVEPOINT active_record_1
4374
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.981760"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.981760"]]
4375
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4376
+  (0.1ms) SAVEPOINT active_record_1
4377
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.983386"], ["updated_at", "2016-02-25 09:11:29.983386"]]
4378
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4379
+ 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]]
4380
+  (0.5ms) rollback transaction
4381
+  (0.0ms) begin transaction
4382
+  (0.0ms) SAVEPOINT active_record_1
4383
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.987518"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.987518"]]
4384
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4385
+  (0.0ms) SAVEPOINT active_record_1
4386
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.989169"], ["updated_at", "2016-02-25 09:11:29.989169"]]
4387
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4388
+ 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]]
4389
+  (0.0ms) SAVEPOINT active_record_1
4390
+ 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
4391
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.991584"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.991584"]]
4392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4393
+  (0.6ms) rollback transaction
4394
+  (0.1ms) begin transaction
4395
+  (0.0ms) SAVEPOINT active_record_1
4396
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:29.994753"], ["points", 1], ["updated_at", "2016-02-25 09:11:29.994753"]]
4397
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4398
+  (0.0ms) SAVEPOINT active_record_1
4399
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:29.996085"], ["updated_at", "2016-02-25 09:11:29.996085"]]
4400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4401
+  (0.0ms) SAVEPOINT active_record_1
4402
+ 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
4403
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:29.998080"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:29.998080"]]
4404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4405
+ 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]]
4406
+  (0.4ms) rollback transaction
4407
+  (0.0ms) begin transaction
4408
+  (0.0ms) SAVEPOINT active_record_1
4409
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.002072"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.002072"]]
4410
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4411
+  (0.0ms) SAVEPOINT active_record_1
4412
+ SQL (0.8ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.003212"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.003212"]]
4413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4414
+  (0.0ms) SAVEPOINT active_record_1
4415
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.005545"], ["updated_at", "2016-02-25 09:11:30.005545"]]
4416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4417
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
4418
+ 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]]
4419
+ 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]]
4420
+  (0.5ms) rollback transaction
4421
+  (0.0ms) begin transaction
4422
+  (0.0ms) SAVEPOINT active_record_1
4423
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.010002"], ["updated_at", "2016-02-25 09:11:30.010002"]]
4424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4425
+  (0.0ms) SAVEPOINT active_record_1
4426
+ SQL (0.2ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:30.011386"], ["description", "Dicta quos labore et voluptatem nesciunt dolor vero."], ["image", nil], ["name", "repudiandae"], ["updated_at", "2016-02-25 09:11:30.011386"]]
4427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4428
+  (0.0ms) SAVEPOINT active_record_1
4429
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.012658"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.012658"]]
4430
+ SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2016-02-25 09:11:30.013153"]]
4431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4432
+  (0.0ms) SAVEPOINT active_record_1
4433
+ 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
4434
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:30.015106"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:30.015106"]]
4435
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4436
+  (0.1ms) SAVEPOINT active_record_1
4437
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.016139"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.016139"]]
4438
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4439
+  (0.0ms) SAVEPOINT active_record_1
4440
+ 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
4441
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:30.017364"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:30.017364"]]
4442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4443
+ 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"]]
4444
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
4445
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
4446
+ 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"]]
4447
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
4448
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
4449
+  (0.6ms) rollback transaction
4450
+  (0.0ms) begin transaction
4451
+  (0.1ms) SAVEPOINT active_record_1
4452
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.025950"], ["updated_at", "2016-02-25 09:11:30.025950"]]
4453
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4454
+ 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"]]
4455
+  (0.3ms) rollback transaction
4456
+  (0.0ms) begin transaction
4457
+  (0.0ms) SAVEPOINT active_record_1
4458
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.029673"], ["updated_at", "2016-02-25 09:11:30.029673"]]
4459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4460
+  (0.0ms) SAVEPOINT active_record_1
4461
+ 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
4462
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2016-02-25 09:11:30.031513"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:11:30.031513"]]
4463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4464
+ 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"]]
4465
+ 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"]]
4466
+  (0.0ms) SAVEPOINT active_record_1
4467
+ SQL (0.1ms) UPDATE "gamification_rewards" SET "updated_at" = '2016-02-25 09:11:30.034016', "seen_at" = '2016-02-25 09:11:30.034016' WHERE "gamification_rewards"."id" = 1
4468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4469
+  (0.5ms) rollback transaction
4470
+  (0.0ms) begin transaction
4471
+  (0.0ms) SAVEPOINT active_record_1
4472
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.037750"], ["updated_at", "2016-02-25 09:11:30.037750"]]
4473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4474
+  (0.1ms) SAVEPOINT active_record_1
4475
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.039227"], ["updated_at", "2016-02-25 09:11:30.039227"]]
4476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4477
+  (0.8ms) rollback transaction
4478
+  (0.0ms) begin transaction
4479
+  (0.1ms) SAVEPOINT active_record_1
4480
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.044865"], ["updated_at", "2016-02-25 09:11:30.044865"]]
4481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4482
+ Processing by ArticlesController#show as HTML
4483
+ Parameters: {"id"=>"1"}
4484
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4485
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
4486
+  (0.4ms) rollback transaction
4487
+  (0.1ms) begin transaction
4488
+  (0.0ms) SAVEPOINT active_record_1
4489
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.053423"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.053423"]]
4490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4491
+  (0.0ms) SAVEPOINT active_record_1
4492
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.054710"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.054710"]]
4493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4494
+  (0.0ms) SAVEPOINT active_record_1
4495
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:30.056276"], ["description", "Dicta quos labore et voluptatem nesciunt dolor vero."], ["goal_id", 1], ["image", nil], ["name", "repudiandae"], ["updated_at", "2016-02-25 09:11:30.056276"]]
4496
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4497
+  (0.0ms) SAVEPOINT active_record_1
4498
+ 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
4499
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.057835"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:30.057835"]]
4500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4501
+  (0.0ms) SAVEPOINT active_record_1
4502
+ 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
4503
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.059078"], ["goal_id", 2], ["updated_at", "2016-02-25 09:11:30.059078"]]
4504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4505
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
4506
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4507
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4508
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
4509
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
4510
+  (0.6ms) rollback transaction
4511
+  (0.1ms) begin transaction
4512
+  (0.0ms) rollback transaction
4513
+  (0.0ms) begin transaction
4514
+  (0.0ms) SAVEPOINT active_record_1
4515
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.062836"]]
4516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4517
+  (0.0ms) SAVEPOINT active_record_1
4518
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["points", 1], ["updated_at", "2016-02-25 09:11:30.062836"]]
4519
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4520
+  (0.0ms) SAVEPOINT active_record_1
4521
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["description", "Dicta quos labore et voluptatem nesciunt dolor vero."], ["goal_id", 1], ["image", nil], ["name", "repudiandae"], ["updated_at", "2016-02-25 09:11:30.062836"]]
4522
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4523
+  (0.0ms) SAVEPOINT active_record_1
4524
+ 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
4525
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["goal_id", 1], ["updated_at", "2016-02-25 09:11:30.062836"]]
4526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4527
+  (0.0ms) SAVEPOINT active_record_1
4528
+ 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
4529
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["goal_id", 2], ["updated_at", "2016-02-25 09:11:30.062836"]]
4530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4531
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
4532
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4533
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4534
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
4535
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
4536
+  (0.0ms) rollback transaction
4537
+  (0.0ms) begin transaction
4538
+  (0.0ms) SAVEPOINT active_record_1
4539
+ 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
4540
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["seen_at", "2016-02-23 09:11:30.062836"], ["updated_at", "2016-02-25 09:11:30.062836"]]
4541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4542
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
4543
+  (0.0ms) rollback transaction
4544
+  (0.0ms) begin transaction
4545
+  (0.0ms) SAVEPOINT active_record_1
4546
+ 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
4547
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["updated_at", "2016-02-25 09:11:30.062836"]]
4548
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4549
+  (0.0ms) rollback transaction
4550
+  (0.0ms) begin transaction
4551
+  (0.0ms) SAVEPOINT active_record_1
4552
+ 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
4553
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["seen_at", "2016-02-23 09:11:30.062836"], ["updated_at", "2016-02-25 09:11:30.062836"]]
4554
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4555
+  (0.0ms) rollback transaction
4556
+  (0.0ms) begin transaction
4557
+  (0.0ms) rollback transaction
4558
+  (0.0ms) begin transaction
4559
+  (0.0ms) SAVEPOINT active_record_1
4560
+ 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
4561
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:11:30.062836"], ["updated_at", "2016-02-25 09:11:30.062836"]]
4562
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4563
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
4564
+  (0.0ms) rollback transaction
4565
+  (0.0ms) begin transaction
4566
+  (0.0ms) rollback transaction
4567
+  (0.0ms) begin transaction
4568
+  (0.0ms) rollback transaction
4569
+  (0.3ms) begin transaction
4570
+  (0.0ms) SAVEPOINT active_record_1
4571
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.136037"], ["updated_at", "2016-02-25 09:13:55.136037"]]
4572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4573
+ Processing by ArticlesController#show as HTML
4574
+ Parameters: {"id"=>"1"}
4575
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4576
+ Rendered articles/show.html.erb within layouts/application (0.2ms)
4577
+ Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.1ms)
4578
+  (1.1ms) rollback transaction
4579
+  (0.1ms) begin transaction
4580
+  (0.0ms) SAVEPOINT active_record_1
4581
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.158595"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.158595"]]
4582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4583
+  (0.0ms) SAVEPOINT active_record_1
4584
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.160507"], ["updated_at", "2016-02-25 09:13:55.160507"]]
4585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4586
+  (0.0ms) SAVEPOINT active_record_1
4587
+ 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
4588
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.172694"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.172694"]]
4589
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4590
+ 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]]
4591
+  (0.7ms) rollback transaction
4592
+  (0.1ms) begin transaction
4593
+  (0.1ms) SAVEPOINT active_record_1
4594
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.184328"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.184328"]]
4595
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4596
+  (0.1ms) SAVEPOINT active_record_1
4597
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.186043"], ["updated_at", "2016-02-25 09:13:55.186043"]]
4598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4599
+ 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]]
4600
+  (0.6ms) rollback transaction
4601
+  (0.0ms) begin transaction
4602
+  (0.0ms) SAVEPOINT active_record_1
4603
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.190354"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.190354"]]
4604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4605
+  (0.0ms) SAVEPOINT active_record_1
4606
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.191741"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.191741"]]
4607
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4608
+  (0.1ms) SAVEPOINT active_record_1
4609
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.193604"], ["updated_at", "2016-02-25 09:13:55.193604"]]
4610
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4611
+ 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]]
4612
+  (0.0ms) SAVEPOINT active_record_1
4613
+ 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
4614
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.196005"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.196005"]]
4615
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4616
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
4617
+ 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]]
4618
+ 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]]
4619
+  (0.5ms) rollback transaction
4620
+  (0.0ms) begin transaction
4621
+  (0.0ms) SAVEPOINT active_record_1
4622
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.200329"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.200329"]]
4623
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4624
+  (0.0ms) SAVEPOINT active_record_1
4625
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.201459"], ["updated_at", "2016-02-25 09:13:55.201459"]]
4626
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4627
+ 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]]
4628
+  (0.0ms) SAVEPOINT active_record_1
4629
+ 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
4630
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.203388"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.203388"]]
4631
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4632
+  (0.6ms) rollback transaction
4633
+  (0.0ms) begin transaction
4634
+  (0.0ms) SAVEPOINT active_record_1
4635
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.205951"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.205951"]]
4636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4637
+  (0.0ms) SAVEPOINT active_record_1
4638
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.206835"], ["updated_at", "2016-02-25 09:13:55.206835"]]
4639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4640
+  (0.0ms) SAVEPOINT active_record_1
4641
+ 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
4642
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.208344"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.208344"]]
4643
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4644
+ 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]]
4645
+  (0.7ms) rollback transaction
4646
+  (0.0ms) begin transaction
4647
+  (0.0ms) SAVEPOINT active_record_1
4648
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.213000"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.213000"]]
4649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4650
+  (0.0ms) SAVEPOINT active_record_1
4651
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.214263"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.214263"]]
4652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4653
+  (0.0ms) SAVEPOINT active_record_1
4654
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.215315"], ["updated_at", "2016-02-25 09:13:55.215315"]]
4655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4656
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
4657
+ 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]]
4658
+ 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]]
4659
+  (0.6ms) rollback transaction
4660
+  (0.0ms) begin transaction
4661
+  (0.0ms) SAVEPOINT active_record_1
4662
+ 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
4663
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.219530"], ["updated_at", "2016-02-25 09:13:55.219530"]]
4664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4665
+  (0.3ms) rollback transaction
4666
+  (0.0ms) begin transaction
4667
+  (0.0ms) SAVEPOINT active_record_1
4668
+ 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
4669
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.222737"], ["seen_at", "2016-02-23 09:13:55.221615"], ["updated_at", "2016-02-25 09:13:55.222737"]]
4670
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4671
+  (0.3ms) rollback transaction
4672
+  (0.0ms) begin transaction
4673
+  (0.0ms) rollback transaction
4674
+  (0.0ms) begin transaction
4675
+  (0.0ms) SAVEPOINT active_record_1
4676
+ 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
4677
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["seen_at", "2016-02-23 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4679
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
4680
+  (0.0ms) rollback transaction
4681
+  (0.0ms) begin transaction
4682
+  (0.0ms) SAVEPOINT active_record_1
4683
+ 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
4684
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4686
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
4687
+  (0.0ms) rollback transaction
4688
+  (0.0ms) begin transaction
4689
+  (0.0ms) rollback transaction
4690
+  (0.0ms) begin transaction
4691
+  (0.0ms) SAVEPOINT active_record_1
4692
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4694
+  (0.0ms) SAVEPOINT active_record_1
4695
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4697
+  (0.0ms) SAVEPOINT active_record_1
4698
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["goal_id", 1], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4700
+  (0.0ms) SAVEPOINT active_record_1
4701
+ 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
4702
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4704
+  (0.0ms) SAVEPOINT active_record_1
4705
+ 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
4706
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 2], ["updated_at", "2016-02-25 09:13:55.224732"]]
4707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4708
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
4709
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4710
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4711
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
4712
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
4713
+  (0.0ms) rollback transaction
4714
+  (0.0ms) begin transaction
4715
+  (0.0ms) SAVEPOINT active_record_1
4716
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4717
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4718
+  (0.0ms) SAVEPOINT active_record_1
4719
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4721
+  (0.0ms) SAVEPOINT active_record_1
4722
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["goal_id", 1], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4723
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4724
+  (0.0ms) SAVEPOINT active_record_1
4725
+ 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
4726
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4728
+  (0.0ms) SAVEPOINT active_record_1
4729
+ 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
4730
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 2], ["updated_at", "2016-02-25 09:13:55.224732"]]
4731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4732
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
4733
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4734
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4735
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
4736
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
4737
+  (0.0ms) rollback transaction
4738
+  (0.0ms) begin transaction
4739
+  (0.0ms) SAVEPOINT active_record_1
4740
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4742
+  (0.0ms) SAVEPOINT active_record_1
4743
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4745
+  (0.0ms) rollback transaction
4746
+  (0.0ms) begin transaction
4747
+  (0.0ms) SAVEPOINT active_record_1
4748
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4750
+  (0.0ms) SAVEPOINT active_record_1
4751
+ 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
4752
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4754
+ 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"]]
4755
+ 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"]]
4756
+  (0.0ms) SAVEPOINT active_record_1
4757
+ SQL (0.0ms) UPDATE "gamification_rewards" SET "updated_at" = '2016-02-25 09:13:55.224732', "seen_at" = '2016-02-25 09:13:55.224732' WHERE "gamification_rewards"."id" = 1
4758
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4759
+  (0.0ms) rollback transaction
4760
+  (0.0ms) begin transaction
4761
+  (0.0ms) SAVEPOINT active_record_1
4762
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4764
+ 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"]]
4765
+  (0.0ms) rollback transaction
4766
+  (0.0ms) begin transaction
4767
+  (0.0ms) SAVEPOINT active_record_1
4768
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4770
+  (0.0ms) SAVEPOINT active_record_1
4771
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4773
+  (0.0ms) SAVEPOINT active_record_1
4774
+ 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
4775
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4777
+ 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"]]
4778
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1)
4779
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)
4780
+  (0.0ms) SAVEPOINT active_record_1
4781
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4783
+  (0.0ms) rollback transaction
4784
+  (0.0ms) begin transaction
4785
+  (0.0ms) SAVEPOINT active_record_1
4786
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4788
+  (0.0ms) SAVEPOINT active_record_1
4789
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4791
+  (0.0ms) SAVEPOINT active_record_1
4792
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4793
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
4794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4795
+  (0.0ms) SAVEPOINT active_record_1
4796
+ 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
4797
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4798
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4799
+  (0.0ms) SAVEPOINT active_record_1
4800
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4801
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4802
+  (0.0ms) SAVEPOINT active_record_1
4803
+ 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
4804
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4806
+ 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"]]
4807
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
4808
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
4809
+  (0.0ms) rollback transaction
4810
+  (0.0ms) begin transaction
4811
+  (0.0ms) SAVEPOINT active_record_1
4812
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4813
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4814
+  (0.0ms) SAVEPOINT active_record_1
4815
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4817
+ Processing by Gamification::RewardsController#create as HTML
4818
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
4819
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4820
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4821
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4822
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4823
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4824
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4825
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4826
+ 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]]
4827
+  (0.0ms) SAVEPOINT active_record_1
4828
+ 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
4829
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4830
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4831
+ Redirected to http://example.org
4832
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
4833
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
4834
+  (0.0ms) rollback transaction
4835
+  (0.0ms) begin transaction
4836
+  (0.0ms) SAVEPOINT active_record_1
4837
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4839
+  (0.0ms) SAVEPOINT active_record_1
4840
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4842
+ Processing by Gamification::RewardsController#create as HTML
4843
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
4844
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4845
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4846
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4847
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4848
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4849
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
4850
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4851
+ 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]]
4852
+  (0.0ms) SAVEPOINT active_record_1
4853
+ 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
4854
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4855
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4856
+ Redirected to http://example.org
4857
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
4858
+  (0.0ms) rollback transaction
4859
+  (0.0ms) begin transaction
4860
+  (0.0ms) SAVEPOINT active_record_1
4861
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4863
+  (0.0ms) SAVEPOINT active_record_1
4864
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4866
+  (0.0ms) SAVEPOINT active_record_1
4867
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4868
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4869
+ Processing by Gamification::RewardsController#create as HTML
4870
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
4871
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4872
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4873
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4874
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4875
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4876
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4877
+ 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"]]
4878
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4879
+ 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]]
4880
+  (0.0ms) SAVEPOINT active_record_1
4881
+ 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
4882
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4884
+ Redirected to http://example.org
4885
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
4886
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
4887
+  (0.0ms) rollback transaction
4888
+  (0.0ms) begin transaction
4889
+  (0.0ms) SAVEPOINT active_record_1
4890
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4891
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4892
+  (0.0ms) SAVEPOINT active_record_1
4893
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4894
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4895
+  (0.0ms) SAVEPOINT active_record_1
4896
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4898
+ Processing by Gamification::RewardsController#create as HTML
4899
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
4900
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4901
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4902
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4903
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4904
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4905
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4906
+ 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"]]
4907
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4908
+ 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]]
4909
+  (0.0ms) SAVEPOINT active_record_1
4910
+ 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
4911
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4912
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4913
+ Redirected to http://example.org
4914
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
4915
+  (0.0ms) rollback transaction
4916
+  (0.0ms) begin transaction
4917
+  (0.0ms) SAVEPOINT active_record_1
4918
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4920
+  (0.0ms) SAVEPOINT active_record_1
4921
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4923
+  (0.0ms) SAVEPOINT active_record_1
4924
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4925
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4926
+ Processing by Gamification::RewardsController#create as HTML
4927
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
4928
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4929
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4930
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4931
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4932
+ Filter chain halted as :verify_checksum rendered or redirected
4933
+ Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
4934
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
4935
+  (0.0ms) rollback transaction
4936
+  (0.0ms) begin transaction
4937
+  (0.0ms) SAVEPOINT active_record_1
4938
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4939
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4940
+  (0.0ms) SAVEPOINT active_record_1
4941
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4942
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4943
+  (0.0ms) SAVEPOINT active_record_1
4944
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4945
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4946
+ Processing by Gamification::RewardsController#create as HTML
4947
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
4948
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4949
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
4950
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4951
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
4952
+ Filter chain halted as :verify_checksum rendered or redirected
4953
+ Completed 403 Forbidden in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
4954
+  (0.0ms) rollback transaction
4955
+  (0.0ms) begin transaction
4956
+  (0.0ms) SAVEPOINT active_record_1
4957
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 100], ["updated_at", "2016-02-25 09:13:55.224732"]]
4958
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4959
+  (0.0ms) SAVEPOINT active_record_1
4960
+ 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
4961
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4962
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4963
+  (0.0ms) SAVEPOINT active_record_1
4964
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["goal_id", 1], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4965
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4966
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4967
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
4968
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
4969
+  (0.0ms) rollback transaction
4970
+  (0.0ms) begin transaction
4971
+  (0.0ms) SAVEPOINT active_record_1
4972
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 100], ["updated_at", "2016-02-25 09:13:55.224732"]]
4973
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4974
+  (0.0ms) SAVEPOINT active_record_1
4975
+ 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
4976
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4978
+  (0.0ms) SAVEPOINT active_record_1
4979
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["goal_id", 1], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4981
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4982
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
4983
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
4984
+  (0.0ms) rollback transaction
4985
+  (0.0ms) begin transaction
4986
+  (0.0ms) SAVEPOINT active_record_1
4987
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["points", 100], ["updated_at", "2016-02-25 09:13:55.224732"]]
4988
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4989
+  (0.0ms) SAVEPOINT active_record_1
4990
+ 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
4991
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["goal_id", 1], ["updated_at", "2016-02-25 09:13:55.224732"]]
4992
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4993
+  (0.0ms) SAVEPOINT active_record_1
4994
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:13:55.224732"], ["description", "Laboriosam in expedita impedit est commodi vel a."], ["goal_id", 1], ["image", nil], ["name", "accusantium"], ["updated_at", "2016-02-25 09:13:55.224732"]]
4995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4996
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
4997
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.0ms)
4998
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (0.0ms)
4999
+  (0.0ms) rollback transaction
5000
+  (0.0ms) begin transaction
5001
+  (0.0ms) rollback transaction
5002
+  (0.0ms) begin transaction
5003
+  (0.0ms) rollback transaction
5004
+  (0.4ms) begin transaction
5005
+  (0.0ms) SAVEPOINT active_record_1
5006
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.839355"], ["points", 100], ["updated_at", "2016-02-25 09:14:03.839355"]]
5007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5008
+  (0.0ms) SAVEPOINT active_record_1
5009
+ 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
5010
+ SQL (1.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.852522"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:03.852522"]]
5011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5012
+  (0.0ms) SAVEPOINT active_record_1
5013
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.861634"], ["description", "Rem aliquam eos pariatur omnis sed."], ["goal_id", 1], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:03.861634"]]
5014
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5015
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5016
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (5.7ms)
5017
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (10.4ms)
5018
+  (1.5ms) rollback transaction
5019
+  (0.1ms) begin transaction
5020
+  (0.1ms) SAVEPOINT active_record_1
5021
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.883778"], ["points", 100], ["updated_at", "2016-02-25 09:14:03.883778"]]
5022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5023
+  (0.0ms) SAVEPOINT active_record_1
5024
+ 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
5025
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.886218"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:03.886218"]]
5026
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5027
+  (0.0ms) SAVEPOINT active_record_1
5028
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.888135"], ["description", "Rem aliquam eos pariatur omnis sed."], ["goal_id", 1], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:03.888135"]]
5029
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5030
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5031
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.3ms)
5032
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (6.0ms)
5033
+  (0.9ms) rollback transaction
5034
+  (0.0ms) begin transaction
5035
+  (0.1ms) SAVEPOINT active_record_1
5036
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.903034"], ["points", 100], ["updated_at", "2016-02-25 09:14:03.903034"]]
5037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5038
+  (0.0ms) SAVEPOINT active_record_1
5039
+ 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
5040
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.905114"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:03.905114"]]
5041
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5042
+  (0.0ms) SAVEPOINT active_record_1
5043
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.906963"], ["description", "Rem aliquam eos pariatur omnis sed."], ["goal_id", 1], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:03.906963"]]
5044
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5045
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5046
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.0ms)
5047
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.9ms)
5048
+  (0.7ms) rollback transaction
5049
+  (0.0ms) begin transaction
5050
+  (0.0ms) SAVEPOINT active_record_1
5051
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.918592"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.918592"]]
5052
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5053
+  (0.0ms) SAVEPOINT active_record_1
5054
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.919779"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.919779"]]
5055
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5056
+  (0.0ms) SAVEPOINT active_record_1
5057
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.921790"], ["updated_at", "2016-02-25 09:14:03.921790"]]
5058
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5059
+ 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]]
5060
+  (0.0ms) SAVEPOINT active_record_1
5061
+ 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
5062
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.932197"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:03.932197"]]
5063
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5064
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
5065
+ 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]]
5066
+ 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]]
5067
+  (0.9ms) rollback transaction
5068
+  (0.1ms) begin transaction
5069
+  (0.0ms) SAVEPOINT active_record_1
5070
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.937375"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.937375"]]
5071
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5072
+  (0.0ms) SAVEPOINT active_record_1
5073
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.938655"], ["updated_at", "2016-02-25 09:14:03.938655"]]
5074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5075
+  (0.0ms) SAVEPOINT active_record_1
5076
+ 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
5077
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.940488"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:03.940488"]]
5078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5079
+ 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]]
5080
+  (0.7ms) rollback transaction
5081
+  (0.0ms) begin transaction
5082
+  (0.0ms) SAVEPOINT active_record_1
5083
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.944795"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.944795"]]
5084
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5085
+  (0.0ms) SAVEPOINT active_record_1
5086
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.946415"], ["updated_at", "2016-02-25 09:14:03.946415"]]
5087
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5088
+ 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]]
5089
+  (0.0ms) SAVEPOINT active_record_1
5090
+ 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
5091
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.949058"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:03.949058"]]
5092
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5093
+  (0.6ms) rollback transaction
5094
+  (0.0ms) begin transaction
5095
+  (0.0ms) SAVEPOINT active_record_1
5096
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.952321"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.952321"]]
5097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5098
+  (0.0ms) SAVEPOINT active_record_1
5099
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.953772"], ["updated_at", "2016-02-25 09:14:03.953772"]]
5100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5101
+ 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]]
5102
+  (0.6ms) rollback transaction
5103
+  (0.0ms) begin transaction
5104
+  (0.0ms) SAVEPOINT active_record_1
5105
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.957772"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.957772"]]
5106
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5107
+  (0.0ms) SAVEPOINT active_record_1
5108
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.959064"], ["updated_at", "2016-02-25 09:14:03.959064"]]
5109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5110
+  (0.0ms) SAVEPOINT active_record_1
5111
+ 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
5112
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.960959"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:03.960959"]]
5113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5114
+ 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]]
5115
+  (0.7ms) rollback transaction
5116
+  (0.0ms) begin transaction
5117
+  (0.1ms) SAVEPOINT active_record_1
5118
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.964871"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.964871"]]
5119
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5120
+  (0.0ms) SAVEPOINT active_record_1
5121
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.966352"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.966352"]]
5122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5123
+  (0.0ms) SAVEPOINT active_record_1
5124
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.968266"], ["updated_at", "2016-02-25 09:14:03.968266"]]
5125
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5126
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals"
5127
+ 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]]
5128
+ 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]]
5129
+  (0.5ms) rollback transaction
5130
+  (0.0ms) begin transaction
5131
+  (0.0ms) SAVEPOINT active_record_1
5132
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.973973"], ["updated_at", "2016-02-25 09:14:03.973973"]]
5133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5134
+ Processing by ArticlesController#show as HTML
5135
+ Parameters: {"id"=>"1"}
5136
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5137
+ Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.1ms)
5138
+  (0.6ms) rollback transaction
5139
+  (0.0ms) begin transaction
5140
+  (0.0ms) SAVEPOINT active_record_1
5141
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:03.995888"], ["updated_at", "2016-02-25 09:14:03.995888"]]
5142
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5143
+  (0.0ms) SAVEPOINT active_record_1
5144
+ SQL (0.4ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:03.998002"], ["description", "Rem aliquam eos pariatur omnis sed."], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:03.998002"]]
5145
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5146
+  (0.0ms) SAVEPOINT active_record_1
5147
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:03.999992"], ["points", 1], ["updated_at", "2016-02-25 09:14:03.999992"]]
5148
+ SQL (0.1ms) UPDATE "gamification_medals" SET "goal_id" = ?, "updated_at" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1], ["updated_at", "2016-02-25 09:14:04.000696"]]
5149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5150
+  (0.0ms) SAVEPOINT active_record_1
5151
+ 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
5152
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.003244"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.003244"]]
5153
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5154
+  (0.0ms) SAVEPOINT active_record_1
5155
+ SQL (0.1ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.004766"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.004766"]]
5156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5157
+  (0.0ms) SAVEPOINT active_record_1
5158
+ 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
5159
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.006535"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.006535"]]
5160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5161
+ 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"]]
5162
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
5163
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
5164
+  (1.1ms) rollback transaction
5165
+  (0.1ms) begin transaction
5166
+  (0.1ms) SAVEPOINT active_record_1
5167
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.016713"], ["updated_at", "2016-02-25 09:14:04.016713"]]
5168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5169
+  (0.0ms) SAVEPOINT active_record_1
5170
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.018755"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.018755"]]
5171
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5172
+  (0.0ms) SAVEPOINT active_record_1
5173
+ 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
5174
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.021037"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.021037"]]
5175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5176
+ 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"]]
5177
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1)
5178
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)
5179
+  (0.1ms) SAVEPOINT active_record_1
5180
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.024832"], ["description", "Rem aliquam eos pariatur omnis sed."], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:04.024832"]]
5181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5182
+  (0.7ms) rollback transaction
5183
+  (0.0ms) begin transaction
5184
+  (0.0ms) SAVEPOINT active_record_1
5185
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.028262"], ["updated_at", "2016-02-25 09:14:04.028262"]]
5186
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5187
+ 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"]]
5188
+  (0.3ms) rollback transaction
5189
+  (0.0ms) begin transaction
5190
+  (0.0ms) rollback transaction
5191
+  (0.0ms) begin transaction
5192
+  (0.0ms) rollback transaction
5193
+  (0.0ms) begin transaction
5194
+  (0.0ms) SAVEPOINT active_record_1
5195
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.033852"], ["updated_at", "2016-02-25 09:14:04.033852"]]
5196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5197
+  (0.0ms) SAVEPOINT active_record_1
5198
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.035145"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:04.035145"]]
5199
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5200
+  (0.0ms) SAVEPOINT active_record_1
5201
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.036204"], ["updated_at", "2016-02-25 09:14:04.036204"]]
5202
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5203
+ Processing by Gamification::RewardsController#create as HTML
5204
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
5205
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5206
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5207
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5208
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5209
+ Filter chain halted as :verify_checksum rendered or redirected
5210
+ Completed 403 Forbidden in 3ms (Views: 1.0ms | ActiveRecord: 0.2ms)
5211
+  (0.7ms) rollback transaction
5212
+  (0.1ms) begin transaction
5213
+  (0.0ms) SAVEPOINT active_record_1
5214
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.045804"], ["updated_at", "2016-02-25 09:14:04.045804"]]
5215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5216
+  (0.0ms) SAVEPOINT active_record_1
5217
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.047371"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:04.047371"]]
5218
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5219
+  (0.0ms) SAVEPOINT active_record_1
5220
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.048777"], ["updated_at", "2016-02-25 09:14:04.048777"]]
5221
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5222
+ Processing by Gamification::RewardsController#create as HTML
5223
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
5224
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5225
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5226
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5227
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5228
+ Filter chain halted as :verify_checksum rendered or redirected
5229
+ Completed 403 Forbidden in 2ms (Views: 0.2ms | ActiveRecord: 0.1ms)
5230
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
5231
+  (0.6ms) rollback transaction
5232
+  (0.0ms) begin transaction
5233
+  (0.1ms) SAVEPOINT active_record_1
5234
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.055259"], ["updated_at", "2016-02-25 09:14:04.055259"]]
5235
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5236
+  (0.0ms) SAVEPOINT active_record_1
5237
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.056474"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:04.056474"]]
5238
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5239
+  (0.0ms) SAVEPOINT active_record_1
5240
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.057456"], ["updated_at", "2016-02-25 09:14:04.057456"]]
5241
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5242
+ Processing by Gamification::RewardsController#create as HTML
5243
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
5244
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5245
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5246
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5247
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5248
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5249
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5250
+ Gamification::Goal Load (0.2ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."rewarding_id" = ? AND "gamification_goals"."rewarding_type" = ? [["rewarding_id", 1], ["rewarding_type", "Article"]]
5251
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5252
+ 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]]
5253
+  (0.0ms) SAVEPOINT active_record_1
5254
+ 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
5255
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.067400"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.067400"]]
5256
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5257
+ Redirected to http://example.org
5258
+ Completed 302 Found in 10ms (ActiveRecord: 0.8ms)
5259
+  (0.8ms) rollback transaction
5260
+  (0.0ms) begin transaction
5261
+  (0.0ms) SAVEPOINT active_record_1
5262
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.072215"], ["updated_at", "2016-02-25 09:14:04.072215"]]
5263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5264
+  (0.0ms) SAVEPOINT active_record_1
5265
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.073905"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:04.073905"]]
5266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5267
+  (0.1ms) SAVEPOINT active_record_1
5268
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.075371"], ["updated_at", "2016-02-25 09:14:04.075371"]]
5269
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5270
+ Processing by Gamification::RewardsController#create as HTML
5271
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
5272
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5273
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5274
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5275
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5276
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5277
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5278
+ 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"]]
5279
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5280
+ 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]]
5281
+  (0.0ms) SAVEPOINT active_record_1
5282
+ 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
5283
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.084121"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.084121"]]
5284
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5285
+ Redirected to http://example.org
5286
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
5287
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
5288
+  (0.9ms) rollback transaction
5289
+  (0.0ms) begin transaction
5290
+  (0.1ms) SAVEPOINT active_record_1
5291
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.088581"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.088581"]]
5292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5293
+  (0.0ms) SAVEPOINT active_record_1
5294
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.090474"], ["updated_at", "2016-02-25 09:14:04.090474"]]
5295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5296
+ Processing by Gamification::RewardsController#create as HTML
5297
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
5298
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5299
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5300
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5301
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5302
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5303
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5304
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5305
+ 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]]
5306
+  (0.0ms) SAVEPOINT active_record_1
5307
+ 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
5308
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.098865"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.098865"]]
5309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5310
+ Redirected to http://example.org
5311
+ Completed 302 Found in 7ms (ActiveRecord: 0.5ms)
5312
+  (0.8ms) rollback transaction
5313
+  (0.0ms) begin transaction
5314
+  (0.0ms) SAVEPOINT active_record_1
5315
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.102557"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.102557"]]
5316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5317
+  (0.1ms) SAVEPOINT active_record_1
5318
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.104002"], ["updated_at", "2016-02-25 09:14:04.104002"]]
5319
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5320
+ Processing by Gamification::RewardsController#create as HTML
5321
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
5322
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5323
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5324
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5325
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5326
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5327
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5328
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5329
+ 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]]
5330
+  (0.0ms) SAVEPOINT active_record_1
5331
+ 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
5332
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.114938"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.114938"]]
5333
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5334
+ Redirected to http://example.org
5335
+ Completed 302 Found in 9ms (ActiveRecord: 0.8ms)
5336
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
5337
+  (0.8ms) rollback transaction
5338
+  (0.1ms) begin transaction
5339
+  (0.0ms) SAVEPOINT active_record_1
5340
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.120882"], ["updated_at", "2016-02-25 09:14:04.120882"]]
5341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5342
+  (0.1ms) SAVEPOINT active_record_1
5343
+ SQL (0.4ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.122364"], ["updated_at", "2016-02-25 09:14:04.122364"]]
5344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5345
+  (0.7ms) rollback transaction
5346
+  (0.1ms) begin transaction
5347
+  (0.1ms) SAVEPOINT active_record_1
5348
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.129808"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.129808"]]
5349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5350
+  (0.0ms) SAVEPOINT active_record_1
5351
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.131345"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.131345"]]
5352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5353
+  (0.0ms) SAVEPOINT active_record_1
5354
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.133391"], ["description", "Rem aliquam eos pariatur omnis sed."], ["goal_id", 1], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:04.133391"]]
5355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5356
+  (0.0ms) SAVEPOINT active_record_1
5357
+ 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
5358
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.135302"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:04.135302"]]
5359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5360
+  (0.0ms) SAVEPOINT active_record_1
5361
+ 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" = 2) LIMIT 1
5362
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.136941"], ["goal_id", 2], ["updated_at", "2016-02-25 09:14:04.136941"]]
5363
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5364
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
5365
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5366
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5367
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
5368
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
5369
+  (0.7ms) rollback transaction
5370
+  (0.0ms) begin transaction
5371
+  (0.0ms) SAVEPOINT active_record_1
5372
+ 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
5373
+ SQL (1.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.142399"], ["updated_at", "2016-02-25 09:14:04.142399"]]
5374
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5375
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
5376
+  (0.3ms) rollback transaction
5377
+  (0.0ms) begin transaction
5378
+  (0.0ms) SAVEPOINT active_record_1
5379
+ 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
5380
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.147267"], ["seen_at", "2016-02-23 09:14:04.146105"], ["updated_at", "2016-02-25 09:14:04.147267"]]
5381
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5382
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
5383
+  (0.3ms) rollback transaction
5384
+  (0.0ms) begin transaction
5385
+  (0.0ms) SAVEPOINT active_record_1
5386
+ 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
5387
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.150697"], ["seen_at", "2016-02-23 09:14:04.149821"], ["updated_at", "2016-02-25 09:14:04.150697"]]
5388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5389
+  (0.4ms) rollback transaction
5390
+  (0.0ms) begin transaction
5391
+  (0.0ms) SAVEPOINT active_record_1
5392
+ Gamification::Reward Exists (0.2ms) 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
5393
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.153884"], ["updated_at", "2016-02-25 09:14:04.153884"]]
5394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5395
+  (0.3ms) rollback transaction
5396
+  (0.0ms) begin transaction
5397
+  (0.0ms) SAVEPOINT active_record_1
5398
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.156618"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.156618"]]
5399
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5400
+  (0.0ms) SAVEPOINT active_record_1
5401
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.157813"], ["points", 1], ["updated_at", "2016-02-25 09:14:04.157813"]]
5402
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5403
+  (0.1ms) SAVEPOINT active_record_1
5404
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.159275"], ["description", "Rem aliquam eos pariatur omnis sed."], ["goal_id", 1], ["image", nil], ["name", "quisquam"], ["updated_at", "2016-02-25 09:14:04.159275"]]
5405
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5406
+  (0.0ms) SAVEPOINT active_record_1
5407
+ 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
5408
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.161015"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:04.161015"]]
5409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5410
+  (0.0ms) SAVEPOINT active_record_1
5411
+ 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
5412
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:04.162336"], ["goal_id", 2], ["updated_at", "2016-02-25 09:14:04.162336"]]
5413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5414
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
5415
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5416
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5417
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
5418
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
5419
+  (0.5ms) rollback transaction
5420
+  (0.0ms) begin transaction
5421
+  (0.0ms) rollback transaction
5422
+  (0.0ms) begin transaction
5423
+  (0.0ms) rollback transaction
5424
+  (0.0ms) begin transaction
5425
+  (0.0ms) SAVEPOINT active_record_1
5426
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:04.165834"], ["updated_at", "2016-02-25 09:14:04.165834"]]
5427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5428
+  (0.0ms) SAVEPOINT active_record_1
5429
+ 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
5430
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2016-02-25 09:14:04.165834"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:04.165834"]]
5431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5432
+ 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"]]
5433
+ 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"]]
5434
+  (0.0ms) SAVEPOINT active_record_1
5435
+ SQL (0.0ms) UPDATE "gamification_rewards" SET "updated_at" = '2016-02-25 09:14:04.165834', "seen_at" = '2016-02-25 09:14:04.165834' WHERE "gamification_rewards"."id" = 1
5436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5437
+  (0.0ms) rollback transaction
5438
+  (0.3ms) begin transaction
5439
+  (0.0ms) SAVEPOINT active_record_1
5440
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.427674"], ["updated_at", "2016-02-25 09:14:26.427674"]]
5441
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5442
+  (0.1ms) SAVEPOINT active_record_1
5443
+ 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
5444
+ SQL (1.1ms) INSERT INTO "gamification_rewards" ("created_at", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.452537"], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.452537"]]
5445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5446
+ 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"]]
5447
+ 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"]]
5448
+  (0.0ms) SAVEPOINT active_record_1
5449
+ SQL (0.1ms) UPDATE "gamification_rewards" SET "updated_at" = '2016-02-25 09:14:26.464033', "seen_at" = '2016-02-25 09:14:26.464033' WHERE "gamification_rewards"."id" = 1
5450
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5451
+  (1.1ms) rollback transaction
5452
+  (0.0ms) begin transaction
5453
+  (0.0ms) SAVEPOINT active_record_1
5454
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.468191"], ["updated_at", "2016-02-25 09:14:26.468191"]]
5455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5456
+  (0.1ms) SAVEPOINT active_record_1
5457
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.470326"], ["updated_at", "2016-02-25 09:14:26.470326"]]
5458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5459
+  (0.7ms) rollback transaction
5460
+  (0.0ms) begin transaction
5461
+  (0.1ms) SAVEPOINT active_record_1
5462
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.482731"], ["points", 100], ["updated_at", "2016-02-25 09:14:26.482731"]]
5463
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5464
+  (0.0ms) SAVEPOINT active_record_1
5465
+ 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
5466
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.484818"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:26.484818"]]
5467
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5468
+  (0.0ms) SAVEPOINT active_record_1
5469
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.490220"], ["description", "Vel repellat aut sit odit doloremque."], ["goal_id", 1], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.490220"]]
5470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5471
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5472
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (4.1ms)
5473
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (8.8ms)
5474
+  (0.7ms) rollback transaction
5475
+  (0.0ms) begin transaction
5476
+  (0.0ms) SAVEPOINT active_record_1
5477
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.509663"], ["points", 100], ["updated_at", "2016-02-25 09:14:26.509663"]]
5478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5479
+  (0.0ms) SAVEPOINT active_record_1
5480
+ 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
5481
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.511400"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:26.511400"]]
5482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5483
+  (0.0ms) SAVEPOINT active_record_1
5484
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.512729"], ["description", "Vel repellat aut sit odit doloremque."], ["goal_id", 1], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.512729"]]
5485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5486
+ Gamification::Medal Load (0.1ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5487
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (1.0ms)
5488
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.2ms)
5489
+  (1.1ms) rollback transaction
5490
+  (0.1ms) begin transaction
5491
+  (0.0ms) SAVEPOINT active_record_1
5492
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.523862"], ["points", 100], ["updated_at", "2016-02-25 09:14:26.523862"]]
5493
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5494
+  (0.0ms) SAVEPOINT active_record_1
5495
+ 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
5496
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.525718"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:26.525718"]]
5497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5498
+  (0.0ms) SAVEPOINT active_record_1
5499
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.527096"], ["description", "Vel repellat aut sit odit doloremque."], ["goal_id", 1], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.527096"]]
5500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5501
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5502
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_reward.html.erb (0.9ms)
5503
+ Rendered /Users/petr/r/gamification/app/views/gamification/rewards/_presentation.html.erb (4.1ms)
5504
+  (0.6ms) rollback transaction
5505
+  (0.0ms) begin transaction
5506
+  (0.0ms) SAVEPOINT active_record_1
5507
+ SQL (0.1ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.537221"], ["updated_at", "2016-02-25 09:14:26.537221"]]
5508
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5509
+  (0.0ms) SAVEPOINT active_record_1
5510
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.538371"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:26.538371"]]
5511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5512
+  (0.0ms) SAVEPOINT active_record_1
5513
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.539618"], ["updated_at", "2016-02-25 09:14:26.539618"]]
5514
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5515
+ Processing by Gamification::RewardsController#create as HTML
5516
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
5517
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5518
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5519
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5520
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5521
+ Filter chain halted as :verify_checksum rendered or redirected
5522
+ Completed 403 Forbidden in 6ms (Views: 2.7ms | ActiveRecord: 0.3ms)
5523
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
5524
+  (0.8ms) rollback transaction
5525
+  (0.1ms) begin transaction
5526
+  (0.0ms) SAVEPOINT active_record_1
5527
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.552069"], ["updated_at", "2016-02-25 09:14:26.552069"]]
5528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5529
+  (0.0ms) SAVEPOINT active_record_1
5530
+ SQL (0.3ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.554074"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:26.554074"]]
5531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5532
+  (0.0ms) SAVEPOINT active_record_1
5533
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.555532"], ["updated_at", "2016-02-25 09:14:26.555532"]]
5534
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5535
+ Processing by Gamification::RewardsController#create as HTML
5536
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"tampered"}
5537
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5538
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5539
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5540
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5541
+ Filter chain halted as :verify_checksum rendered or redirected
5542
+ Completed 403 Forbidden in 3ms (Views: 0.4ms | ActiveRecord: 0.2ms)
5543
+  (0.6ms) rollback transaction
5544
+  (0.0ms) begin transaction
5545
+  (0.0ms) SAVEPOINT active_record_1
5546
+ SQL (0.2ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.563335"], ["updated_at", "2016-02-25 09:14:26.563335"]]
5547
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5548
+  (0.0ms) SAVEPOINT active_record_1
5549
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.564718"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:26.564718"]]
5550
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5551
+  (0.0ms) SAVEPOINT active_record_1
5552
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.573706"], ["updated_at", "2016-02-25 09:14:26.573706"]]
5553
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5554
+ Processing by Gamification::RewardsController#create as HTML
5555
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
5556
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5557
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5558
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5559
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5560
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5561
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5562
+ 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"]]
5563
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5564
+ 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]]
5565
+  (0.0ms) SAVEPOINT active_record_1
5566
+ 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
5567
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.583024"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.583024"]]
5568
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5569
+ Redirected to http://example.org
5570
+ Completed 302 Found in 9ms (ActiveRecord: 0.7ms)
5571
+  (0.1ms) SELECT COUNT(*) FROM "gamification_rewards"
5572
+  (0.8ms) rollback transaction
5573
+  (0.1ms) begin transaction
5574
+  (0.1ms) SAVEPOINT active_record_1
5575
+ SQL (0.3ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.587845"], ["updated_at", "2016-02-25 09:14:26.587845"]]
5576
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5577
+  (0.0ms) SAVEPOINT active_record_1
5578
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "rewarding_id", "rewarding_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.589988"], ["points", 1], ["rewarding_id", 1], ["rewarding_type", "Article"], ["updated_at", "2016-02-25 09:14:26.589988"]]
5579
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5580
+  (0.1ms) SAVEPOINT active_record_1
5581
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.591632"], ["updated_at", "2016-02-25 09:14:26.591632"]]
5582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5583
+ Processing by Gamification::RewardsController#create as HTML
5584
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Article", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"3a53e9e27ca5302b15fb06d2f182c4b2"}
5585
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5586
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5587
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5588
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5589
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5590
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5591
+ 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"]]
5592
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5593
+ 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]]
5594
+  (0.0ms) SAVEPOINT active_record_1
5595
+ 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
5596
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.599901"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.599901"]]
5597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5598
+ Redirected to http://example.org
5599
+ Completed 302 Found in 7ms (ActiveRecord: 0.6ms)
5600
+  (0.7ms) rollback transaction
5601
+  (0.0ms) begin transaction
5602
+  (0.0ms) SAVEPOINT active_record_1
5603
+ SQL (0.4ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.604172"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.604172"]]
5604
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5605
+  (0.0ms) SAVEPOINT active_record_1
5606
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.605807"], ["updated_at", "2016-02-25 09:14:26.605807"]]
5607
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5608
+ Processing by Gamification::RewardsController#create as HTML
5609
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
5610
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5611
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5612
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5613
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5614
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5615
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5616
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5617
+ 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]]
5618
+  (0.0ms) SAVEPOINT active_record_1
5619
+ 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
5620
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.613365"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.613365"]]
5621
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5622
+ Redirected to http://example.org
5623
+ Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
5624
+  (0.0ms) SELECT COUNT(*) FROM "gamification_rewards"
5625
+  (0.5ms) rollback transaction
5626
+  (0.0ms) begin transaction
5627
+  (0.0ms) SAVEPOINT active_record_1
5628
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.616813"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.616813"]]
5629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5630
+  (0.0ms) SAVEPOINT active_record_1
5631
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.617959"], ["updated_at", "2016-02-25 09:14:26.617959"]]
5632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5633
+ Processing by Gamification::RewardsController#create as HTML
5634
+ Parameters: {"redirect_url"=>"http://example.org", "reward"=>{"rewarding_type"=>"Gamification::Goal", "rewarding_id"=>"1", "rewardable_type"=>"User", "rewardable_id"=>"1"}, "checksum"=>"10767fc00b345b8c9e0b64d0109095dc"}
5635
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5636
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5637
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5638
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5639
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5640
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5641
+ User Load (0.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 1]]
5642
+ 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]]
5643
+  (0.0ms) SAVEPOINT active_record_1
5644
+ 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
5645
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.624704"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.624704"]]
5646
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5647
+ Redirected to http://example.org
5648
+ Completed 302 Found in 6ms (ActiveRecord: 0.5ms)
5649
+  (1.0ms) rollback transaction
5650
+  (0.1ms) begin transaction
5651
+  (0.0ms) SAVEPOINT active_record_1
5652
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.630431"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.630431"]]
5653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5654
+  (0.0ms) SAVEPOINT active_record_1
5655
+ SQL (0.2ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.631703"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.631703"]]
5656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5657
+  (0.0ms) SAVEPOINT active_record_1
5658
+ SQL (0.1ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.633073"], ["description", "Vel repellat aut sit odit doloremque."], ["goal_id", 1], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.633073"]]
5659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5660
+  (0.0ms) SAVEPOINT active_record_1
5661
+ 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
5662
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.634595"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:26.634595"]]
5663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5664
+  (0.0ms) SAVEPOINT active_record_1
5665
+ 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
5666
+ SQL (0.1ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.635788"], ["goal_id", 2], ["updated_at", "2016-02-25 09:14:26.635788"]]
5667
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5668
+ Gamification::Reward Load (0.1ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
5669
+ Gamification::Goal Load (0.1ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5670
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5671
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
5672
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
5673
+  (0.6ms) rollback transaction
5674
+  (0.0ms) begin transaction
5675
+  (0.0ms) SAVEPOINT active_record_1
5676
+ 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
5677
+ SQL (0.2ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.640870"], ["updated_at", "2016-02-25 09:14:26.640870"]]
5678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5679
+  (0.3ms) rollback transaction
5680
+  (0.0ms) begin transaction
5681
+  (0.0ms) SAVEPOINT active_record_1
5682
+ 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
5683
+ SQL (0.3ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.644303"], ["seen_at", "2016-02-23 09:14:26.642989"], ["updated_at", "2016-02-25 09:14:26.644303"]]
5684
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5685
+  (0.4ms) rollback transaction
5686
+  (0.0ms) begin transaction
5687
+  (0.0ms) rollback transaction
5688
+  (0.0ms) begin transaction
5689
+  (0.0ms) rollback transaction
5690
+  (0.0ms) begin transaction
5691
+  (0.0ms) SAVEPOINT active_record_1
5692
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5694
+  (0.0ms) SAVEPOINT active_record_1
5695
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5697
+  (0.0ms) SAVEPOINT active_record_1
5698
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "goal_id", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["description", "Vel repellat aut sit odit doloremque."], ["goal_id", 1], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5700
+  (0.0ms) SAVEPOINT active_record_1
5701
+ 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
5702
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5703
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5704
+  (0.0ms) SAVEPOINT active_record_1
5705
+ 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
5706
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 2], ["updated_at", "2016-02-25 09:14:26.646664"]]
5707
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5708
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards"
5709
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 1]]
5710
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 1]]
5711
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" = ? LIMIT 1 [["id", 2]]
5712
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" = ? LIMIT 1 [["goal_id", 2]]
5713
+  (0.0ms) rollback transaction
5714
+  (0.0ms) begin transaction
5715
+  (0.0ms) SAVEPOINT active_record_1
5716
+ 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
5717
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "seen_at", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["seen_at", "2016-02-23 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5719
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE ("gamification_rewards"."seen_at" IS NOT NULL)
5720
+  (0.0ms) rollback transaction
5721
+  (0.0ms) begin transaction
5722
+  (0.0ms) SAVEPOINT active_record_1
5723
+ 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
5724
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5726
+ Gamification::Reward Load (0.0ms) SELECT "gamification_rewards".* FROM "gamification_rewards" WHERE "gamification_rewards"."seen_at" IS NULL
5727
+  (0.0ms) rollback transaction
5728
+  (0.0ms) begin transaction
5729
+  (0.0ms) SAVEPOINT active_record_1
5730
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5732
+  (0.0ms) SAVEPOINT active_record_1
5733
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["description", "Vel repellat aut sit odit doloremque."], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5735
+  (0.0ms) SAVEPOINT active_record_1
5736
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5737
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
5738
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5739
+  (0.0ms) SAVEPOINT active_record_1
5740
+ 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
5741
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5742
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5743
+  (0.0ms) SAVEPOINT active_record_1
5744
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5745
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5746
+  (0.0ms) SAVEPOINT active_record_1
5747
+ 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
5748
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 2], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5749
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5750
+ 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"]]
5751
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1, 2)
5752
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1, 2)
5753
+  (0.0ms) rollback transaction
5754
+  (0.0ms) begin transaction
5755
+  (0.0ms) SAVEPOINT active_record_1
5756
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5757
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5758
+  (0.0ms) SAVEPOINT active_record_1
5759
+ SQL (0.0ms) INSERT INTO "gamification_medals" ("created_at", "description", "image", "name", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["description", "Vel repellat aut sit odit doloremque."], ["image", nil], ["name", "velit"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5761
+  (0.0ms) SAVEPOINT active_record_1
5762
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5763
+ SQL (0.0ms) UPDATE "gamification_medals" SET "goal_id" = ? WHERE "gamification_medals"."id" = 1 [["goal_id", 1]]
5764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5765
+  (0.0ms) SAVEPOINT active_record_1
5766
+ 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
5767
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5768
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5769
+ 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"]]
5770
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals" WHERE "gamification_goals"."id" IN (1)
5771
+ Gamification::Medal Load (0.0ms) SELECT "gamification_medals".* FROM "gamification_medals" WHERE "gamification_medals"."goal_id" IN (1)
5772
+  (0.0ms) rollback transaction
5773
+  (0.0ms) begin transaction
5774
+  (0.0ms) SAVEPOINT active_record_1
5775
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5777
+ 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"]]
5778
+  (0.0ms) rollback transaction
5779
+  (0.0ms) begin transaction
5780
+  (0.0ms) rollback transaction
5781
+  (0.0ms) begin transaction
5782
+  (0.0ms) rollback transaction
5783
+  (0.0ms) begin transaction
5784
+  (0.0ms) SAVEPOINT active_record_1
5785
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5786
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5787
+  (0.0ms) SAVEPOINT active_record_1
5788
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5789
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5790
+  (0.0ms) SAVEPOINT active_record_1
5791
+ 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
5792
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5793
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5794
+ 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]]
5795
+  (0.0ms) rollback transaction
5796
+  (0.0ms) begin transaction
5797
+  (0.0ms) SAVEPOINT active_record_1
5798
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5800
+  (0.0ms) SAVEPOINT active_record_1
5801
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5803
+ 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]]
5804
+  (0.0ms) rollback transaction
5805
+  (0.0ms) begin transaction
5806
+  (0.0ms) SAVEPOINT active_record_1
5807
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5809
+  (0.0ms) SAVEPOINT active_record_1
5810
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5812
+ 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]]
5813
+  (0.0ms) SAVEPOINT active_record_1
5814
+ 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
5815
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5816
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5817
+  (0.0ms) rollback transaction
5818
+  (0.0ms) begin transaction
5819
+  (0.0ms) SAVEPOINT active_record_1
5820
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5822
+  (0.0ms) SAVEPOINT active_record_1
5823
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5825
+  (0.0ms) SAVEPOINT active_record_1
5826
+ 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
5827
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5828
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5829
+ 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]]
5830
+  (0.0ms) rollback transaction
5831
+  (0.0ms) begin transaction
5832
+  (0.0ms) SAVEPOINT active_record_1
5833
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5834
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5835
+  (0.0ms) SAVEPOINT active_record_1
5836
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5837
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5838
+  (0.0ms) SAVEPOINT active_record_1
5839
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5840
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5841
+ 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]]
5842
+  (0.0ms) SAVEPOINT active_record_1
5843
+ 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
5844
+ SQL (0.0ms) INSERT INTO "gamification_rewards" ("created_at", "goal_id", "rewardable_id", "rewardable_type", "updated_at") VALUES (?, ?, ?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["goal_id", 1], ["rewardable_id", 1], ["rewardable_type", "User"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5846
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
5847
+ 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]]
5848
+ 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]]
5849
+  (0.0ms) rollback transaction
5850
+  (0.0ms) begin transaction
5851
+  (0.0ms) SAVEPOINT active_record_1
5852
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5854
+  (0.0ms) SAVEPOINT active_record_1
5855
+ SQL (0.0ms) INSERT INTO "gamification_goals" ("created_at", "points", "updated_at") VALUES (?, ?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["points", 1], ["updated_at", "2016-02-25 09:14:26.646664"]]
5856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5857
+  (0.0ms) SAVEPOINT active_record_1
5858
+ SQL (0.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5860
+ Gamification::Goal Load (0.0ms) SELECT "gamification_goals".* FROM "gamification_goals"
5861
+ 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]]
5862
+ 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]]
5863
+  (0.0ms) rollback transaction
5864
+  (0.0ms) begin transaction
5865
+  (0.0ms) SAVEPOINT active_record_1
5866
+ SQL (0.0ms) INSERT INTO "articles" ("created_at", "updated_at") VALUES (?, ?) [["created_at", "2016-02-25 09:14:26.646664"], ["updated_at", "2016-02-25 09:14:26.646664"]]
5867
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5868
+ Processing by ArticlesController#show as HTML
5869
+ Parameters: {"id"=>"1"}
5870
+ Article Load (0.0ms) SELECT "articles".* FROM "articles" WHERE "articles"."id" = ? LIMIT 1 [["id", 1]]
5871
+ Completed 200 OK in 0ms (Views: 0.0ms | ActiveRecord: 0.0ms)
5872
+  (0.0ms) rollback transaction