punching_bag 0.5.0 → 0.6.0

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: 9ac2d251fa149557f2d2d8269e1c99003be42dd5
4
- data.tar.gz: c944ae9f8398d3f1cc3411ee094e80341bc36911
3
+ metadata.gz: 175b4b782e22c9580ab8e65f962a0b87b1e37341
4
+ data.tar.gz: c4a8b2ebee3f7cdbc884b08742ecbccd551dff42
5
5
  SHA512:
6
- metadata.gz: c0992546f3f9ad1d22eadd03cedacec77c60d2255173d70c862d027c99e8b4c0fe6c37c04ea2c5a70a755178f6cc64d620f30c2a59cbc2af19bbe82c8cb088f2
7
- data.tar.gz: f64db2afe20b9b443c4dd450754093ce070930c903620c09757f82001aae0b8d0a3e89fea5d55d5eb3bba1a21f66004644811173cf5fb1be8c35ad25e427b4c7
6
+ metadata.gz: c936e7cec62ca9f1606384da085a4c9a736b2e0e51757e6448bcd9a6f530b07ebcbacfc1f5281e93d5a130657c1a24a889466e211bb399104badbdc088ee5eb2
7
+ data.tar.gz: 90567fe04a9efa5e2bfd1312dab60450e1ec88cfe6c950414dd3ba503487bee7e9c38ebc7fbb92bc723fff45a56b3215a71e9fa800273b04b2e7f5b3f3e7a3f7
@@ -1,4 +1,4 @@
1
- class CreatePunchesTable < ActiveRecord::Migration
1
+ class CreatePunchesTable < ActiveRecord::Migration[4.2]
2
2
  def self.up
3
3
  create_table :punches do |t|
4
4
  t.integer :punchable_id, :null => false
@@ -5,15 +5,15 @@ module PunchingBag
5
5
 
6
6
  # Note: this method will only return items if they have 1 or more hits
7
7
  def most_hit(since=nil, limit=5)
8
- query = joins(:punches).group(Punch.arel_table[:punchable_type], Punch.arel_table[:punchable_id], arel_table.primary_key)
8
+ query = joins(:punches).group(Punch.arel_table[:punchable_type], Punch.arel_table[:punchable_id], arel_table[primary_key])
9
9
  query = query.where('punches.average_time >= ?', since) unless since.nil?
10
10
  query.reorder('SUM(punches.hits) DESC').limit(limit)
11
11
  end
12
12
 
13
13
  # Note: this method will return all items with 0 or more hits
14
14
  def sort_by_popularity(dir='DESC')
15
- query = joins(arel_table.join(Punch.arel_table, Arel::Nodes::OuterJoin).on(Punch.arel_table[:punchable_id].eq(arel_table.primary_key).and(Punch.arel_table[:punchable_type].eq(self.name))).join_sources.first)
16
- query = query.group(arel_table.primary_key)
15
+ query = joins(arel_table.join(Punch.arel_table, Arel::Nodes::OuterJoin).on(Punch.arel_table[:punchable_id].eq(arel_table[primary_key]).and(Punch.arel_table[:punchable_type].eq(self.name))).join_sources.first)
16
+ query = query.group(arel_table[primary_key])
17
17
  query.reorder("SUM(punches.hits) #{dir}")
18
18
  end
19
19
  end
@@ -1,19 +1,13 @@
1
1
  # Adds methods to enable tracking tags through a common polymorphic association
2
2
  module ActsAsTaggableOn
3
3
  class Tag
4
-
5
- def self.most_hit(since=nil, limit=5, options = {})
4
+ def self.most_hit(since=nil, limit=5)
6
5
  query = Tagging.scoped.
7
6
  joins('INNER JOIN punches ON (taggings.taggable_id = punches.punchable_id AND taggings.taggable_type = punches.punchable_type)').
8
7
  group(:tag_id).
9
8
  order('SUM(punches.hits) DESC').
10
9
  limit(limit)
11
10
  query = query.where('punches.average_time >= ?', since) if since
12
-
13
- if options[:fill_limit] && query.length < limit
14
-
15
- end
16
-
17
11
  query.map(&:tag)
18
12
  end
19
13
 
@@ -1,3 +1,3 @@
1
1
  module PunchingBag
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -6,7 +6,7 @@ namespace :punching_bag do
6
6
  punchable_types = Punch.unscope(:order).uniq.pluck(:punchable_type)
7
7
 
8
8
  punchable_types.each do |punchable_type|
9
- punchables = punchable_type.constantize.find(
9
+ punchables = punchable_type.constantize.unscoped.find(
10
10
  Punch.unscope(:order).uniq.where(punchable_type: punchable_type).pluck(:punchable_id)
11
11
  )
12
12
 
@@ -3432,3 +3432,2089 @@
3432
3432
   (0.1ms) RELEASE SAVEPOINT active_record_1
3433
3433
  Article Load (0.3ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1
3434
3434
   (0.1ms) rollback transaction
3435
+  (0.9ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime, "updated_at" datetime) 
3436
+  (0.7ms) CREATE TABLE "punches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "punchable_id" integer NOT NULL, "punchable_type" varchar(20) NOT NULL, "starts_at" datetime NOT NULL, "ends_at" datetime NOT NULL, "average_time" datetime NOT NULL, "hits" integer DEFAULT 1 NOT NULL)
3437
+  (0.2ms) select sqlite_version(*)
3438
+  (1.3ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")
3439
+  (0.1ms)  SELECT sql
3440
+ FROM sqlite_master
3441
+ WHERE name='index_punches_on_average_time' AND type='index'
3442
+ UNION ALL
3443
+ SELECT sql
3444
+ FROM sqlite_temp_master
3445
+ WHERE name='index_punches_on_average_time' AND type='index'
3446
+ 
3447
+  (0.6ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")
3448
+  (0.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
3449
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3450
+  (0.0ms) begin transaction
3451
+  (0.0ms) SAVEPOINT active_record_1
3452
+ SQL (0.9ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:06:34.923121"], ["updated_at", "2017-09-18 08:06:34.923121"]]
3453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3454
+  (0.5ms) rollback transaction
3455
+  (0.0ms) begin transaction
3456
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3457
+  (0.0ms) SAVEPOINT active_record_1
3458
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:06:34.931284"], ["updated_at", "2017-09-18 08:06:34.931284"]]
3459
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3460
+  (0.0ms) SAVEPOINT active_record_1
3461
+ SQL (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:34.938262"], ["ends_at", "2017-09-18 08:06:34.938262"], ["average_time", "2017-09-18 08:06:34.938262"]]
3462
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3463
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3464
+  (0.5ms) rollback transaction
3465
+  (0.0ms) begin transaction
3466
+  (0.1ms) SELECT COUNT(*) FROM "punches"
3467
+  (0.0ms) SAVEPOINT active_record_1
3468
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:06:34.945040"], ["updated_at", "2017-09-18 08:06:34.945040"]]
3469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3470
+  (0.0ms) SAVEPOINT active_record_1
3471
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:34.946201"], ["ends_at", "2017-09-18 08:06:34.946201"], ["average_time", "2017-09-18 08:06:34.946201"]]
3472
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3473
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3474
+  (0.4ms) rollback transaction
3475
+  (0.1ms) begin transaction
3476
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches"
3477
+  (0.0ms) SAVEPOINT active_record_1
3478
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:06:34.949862"], ["updated_at", "2017-09-18 08:06:34.949862"]]
3479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3480
+  (0.0ms) SAVEPOINT active_record_1
3481
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:06:34.951427"], ["ends_at", "2017-09-18 08:06:34.951427"], ["average_time", "2017-09-18 08:06:34.951427"]]
3482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3483
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches"
3484
+  (0.4ms) rollback transaction
3485
+  (0.0ms) begin transaction
3486
+  (0.1ms) rollback transaction
3487
+  (0.0ms) begin transaction
3488
+  (0.0ms) SAVEPOINT active_record_1
3489
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.956680"], ["updated_at", "2017-09-18 08:06:34.956680"]]
3490
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3491
+  (0.4ms) rollback transaction
3492
+  (0.0ms) begin transaction
3493
+  (0.0ms) SAVEPOINT active_record_1
3494
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.959600"], ["updated_at", "2017-09-18 08:06:34.959600"]]
3495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3496
+  (0.4ms) rollback transaction
3497
+  (0.0ms) begin transaction
3498
+  (0.0ms) SAVEPOINT active_record_1
3499
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.964865"], ["updated_at", "2017-09-18 08:06:34.964865"]]
3500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3501
+  (0.3ms) rollback transaction
3502
+  (0.0ms) begin transaction
3503
+  (0.0ms) SAVEPOINT active_record_1
3504
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.967532"], ["updated_at", "2017-09-18 08:06:34.967532"]]
3505
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3506
+  (0.3ms) rollback transaction
3507
+  (0.0ms) begin transaction
3508
+  (0.0ms) SAVEPOINT active_record_1
3509
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.969946"], ["updated_at", "2017-09-18 08:06:34.969946"]]
3510
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3511
+  (0.3ms) rollback transaction
3512
+  (0.0ms) begin transaction
3513
+  (0.0ms) SAVEPOINT active_record_1
3514
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.972142"], ["updated_at", "2017-09-18 08:06:34.972142"]]
3515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3516
+  (0.3ms) rollback transaction
3517
+  (0.0ms) begin transaction
3518
+  (0.0ms) SAVEPOINT active_record_1
3519
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.974378"], ["updated_at", "2017-09-18 08:06:34.974378"]]
3520
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3521
+  (0.2ms) rollback transaction
3522
+  (0.0ms) begin transaction
3523
+  (0.0ms) SAVEPOINT active_record_1
3524
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.977572"], ["updated_at", "2017-09-18 08:06:34.977572"]]
3525
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3526
+  (0.3ms) rollback transaction
3527
+  (0.1ms) begin transaction
3528
+  (0.0ms) SAVEPOINT active_record_1
3529
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.980314"], ["updated_at", "2017-09-18 08:06:34.980314"]]
3530
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3531
+  (0.2ms) rollback transaction
3532
+  (0.0ms) begin transaction
3533
+  (0.0ms) SAVEPOINT active_record_1
3534
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.982527"], ["updated_at", "2017-09-18 08:06:34.982527"]]
3535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3536
+  (0.2ms) rollback transaction
3537
+  (0.0ms) begin transaction
3538
+  (0.0ms) SAVEPOINT active_record_1
3539
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.984825"], ["updated_at", "2017-09-18 08:06:34.984825"]]
3540
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3541
+  (0.2ms) rollback transaction
3542
+  (0.0ms) begin transaction
3543
+  (0.0ms) SAVEPOINT active_record_1
3544
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.986953"], ["updated_at", "2017-09-18 08:06:34.986953"]]
3545
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3546
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3547
+  (0.4ms) rollback transaction
3548
+  (0.0ms) begin transaction
3549
+  (0.0ms) SAVEPOINT active_record_1
3550
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.995874"], ["updated_at", "2017-09-18 08:06:34.995874"]]
3551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3552
+  (0.4ms) rollback transaction
3553
+  (0.0ms) begin transaction
3554
+  (0.0ms) SAVEPOINT active_record_1
3555
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:34.998520"], ["updated_at", "2017-09-18 08:06:34.998520"]]
3556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3557
+  (0.4ms) rollback transaction
3558
+  (0.0ms) begin transaction
3559
+  (0.0ms) SAVEPOINT active_record_1
3560
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.001942"], ["updated_at", "2017-09-18 08:06:35.001942"]]
3561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3562
+  (0.4ms) rollback transaction
3563
+  (0.0ms) begin transaction
3564
+  (0.0ms) SAVEPOINT active_record_1
3565
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.005569"], ["updated_at", "2017-09-18 08:06:35.005569"]]
3566
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3567
+  (0.5ms) rollback transaction
3568
+  (0.0ms) begin transaction
3569
+  (0.0ms) SAVEPOINT active_record_1
3570
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.009235"], ["updated_at", "2017-09-18 08:06:35.009235"]]
3571
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3572
+ Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-01 00:00:00.000000' AND punches.ends_at <= '2017-09-30 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3573
+  (0.4ms) rollback transaction
3574
+  (0.1ms) begin transaction
3575
+  (0.0ms) SAVEPOINT active_record_1
3576
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.013601"], ["updated_at", "2017-09-18 08:06:35.013601"]]
3577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3578
+  (0.4ms) rollback transaction
3579
+  (0.1ms) begin transaction
3580
+  (0.0ms) SAVEPOINT active_record_1
3581
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.017432"], ["updated_at", "2017-09-18 08:06:35.017432"]]
3582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3583
+  (0.3ms) rollback transaction
3584
+  (0.1ms) begin transaction
3585
+  (0.0ms) SAVEPOINT active_record_1
3586
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.020249"], ["updated_at", "2017-09-18 08:06:35.020249"]]
3587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3588
+  (0.4ms) rollback transaction
3589
+  (0.0ms) begin transaction
3590
+  (0.0ms) SAVEPOINT active_record_1
3591
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.022861"], ["updated_at", "2017-09-18 08:06:35.022861"]]
3592
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3593
+  (0.3ms) rollback transaction
3594
+  (0.0ms) begin transaction
3595
+  (0.0ms) SAVEPOINT active_record_1
3596
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.025601"], ["updated_at", "2017-09-18 08:06:35.025601"]]
3597
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3598
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-01-01 00:00:00.000000' AND punches.ends_at <= '2017-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3599
+  (0.5ms) rollback transaction
3600
+  (0.0ms) begin transaction
3601
+  (0.0ms) SAVEPOINT active_record_1
3602
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.029371"], ["updated_at", "2017-09-18 08:06:35.029371"]]
3603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3604
+  (0.0ms) SAVEPOINT active_record_1
3605
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.030411"], ["ends_at", "2017-09-18 08:06:35.030411"], ["average_time", "2017-09-18 08:06:35.030411"]]
3606
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3607
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3608
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3609
+  (0.5ms) rollback transaction
3610
+  (0.1ms) begin transaction
3611
+  (0.0ms) SAVEPOINT active_record_1
3612
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.064227"], ["updated_at", "2017-09-18 08:06:35.064227"]]
3613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3614
+  (0.1ms) SAVEPOINT active_record_1
3615
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
3616
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3617
+  (0.0ms) SAVEPOINT active_record_1
3618
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
3619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3620
+  (0.0ms) SAVEPOINT active_record_1
3621
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
3622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3623
+  (0.0ms) SAVEPOINT active_record_1
3624
+ SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
3625
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3626
+  (0.0ms) SAVEPOINT active_record_1
3627
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
3628
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3629
+  (0.5ms) rollback transaction
3630
+  (0.0ms) begin transaction
3631
+  (0.0ms) SAVEPOINT active_record_1
3632
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.073655"], ["updated_at", "2017-09-18 08:06:35.073655"]]
3633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3634
+  (0.0ms) SAVEPOINT active_record_1
3635
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
3636
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3637
+  (0.0ms) SAVEPOINT active_record_1
3638
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
3639
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3640
+  (0.0ms) SAVEPOINT active_record_1
3641
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
3642
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3643
+  (0.0ms) SAVEPOINT active_record_1
3644
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
3645
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3646
+  (0.0ms) SAVEPOINT active_record_1
3647
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
3648
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3649
+  (0.4ms) rollback transaction
3650
+  (0.0ms) begin transaction
3651
+  (0.0ms) SAVEPOINT active_record_1
3652
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.080504"], ["updated_at", "2017-09-18 08:06:35.080504"]]
3653
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3654
+  (0.0ms) SAVEPOINT active_record_1
3655
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
3656
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3657
+  (0.0ms) SAVEPOINT active_record_1
3658
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
3659
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3660
+  (0.1ms) SAVEPOINT active_record_1
3661
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
3662
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3663
+  (0.0ms) SAVEPOINT active_record_1
3664
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
3665
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3666
+  (0.0ms) SAVEPOINT active_record_1
3667
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
3668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3669
+  (0.4ms) rollback transaction
3670
+  (0.0ms) begin transaction
3671
+  (0.0ms) SAVEPOINT active_record_1
3672
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.086874"], ["updated_at", "2017-09-18 08:06:35.086874"]]
3673
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3674
+  (0.0ms) SAVEPOINT active_record_1
3675
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
3676
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3677
+  (0.0ms) SAVEPOINT active_record_1
3678
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
3679
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3680
+  (0.0ms) SAVEPOINT active_record_1
3681
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
3682
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3683
+  (0.0ms) SAVEPOINT active_record_1
3684
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
3685
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3686
+  (0.0ms) SAVEPOINT active_record_1
3687
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
3688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3689
+  (0.4ms) rollback transaction
3690
+  (0.0ms) begin transaction
3691
+  (0.0ms) SAVEPOINT active_record_1
3692
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.092965"], ["updated_at", "2017-09-18 08:06:35.092965"]]
3693
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3694
+  (0.0ms) SAVEPOINT active_record_1
3695
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
3696
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3697
+  (0.0ms) SAVEPOINT active_record_1
3698
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
3699
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3700
+  (0.0ms) SAVEPOINT active_record_1
3701
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
3702
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3703
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3704
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3705
+  (0.4ms) rollback transaction
3706
+  (0.0ms) begin transaction
3707
+  (0.0ms) SAVEPOINT active_record_1
3708
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:06:35.099684"], ["updated_at", "2017-09-18 08:06:35.099684"]]
3709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3710
+  (0.0ms) SAVEPOINT active_record_1
3711
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
3712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3713
+  (0.0ms) SAVEPOINT active_record_1
3714
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
3715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3716
+  (0.0ms) SAVEPOINT active_record_1
3717
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
3718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3719
+ Punch Load (0.0ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3720
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
3721
+  (0.4ms) rollback transaction
3722
+  (0.0ms) begin transaction
3723
+  (0.0ms) SAVEPOINT active_record_1
3724
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.105782"], ["updated_at", "2017-09-18 08:06:35.105782"]]
3725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3726
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
3727
+  (0.4ms) rollback transaction
3728
+  (0.1ms) begin transaction
3729
+  (0.0ms) SAVEPOINT active_record_1
3730
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.108876"], ["updated_at", "2017-09-18 08:06:35.108876"]]
3731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3732
+  (0.0ms) SAVEPOINT active_record_1
3733
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.110401"], ["ends_at", "2017-09-18 08:06:35.110401"], ["average_time", "2017-09-18 08:06:35.110401"]]
3734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3735
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
3736
+  (0.5ms) rollback transaction
3737
+  (0.0ms) begin transaction
3738
+  (0.0ms) SAVEPOINT active_record_1
3739
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.113562"], ["updated_at", "2017-09-18 08:06:35.113562"]]
3740
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3741
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
3742
+  (0.0ms) SAVEPOINT active_record_1
3743
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.115348"], ["ends_at", "2017-09-18 08:06:35.115348"], ["average_time", "2017-09-18 08:06:35.115348"]]
3744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3745
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
3746
+  (0.4ms) rollback transaction
3747
+  (0.0ms) begin transaction
3748
+  (0.0ms) SAVEPOINT active_record_1
3749
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.117985"], ["updated_at", "2017-09-18 08:06:35.117985"]]
3750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3751
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
3752
+  (0.0ms) SAVEPOINT active_record_1
3753
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:06:35.119800"], ["ends_at", "2017-09-18 08:06:35.119800"], ["average_time", "2017-09-18 08:06:35.119800"]]
3754
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3755
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
3756
+  (0.4ms) rollback transaction
3757
+  (0.0ms) begin transaction
3758
+  (0.0ms) SAVEPOINT active_record_1
3759
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.122190"], ["updated_at", "2017-09-18 08:06:35.122190"]]
3760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3761
+  (0.0ms) SAVEPOINT active_record_1
3762
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.123481"], ["ends_at", "2017-09-18 08:06:35.123481"], ["average_time", "2017-09-18 08:06:35.123481"]]
3763
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3764
+  (0.0ms) SAVEPOINT active_record_1
3765
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.126158"], ["ends_at", "2017-09-18 08:06:35.126158"], ["average_time", "2017-09-18 08:06:35.126158"]]
3766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3767
+  (0.0ms) SAVEPOINT active_record_1
3768
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.127054"], ["updated_at", "2017-09-18 08:06:35.127054"]]
3769
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3770
+  (0.0ms) SAVEPOINT active_record_1
3771
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.127831"], ["ends_at", "2017-09-18 08:06:35.127831"], ["average_time", "2017-09-18 08:06:35.127831"]]
3772
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3773
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
3774
+  (0.4ms) rollback transaction
3775
+  (0.0ms) begin transaction
3776
+  (0.0ms) SAVEPOINT active_record_1
3777
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.134405"], ["updated_at", "2017-09-18 08:06:35.134405"]]
3778
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3779
+  (0.0ms) SAVEPOINT active_record_1
3780
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.135480"], ["ends_at", "2017-09-18 08:06:35.135480"], ["average_time", "2017-09-18 08:06:35.135480"]]
3781
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3782
+  (0.0ms) SAVEPOINT active_record_1
3783
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.136439"], ["ends_at", "2017-09-18 08:06:35.136439"], ["average_time", "2017-09-18 08:06:35.136439"]]
3784
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3785
+  (0.0ms) SAVEPOINT active_record_1
3786
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.137225"], ["updated_at", "2017-09-18 08:06:35.137225"]]
3787
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3788
+  (0.0ms) SAVEPOINT active_record_1
3789
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.138008"], ["ends_at", "2017-09-18 08:06:35.138008"], ["average_time", "2017-09-18 08:06:35.138008"]]
3790
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3791
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
3792
+  (0.5ms) rollback transaction
3793
+  (0.0ms) begin transaction
3794
+  (0.0ms) SAVEPOINT active_record_1
3795
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.140745"], ["updated_at", "2017-09-18 08:06:35.140745"]]
3796
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3797
+  (0.0ms) SAVEPOINT active_record_1
3798
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.141843"], ["ends_at", "2017-09-18 08:06:35.141843"], ["average_time", "2017-09-18 08:06:35.141843"]]
3799
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3800
+  (0.0ms) SAVEPOINT active_record_1
3801
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.142803"], ["ends_at", "2017-09-18 08:06:35.142803"], ["average_time", "2017-09-18 08:06:35.142803"]]
3802
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3803
+  (0.0ms) SAVEPOINT active_record_1
3804
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.143579"], ["updated_at", "2017-09-18 08:06:35.143579"]]
3805
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3806
+  (0.0ms) SAVEPOINT active_record_1
3807
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.144350"], ["ends_at", "2017-09-18 08:06:35.144350"], ["average_time", "2017-09-18 08:06:35.144350"]]
3808
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3809
+  (0.0ms) SAVEPOINT active_record_1
3810
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:06:35.145604"], ["updated_at", "2017-09-18 08:06:35.145604"]]
3811
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3812
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
3813
+  (0.4ms) rollback transaction
3814
+  (0.0ms) begin transaction
3815
+  (0.0ms) SAVEPOINT active_record_1
3816
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.148273"], ["updated_at", "2017-09-18 08:06:35.148273"]]
3817
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3818
+  (0.0ms) SAVEPOINT active_record_1
3819
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.149332"], ["ends_at", "2017-09-18 08:06:35.149332"], ["average_time", "2017-09-18 08:06:35.149332"]]
3820
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3821
+  (0.0ms) SAVEPOINT active_record_1
3822
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.150270"], ["ends_at", "2017-09-18 08:06:35.150270"], ["average_time", "2017-09-18 08:06:35.150270"]]
3823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3824
+  (0.0ms) SAVEPOINT active_record_1
3825
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.151155"], ["updated_at", "2017-09-18 08:06:35.151155"]]
3826
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3827
+  (0.0ms) SAVEPOINT active_record_1
3828
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.151943"], ["ends_at", "2017-09-18 08:06:35.151943"], ["average_time", "2017-09-18 08:06:35.151943"]]
3829
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3830
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 [["punchable_type", "Article"]]
3831
+  (0.4ms) rollback transaction
3832
+  (0.1ms) begin transaction
3833
+  (0.0ms) SAVEPOINT active_record_1
3834
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.154683"], ["updated_at", "2017-09-18 08:06:35.154683"]]
3835
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3836
+  (0.0ms) SAVEPOINT active_record_1
3837
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.155940"], ["ends_at", "2017-09-18 08:06:35.155940"], ["average_time", "2017-09-18 08:06:35.155940"]]
3838
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3839
+  (0.0ms) SAVEPOINT active_record_1
3840
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.156987"], ["ends_at", "2017-09-18 08:06:35.156987"], ["average_time", "2017-09-18 08:06:35.156987"]]
3841
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3842
+  (0.0ms) SAVEPOINT active_record_1
3843
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.158052"], ["updated_at", "2017-09-18 08:06:35.158052"]]
3844
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3845
+  (0.0ms) SAVEPOINT active_record_1
3846
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.159054"], ["ends_at", "2017-09-18 08:06:35.159054"], ["average_time", "2017-09-18 08:06:35.159054"]]
3847
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3848
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1 [["punchable_type", "Article"]]
3849
+  (0.5ms) rollback transaction
3850
+  (0.0ms) begin transaction
3851
+  (0.0ms) SAVEPOINT active_record_1
3852
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.162106"], ["updated_at", "2017-09-18 08:06:35.162106"]]
3853
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3854
+  (0.0ms) SAVEPOINT active_record_1
3855
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.163296"], ["ends_at", "2017-09-18 08:06:35.163296"], ["average_time", "2017-09-18 08:06:35.163296"]]
3856
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3857
+  (0.0ms) SAVEPOINT active_record_1
3858
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.164338"], ["ends_at", "2017-09-18 08:06:35.164338"], ["average_time", "2017-09-18 08:06:35.164338"]]
3859
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3860
+  (0.0ms) SAVEPOINT active_record_1
3861
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.165207"], ["updated_at", "2017-09-18 08:06:35.165207"]]
3862
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3863
+  (0.0ms) SAVEPOINT active_record_1
3864
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.166080"], ["ends_at", "2017-09-18 08:06:35.166080"], ["average_time", "2017-09-18 08:06:35.166080"]]
3865
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3866
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
3867
+  (0.4ms) rollback transaction
3868
+  (0.0ms) begin transaction
3869
+  (0.0ms) SAVEPOINT active_record_1
3870
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.169075"], ["updated_at", "2017-09-18 08:06:35.169075"]]
3871
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3872
+  (0.0ms) SAVEPOINT active_record_1
3873
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.170262"], ["ends_at", "2017-09-18 08:06:35.170262"], ["average_time", "2017-09-18 08:06:35.170262"]]
3874
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3875
+  (0.0ms) SAVEPOINT active_record_1
3876
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.171570"], ["ends_at", "2017-09-18 08:06:35.171570"], ["average_time", "2017-09-18 08:06:35.171570"]]
3877
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3878
+  (0.0ms) SAVEPOINT active_record_1
3879
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.172571"], ["updated_at", "2017-09-18 08:06:35.172571"]]
3880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3881
+  (0.0ms) SAVEPOINT active_record_1
3882
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.173509"], ["ends_at", "2017-09-18 08:06:35.173509"], ["average_time", "2017-09-18 08:06:35.173509"]]
3883
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3884
+  (0.0ms) SAVEPOINT active_record_1
3885
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:06:35.174710"], ["updated_at", "2017-09-18 08:06:35.174710"]]
3886
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3887
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
3888
+  (0.4ms) rollback transaction
3889
+  (0.0ms) begin transaction
3890
+  (0.0ms) SAVEPOINT active_record_1
3891
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.177772"], ["updated_at", "2017-09-18 08:06:35.177772"]]
3892
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3893
+  (0.0ms) SAVEPOINT active_record_1
3894
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.178948"], ["ends_at", "2017-09-18 08:06:35.178948"], ["average_time", "2017-09-18 08:06:35.178948"]]
3895
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3896
+  (0.0ms) SAVEPOINT active_record_1
3897
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.180045"], ["ends_at", "2017-09-18 08:06:35.180045"], ["average_time", "2017-09-18 08:06:35.180045"]]
3898
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3899
+  (0.0ms) SAVEPOINT active_record_1
3900
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.180962"], ["updated_at", "2017-09-18 08:06:35.180962"]]
3901
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3902
+  (0.0ms) SAVEPOINT active_record_1
3903
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.181968"], ["ends_at", "2017-09-18 08:06:35.181968"], ["average_time", "2017-09-18 08:06:35.181968"]]
3904
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3905
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
3906
+  (0.4ms) rollback transaction
3907
+  (0.0ms) begin transaction
3908
+  (0.0ms) SAVEPOINT active_record_1
3909
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.184586"], ["updated_at", "2017-09-18 08:06:35.184586"]]
3910
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3911
+  (0.0ms) SAVEPOINT active_record_1
3912
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.185754"], ["ends_at", "2017-09-18 08:06:35.185754"], ["average_time", "2017-09-18 08:06:35.185754"]]
3913
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3914
+  (0.0ms) SAVEPOINT active_record_1
3915
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.186809"], ["ends_at", "2017-09-18 08:06:35.186809"], ["average_time", "2017-09-18 08:06:35.186809"]]
3916
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3917
+  (0.0ms) SAVEPOINT active_record_1
3918
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.187810"], ["updated_at", "2017-09-18 08:06:35.187810"]]
3919
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3920
+  (0.0ms) SAVEPOINT active_record_1
3921
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.188892"], ["ends_at", "2017-09-18 08:06:35.188892"], ["average_time", "2017-09-18 08:06:35.188892"]]
3922
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3923
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1
3924
+  (0.4ms) rollback transaction
3925
+  (0.0ms) begin transaction
3926
+  (0.0ms) SAVEPOINT active_record_1
3927
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:06:35.191665"], ["updated_at", "2017-09-18 08:06:35.191665"]]
3928
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3929
+  (0.0ms) SAVEPOINT active_record_1
3930
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.192967"], ["ends_at", "2017-09-18 08:06:35.192967"], ["average_time", "2017-09-18 08:06:35.192967"]]
3931
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3932
+  (0.0ms) SAVEPOINT active_record_1
3933
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.195058"], ["ends_at", "2017-09-18 08:06:35.195058"], ["average_time", "2017-09-18 08:06:35.195058"]]
3934
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3935
+  (0.0ms) SAVEPOINT active_record_1
3936
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:06:35.195923"], ["updated_at", "2017-09-18 08:06:35.195923"]]
3937
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3938
+  (0.0ms) SAVEPOINT active_record_1
3939
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:06:35.196739"], ["ends_at", "2017-09-18 08:06:35.196739"], ["average_time", "2017-09-18 08:06:35.196739"]]
3940
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3941
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1
3942
+  (0.5ms) rollback transaction
3943
+  (2.7ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime, "updated_at" datetime) 
3944
+  (0.9ms) CREATE TABLE "punches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "punchable_id" integer NOT NULL, "punchable_type" varchar(20) NOT NULL, "starts_at" datetime NOT NULL, "ends_at" datetime NOT NULL, "average_time" datetime NOT NULL, "hits" integer DEFAULT 1 NOT NULL)
3945
+  (0.1ms) select sqlite_version(*)
3946
+  (0.8ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")
3947
+  (0.1ms)  SELECT sql
3948
+ FROM sqlite_master
3949
+ WHERE name='index_punches_on_average_time' AND type='index'
3950
+ UNION ALL
3951
+ SELECT sql
3952
+ FROM sqlite_temp_master
3953
+ WHERE name='index_punches_on_average_time' AND type='index'
3954
+ 
3955
+  (0.7ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")
3956
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
3957
+  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3958
+  (0.0ms) begin transaction
3959
+  (0.0ms) SAVEPOINT active_record_1
3960
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:07:19.902841"], ["updated_at", "2017-09-18 08:07:19.902841"]]
3961
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3962
+  (1.8ms) rollback transaction
3963
+  (0.0ms) begin transaction
3964
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3965
+  (0.0ms) SAVEPOINT active_record_1
3966
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:07:19.909830"], ["updated_at", "2017-09-18 08:07:19.909830"]]
3967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3968
+  (0.1ms) SAVEPOINT active_record_1
3969
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:19.916678"], ["ends_at", "2017-09-18 08:07:19.916678"], ["average_time", "2017-09-18 08:07:19.916678"]]
3970
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3971
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3972
+  (0.4ms) rollback transaction
3973
+  (0.1ms) begin transaction
3974
+  (0.1ms) SELECT COUNT(*) FROM "punches"
3975
+  (0.0ms) SAVEPOINT active_record_1
3976
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:07:19.919909"], ["updated_at", "2017-09-18 08:07:19.919909"]]
3977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3978
+  (0.0ms) SAVEPOINT active_record_1
3979
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:19.920947"], ["ends_at", "2017-09-18 08:07:19.920947"], ["average_time", "2017-09-18 08:07:19.920947"]]
3980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3981
+  (0.0ms) SELECT COUNT(*) FROM "punches"
3982
+  (0.3ms) rollback transaction
3983
+  (0.0ms) begin transaction
3984
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches"
3985
+  (0.0ms) SAVEPOINT active_record_1
3986
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:07:19.923629"], ["updated_at", "2017-09-18 08:07:19.923629"]]
3987
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3988
+  (0.0ms) SAVEPOINT active_record_1
3989
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:07:19.924768"], ["ends_at", "2017-09-18 08:07:19.924768"], ["average_time", "2017-09-18 08:07:19.924768"]]
3990
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3991
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches"
3992
+  (0.4ms) rollback transaction
3993
+  (0.0ms) begin transaction
3994
+  (0.0ms) rollback transaction
3995
+  (0.0ms) begin transaction
3996
+  (0.0ms) SAVEPOINT active_record_1
3997
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.929014"], ["updated_at", "2017-09-18 08:07:19.929014"]]
3998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3999
+  (0.4ms) rollback transaction
4000
+  (0.0ms) begin transaction
4001
+  (0.0ms) SAVEPOINT active_record_1
4002
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.931791"], ["updated_at", "2017-09-18 08:07:19.931791"]]
4003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4004
+  (0.3ms) rollback transaction
4005
+  (0.0ms) begin transaction
4006
+  (0.0ms) SAVEPOINT active_record_1
4007
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.935191"], ["updated_at", "2017-09-18 08:07:19.935191"]]
4008
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4009
+  (0.3ms) rollback transaction
4010
+  (0.0ms) begin transaction
4011
+  (0.0ms) SAVEPOINT active_record_1
4012
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.937533"], ["updated_at", "2017-09-18 08:07:19.937533"]]
4013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4014
+  (0.3ms) rollback transaction
4015
+  (0.1ms) begin transaction
4016
+  (0.0ms) SAVEPOINT active_record_1
4017
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.939933"], ["updated_at", "2017-09-18 08:07:19.939933"]]
4018
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4019
+  (0.4ms) rollback transaction
4020
+  (0.0ms) begin transaction
4021
+  (0.0ms) SAVEPOINT active_record_1
4022
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.942718"], ["updated_at", "2017-09-18 08:07:19.942718"]]
4023
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4024
+  (0.3ms) rollback transaction
4025
+  (0.0ms) begin transaction
4026
+  (0.0ms) SAVEPOINT active_record_1
4027
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.944988"], ["updated_at", "2017-09-18 08:07:19.944988"]]
4028
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4029
+  (0.4ms) rollback transaction
4030
+  (0.0ms) begin transaction
4031
+  (0.0ms) SAVEPOINT active_record_1
4032
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.947255"], ["updated_at", "2017-09-18 08:07:19.947255"]]
4033
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4034
+  (0.4ms) rollback transaction
4035
+  (0.0ms) begin transaction
4036
+  (0.0ms) SAVEPOINT active_record_1
4037
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.949495"], ["updated_at", "2017-09-18 08:07:19.949495"]]
4038
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4039
+  (0.3ms) rollback transaction
4040
+  (0.0ms) begin transaction
4041
+  (0.0ms) SAVEPOINT active_record_1
4042
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.952058"], ["updated_at", "2017-09-18 08:07:19.952058"]]
4043
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4044
+  (0.3ms) rollback transaction
4045
+  (0.0ms) begin transaction
4046
+  (0.0ms) SAVEPOINT active_record_1
4047
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.954519"], ["updated_at", "2017-09-18 08:07:19.954519"]]
4048
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4049
+  (0.4ms) rollback transaction
4050
+  (0.0ms) begin transaction
4051
+  (0.1ms) SAVEPOINT active_record_1
4052
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.957173"], ["updated_at", "2017-09-18 08:07:19.957173"]]
4053
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4054
+ Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4055
+  (0.4ms) rollback transaction
4056
+  (0.0ms) begin transaction
4057
+  (0.0ms) SAVEPOINT active_record_1
4058
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.966808"], ["updated_at", "2017-09-18 08:07:19.966808"]]
4059
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4060
+  (0.4ms) rollback transaction
4061
+  (0.0ms) begin transaction
4062
+  (0.0ms) SAVEPOINT active_record_1
4063
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.970421"], ["updated_at", "2017-09-18 08:07:19.970421"]]
4064
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4065
+  (0.4ms) rollback transaction
4066
+  (0.0ms) begin transaction
4067
+  (0.0ms) SAVEPOINT active_record_1
4068
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.972861"], ["updated_at", "2017-09-18 08:07:19.972861"]]
4069
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4070
+  (0.4ms) rollback transaction
4071
+  (0.0ms) begin transaction
4072
+  (0.1ms) SAVEPOINT active_record_1
4073
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.975505"], ["updated_at", "2017-09-18 08:07:19.975505"]]
4074
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4075
+  (0.3ms) rollback transaction
4076
+  (0.0ms) begin transaction
4077
+  (0.0ms) SAVEPOINT active_record_1
4078
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.978116"], ["updated_at", "2017-09-18 08:07:19.978116"]]
4079
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4080
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-01 00:00:00.000000' AND punches.ends_at <= '2017-09-30 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4081
+  (0.4ms) rollback transaction
4082
+  (0.1ms) begin transaction
4083
+  (0.0ms) SAVEPOINT active_record_1
4084
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.981645"], ["updated_at", "2017-09-18 08:07:19.981645"]]
4085
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4086
+  (0.4ms) rollback transaction
4087
+  (0.0ms) begin transaction
4088
+  (0.0ms) SAVEPOINT active_record_1
4089
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.984229"], ["updated_at", "2017-09-18 08:07:19.984229"]]
4090
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4091
+  (0.5ms) rollback transaction
4092
+  (0.1ms) begin transaction
4093
+  (0.0ms) SAVEPOINT active_record_1
4094
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.988617"], ["updated_at", "2017-09-18 08:07:19.988617"]]
4095
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4096
+  (0.4ms) rollback transaction
4097
+  (0.0ms) begin transaction
4098
+  (0.0ms) SAVEPOINT active_record_1
4099
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.991416"], ["updated_at", "2017-09-18 08:07:19.991416"]]
4100
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4101
+  (0.3ms) rollback transaction
4102
+  (0.0ms) begin transaction
4103
+  (0.0ms) SAVEPOINT active_record_1
4104
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.993958"], ["updated_at", "2017-09-18 08:07:19.993958"]]
4105
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4106
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-01-01 00:00:00.000000' AND punches.ends_at <= '2017-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4107
+  (0.4ms) rollback transaction
4108
+  (0.0ms) begin transaction
4109
+  (0.0ms) SAVEPOINT active_record_1
4110
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:19.997765"], ["updated_at", "2017-09-18 08:07:19.997765"]]
4111
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4112
+  (0.0ms) SAVEPOINT active_record_1
4113
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:19.998831"], ["ends_at", "2017-09-18 08:07:19.998831"], ["average_time", "2017-09-18 08:07:19.998831"]]
4114
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4115
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4116
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4117
+  (0.9ms) rollback transaction
4118
+  (0.0ms) begin transaction
4119
+  (0.0ms) SAVEPOINT active_record_1
4120
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:20.020697"], ["updated_at", "2017-09-18 08:07:20.020697"]]
4121
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4122
+  (0.0ms) SAVEPOINT active_record_1
4123
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4124
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4125
+  (0.0ms) SAVEPOINT active_record_1
4126
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4127
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4128
+  (0.0ms) SAVEPOINT active_record_1
4129
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4130
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4131
+  (0.1ms) SAVEPOINT active_record_1
4132
+ SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4133
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4134
+  (0.0ms) SAVEPOINT active_record_1
4135
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4137
+  (0.4ms) rollback transaction
4138
+  (0.0ms) begin transaction
4139
+  (0.0ms) SAVEPOINT active_record_1
4140
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:20.028474"], ["updated_at", "2017-09-18 08:07:20.028474"]]
4141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4142
+  (0.0ms) SAVEPOINT active_record_1
4143
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4145
+  (0.0ms) SAVEPOINT active_record_1
4146
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4147
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4148
+  (0.0ms) SAVEPOINT active_record_1
4149
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4150
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4151
+  (0.0ms) SAVEPOINT active_record_1
4152
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4154
+  (0.0ms) SAVEPOINT active_record_1
4155
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4156
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4157
+  (0.4ms) rollback transaction
4158
+  (0.0ms) begin transaction
4159
+  (0.0ms) SAVEPOINT active_record_1
4160
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:20.035149"], ["updated_at", "2017-09-18 08:07:20.035149"]]
4161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4162
+  (0.0ms) SAVEPOINT active_record_1
4163
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4164
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4165
+  (0.0ms) SAVEPOINT active_record_1
4166
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4167
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4168
+  (0.0ms) SAVEPOINT active_record_1
4169
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4171
+  (0.0ms) SAVEPOINT active_record_1
4172
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4173
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4174
+  (0.0ms) SAVEPOINT active_record_1
4175
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4176
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4177
+  (0.4ms) rollback transaction
4178
+  (0.0ms) begin transaction
4179
+  (0.0ms) SAVEPOINT active_record_1
4180
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:20.041743"], ["updated_at", "2017-09-18 08:07:20.041743"]]
4181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4182
+  (0.0ms) SAVEPOINT active_record_1
4183
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4185
+  (0.0ms) SAVEPOINT active_record_1
4186
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4187
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4188
+  (0.0ms) SAVEPOINT active_record_1
4189
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4190
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4191
+  (0.0ms) SAVEPOINT active_record_1
4192
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4193
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4194
+  (0.0ms) SAVEPOINT active_record_1
4195
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4197
+  (0.4ms) rollback transaction
4198
+  (0.0ms) begin transaction
4199
+  (0.0ms) SAVEPOINT active_record_1
4200
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:20.048662"], ["updated_at", "2017-09-18 08:07:20.048662"]]
4201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4202
+  (0.0ms) SAVEPOINT active_record_1
4203
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4204
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4205
+  (0.0ms) SAVEPOINT active_record_1
4206
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4207
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4208
+  (0.0ms) SAVEPOINT active_record_1
4209
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4210
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4211
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4212
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4213
+  (0.4ms) rollback transaction
4214
+  (0.0ms) begin transaction
4215
+  (0.0ms) SAVEPOINT active_record_1
4216
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:07:20.055433"], ["updated_at", "2017-09-18 08:07:20.055433"]]
4217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4218
+  (0.0ms) SAVEPOINT active_record_1
4219
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4221
+  (0.0ms) SAVEPOINT active_record_1
4222
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4224
+  (0.0ms) SAVEPOINT active_record_1
4225
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4227
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4228
+ Punch Load (0.0ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4229
+  (0.5ms) rollback transaction
4230
+  (0.0ms) begin transaction
4231
+  (0.0ms) SAVEPOINT active_record_1
4232
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.061804"], ["updated_at", "2017-09-18 08:07:20.061804"]]
4233
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4234
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4235
+  (0.4ms) rollback transaction
4236
+  (0.0ms) begin transaction
4237
+  (0.0ms) SAVEPOINT active_record_1
4238
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.064827"], ["updated_at", "2017-09-18 08:07:20.064827"]]
4239
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4240
+  (0.0ms) SAVEPOINT active_record_1
4241
+ SQL (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.066096"], ["ends_at", "2017-09-18 08:07:20.066096"], ["average_time", "2017-09-18 08:07:20.066096"]]
4242
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4243
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4244
+  (0.4ms) rollback transaction
4245
+  (0.0ms) begin transaction
4246
+  (0.0ms) SAVEPOINT active_record_1
4247
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.069900"], ["updated_at", "2017-09-18 08:07:20.069900"]]
4248
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4249
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4250
+  (0.1ms) SAVEPOINT active_record_1
4251
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.073666"], ["ends_at", "2017-09-18 08:07:20.073666"], ["average_time", "2017-09-18 08:07:20.073666"]]
4252
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4253
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4254
+  (0.5ms) rollback transaction
4255
+  (0.0ms) begin transaction
4256
+  (0.0ms) SAVEPOINT active_record_1
4257
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.076277"], ["updated_at", "2017-09-18 08:07:20.076277"]]
4258
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4259
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4260
+  (0.0ms) SAVEPOINT active_record_1
4261
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:07:20.078153"], ["ends_at", "2017-09-18 08:07:20.078153"], ["average_time", "2017-09-18 08:07:20.078153"]]
4262
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4263
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4264
+  (0.4ms) rollback transaction
4265
+  (0.0ms) begin transaction
4266
+  (0.0ms) SAVEPOINT active_record_1
4267
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.080638"], ["updated_at", "2017-09-18 08:07:20.080638"]]
4268
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4269
+  (0.0ms) SAVEPOINT active_record_1
4270
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.081727"], ["ends_at", "2017-09-18 08:07:20.081727"], ["average_time", "2017-09-18 08:07:20.081727"]]
4271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4272
+  (0.0ms) SAVEPOINT active_record_1
4273
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.082705"], ["ends_at", "2017-09-18 08:07:20.082705"], ["average_time", "2017-09-18 08:07:20.082705"]]
4274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4275
+  (0.0ms) SAVEPOINT active_record_1
4276
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.083466"], ["updated_at", "2017-09-18 08:07:20.083466"]]
4277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4278
+  (0.0ms) SAVEPOINT active_record_1
4279
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.084247"], ["ends_at", "2017-09-18 08:07:20.084247"], ["average_time", "2017-09-18 08:07:20.084247"]]
4280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4281
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4282
+  (0.5ms) rollback transaction
4283
+  (0.0ms) begin transaction
4284
+  (0.0ms) SAVEPOINT active_record_1
4285
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.092980"], ["updated_at", "2017-09-18 08:07:20.092980"]]
4286
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4287
+  (0.0ms) SAVEPOINT active_record_1
4288
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.096253"], ["ends_at", "2017-09-18 08:07:20.096253"], ["average_time", "2017-09-18 08:07:20.096253"]]
4289
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4290
+  (0.0ms) SAVEPOINT active_record_1
4291
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.097379"], ["ends_at", "2017-09-18 08:07:20.097379"], ["average_time", "2017-09-18 08:07:20.097379"]]
4292
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4293
+  (0.0ms) SAVEPOINT active_record_1
4294
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.098260"], ["updated_at", "2017-09-18 08:07:20.098260"]]
4295
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4296
+  (0.0ms) SAVEPOINT active_record_1
4297
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.099103"], ["ends_at", "2017-09-18 08:07:20.099103"], ["average_time", "2017-09-18 08:07:20.099103"]]
4298
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4299
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4300
+  (0.4ms) rollback transaction
4301
+  (0.0ms) begin transaction
4302
+  (0.0ms) SAVEPOINT active_record_1
4303
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.101981"], ["updated_at", "2017-09-18 08:07:20.101981"]]
4304
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4305
+  (0.0ms) SAVEPOINT active_record_1
4306
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.103500"], ["ends_at", "2017-09-18 08:07:20.103500"], ["average_time", "2017-09-18 08:07:20.103500"]]
4307
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4308
+  (0.0ms) SAVEPOINT active_record_1
4309
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.104849"], ["ends_at", "2017-09-18 08:07:20.104849"], ["average_time", "2017-09-18 08:07:20.104849"]]
4310
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4311
+  (0.0ms) SAVEPOINT active_record_1
4312
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.105851"], ["updated_at", "2017-09-18 08:07:20.105851"]]
4313
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4314
+  (0.0ms) SAVEPOINT active_record_1
4315
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.106688"], ["ends_at", "2017-09-18 08:07:20.106688"], ["average_time", "2017-09-18 08:07:20.106688"]]
4316
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4317
+  (0.0ms) SAVEPOINT active_record_1
4318
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:07:20.107572"], ["updated_at", "2017-09-18 08:07:20.107572"]]
4319
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4320
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4321
+  (0.5ms) rollback transaction
4322
+  (0.1ms) begin transaction
4323
+  (0.0ms) SAVEPOINT active_record_1
4324
+ SQL (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.110585"], ["updated_at", "2017-09-18 08:07:20.110585"]]
4325
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4326
+  (0.1ms) SAVEPOINT active_record_1
4327
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.113077"], ["ends_at", "2017-09-18 08:07:20.113077"], ["average_time", "2017-09-18 08:07:20.113077"]]
4328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4329
+  (0.0ms) SAVEPOINT active_record_1
4330
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.115140"], ["ends_at", "2017-09-18 08:07:20.115140"], ["average_time", "2017-09-18 08:07:20.115140"]]
4331
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4332
+  (0.1ms) SAVEPOINT active_record_1
4333
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.116819"], ["updated_at", "2017-09-18 08:07:20.116819"]]
4334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4335
+  (0.0ms) SAVEPOINT active_record_1
4336
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.118632"], ["ends_at", "2017-09-18 08:07:20.118632"], ["average_time", "2017-09-18 08:07:20.118632"]]
4337
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4338
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 [["punchable_type", "Article"]]
4339
+  (0.4ms) rollback transaction
4340
+  (0.1ms) begin transaction
4341
+  (0.0ms) SAVEPOINT active_record_1
4342
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.122401"], ["updated_at", "2017-09-18 08:07:20.122401"]]
4343
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4344
+  (0.0ms) SAVEPOINT active_record_1
4345
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.123574"], ["ends_at", "2017-09-18 08:07:20.123574"], ["average_time", "2017-09-18 08:07:20.123574"]]
4346
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4347
+  (0.0ms) SAVEPOINT active_record_1
4348
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.124636"], ["ends_at", "2017-09-18 08:07:20.124636"], ["average_time", "2017-09-18 08:07:20.124636"]]
4349
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4350
+  (0.0ms) SAVEPOINT active_record_1
4351
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.125484"], ["updated_at", "2017-09-18 08:07:20.125484"]]
4352
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4353
+  (0.0ms) SAVEPOINT active_record_1
4354
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.126346"], ["ends_at", "2017-09-18 08:07:20.126346"], ["average_time", "2017-09-18 08:07:20.126346"]]
4355
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4356
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1 [["punchable_type", "Article"]]
4357
+  (0.5ms) rollback transaction
4358
+  (0.0ms) begin transaction
4359
+  (0.0ms) SAVEPOINT active_record_1
4360
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.129279"], ["updated_at", "2017-09-18 08:07:20.129279"]]
4361
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4362
+  (0.0ms) SAVEPOINT active_record_1
4363
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.130485"], ["ends_at", "2017-09-18 08:07:20.130485"], ["average_time", "2017-09-18 08:07:20.130485"]]
4364
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4365
+  (0.0ms) SAVEPOINT active_record_1
4366
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.131507"], ["ends_at", "2017-09-18 08:07:20.131507"], ["average_time", "2017-09-18 08:07:20.131507"]]
4367
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4368
+  (0.0ms) SAVEPOINT active_record_1
4369
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.132552"], ["updated_at", "2017-09-18 08:07:20.132552"]]
4370
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4371
+  (0.0ms) SAVEPOINT active_record_1
4372
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.133522"], ["ends_at", "2017-09-18 08:07:20.133522"], ["average_time", "2017-09-18 08:07:20.133522"]]
4373
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4374
+ Article Load (0.3ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
4375
+  (0.6ms) rollback transaction
4376
+  (0.0ms) begin transaction
4377
+  (0.0ms) SAVEPOINT active_record_1
4378
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.136854"], ["updated_at", "2017-09-18 08:07:20.136854"]]
4379
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4380
+  (0.0ms) SAVEPOINT active_record_1
4381
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.138070"], ["ends_at", "2017-09-18 08:07:20.138070"], ["average_time", "2017-09-18 08:07:20.138070"]]
4382
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4383
+  (0.0ms) SAVEPOINT active_record_1
4384
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.139079"], ["ends_at", "2017-09-18 08:07:20.139079"], ["average_time", "2017-09-18 08:07:20.139079"]]
4385
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4386
+  (0.0ms) SAVEPOINT active_record_1
4387
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.139922"], ["updated_at", "2017-09-18 08:07:20.139922"]]
4388
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4389
+  (0.0ms) SAVEPOINT active_record_1
4390
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.140725"], ["ends_at", "2017-09-18 08:07:20.140725"], ["average_time", "2017-09-18 08:07:20.140725"]]
4391
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4392
+  (0.0ms) SAVEPOINT active_record_1
4393
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:07:20.141566"], ["updated_at", "2017-09-18 08:07:20.141566"]]
4394
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4395
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
4396
+  (0.4ms) rollback transaction
4397
+  (0.0ms) begin transaction
4398
+  (0.0ms) SAVEPOINT active_record_1
4399
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.143957"], ["updated_at", "2017-09-18 08:07:20.143957"]]
4400
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4401
+  (0.0ms) SAVEPOINT active_record_1
4402
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.145175"], ["ends_at", "2017-09-18 08:07:20.145175"], ["average_time", "2017-09-18 08:07:20.145175"]]
4403
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4404
+  (0.0ms) SAVEPOINT active_record_1
4405
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.146214"], ["ends_at", "2017-09-18 08:07:20.146214"], ["average_time", "2017-09-18 08:07:20.146214"]]
4406
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4407
+  (0.0ms) SAVEPOINT active_record_1
4408
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.147201"], ["updated_at", "2017-09-18 08:07:20.147201"]]
4409
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4410
+  (0.0ms) SAVEPOINT active_record_1
4411
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.148111"], ["ends_at", "2017-09-18 08:07:20.148111"], ["average_time", "2017-09-18 08:07:20.148111"]]
4412
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4413
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
4414
+  (0.3ms) rollback transaction
4415
+  (0.0ms) begin transaction
4416
+  (0.0ms) SAVEPOINT active_record_1
4417
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.150504"], ["updated_at", "2017-09-18 08:07:20.150504"]]
4418
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4419
+  (0.0ms) SAVEPOINT active_record_1
4420
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.151586"], ["ends_at", "2017-09-18 08:07:20.151586"], ["average_time", "2017-09-18 08:07:20.151586"]]
4421
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4422
+  (0.0ms) SAVEPOINT active_record_1
4423
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.152563"], ["ends_at", "2017-09-18 08:07:20.152563"], ["average_time", "2017-09-18 08:07:20.152563"]]
4424
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4425
+  (0.0ms) SAVEPOINT active_record_1
4426
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.153334"], ["updated_at", "2017-09-18 08:07:20.153334"]]
4427
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4428
+  (0.0ms) SAVEPOINT active_record_1
4429
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.154119"], ["ends_at", "2017-09-18 08:07:20.154119"], ["average_time", "2017-09-18 08:07:20.154119"]]
4430
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4431
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1
4432
+  (0.4ms) rollback transaction
4433
+  (0.1ms) begin transaction
4434
+  (0.0ms) SAVEPOINT active_record_1
4435
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:07:20.156754"], ["updated_at", "2017-09-18 08:07:20.156754"]]
4436
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4437
+  (0.0ms) SAVEPOINT active_record_1
4438
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.157857"], ["ends_at", "2017-09-18 08:07:20.157857"], ["average_time", "2017-09-18 08:07:20.157857"]]
4439
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4440
+  (0.0ms) SAVEPOINT active_record_1
4441
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.158831"], ["ends_at", "2017-09-18 08:07:20.158831"], ["average_time", "2017-09-18 08:07:20.158831"]]
4442
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4443
+  (0.0ms) SAVEPOINT active_record_1
4444
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:07:20.159755"], ["updated_at", "2017-09-18 08:07:20.159755"]]
4445
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4446
+  (0.1ms) SAVEPOINT active_record_1
4447
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:07:20.160643"], ["ends_at", "2017-09-18 08:07:20.160643"], ["average_time", "2017-09-18 08:07:20.160643"]]
4448
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4449
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1
4450
+  (0.4ms) rollback transaction
4451
+  (2.7ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime, "updated_at" datetime) 
4452
+  (1.1ms) CREATE TABLE "punches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "punchable_id" integer NOT NULL, "punchable_type" varchar(20) NOT NULL, "starts_at" datetime NOT NULL, "ends_at" datetime NOT NULL, "average_time" datetime NOT NULL, "hits" integer DEFAULT 1 NOT NULL)
4453
+  (0.2ms) select sqlite_version(*)
4454
+  (1.4ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")
4455
+  (0.2ms)  SELECT sql
4456
+ FROM sqlite_master
4457
+ WHERE name='index_punches_on_average_time' AND type='index'
4458
+ UNION ALL
4459
+ SELECT sql
4460
+ FROM sqlite_temp_master
4461
+ WHERE name='index_punches_on_average_time' AND type='index'
4462
+ 
4463
+  (0.5ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")
4464
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
4465
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4466
+  (0.0ms) begin transaction
4467
+  (0.0ms) SAVEPOINT active_record_1
4468
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:08:10.420786"], ["updated_at", "2017-09-18 08:08:10.420786"]]
4469
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4470
+  (1.9ms) rollback transaction
4471
+  (0.0ms) begin transaction
4472
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4473
+  (0.0ms) SAVEPOINT active_record_1
4474
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:08:10.427559"], ["updated_at", "2017-09-18 08:08:10.427559"]]
4475
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4476
+  (0.0ms) SAVEPOINT active_record_1
4477
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.433786"], ["ends_at", "2017-09-18 08:08:10.433786"], ["average_time", "2017-09-18 08:08:10.433786"]]
4478
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4479
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4480
+  (0.4ms) rollback transaction
4481
+  (0.0ms) begin transaction
4482
+  (0.1ms) SELECT COUNT(*) FROM "punches"
4483
+  (0.0ms) SAVEPOINT active_record_1
4484
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:08:10.436914"], ["updated_at", "2017-09-18 08:08:10.436914"]]
4485
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4486
+  (0.0ms) SAVEPOINT active_record_1
4487
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.438124"], ["ends_at", "2017-09-18 08:08:10.438124"], ["average_time", "2017-09-18 08:08:10.438124"]]
4488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4489
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4490
+  (0.4ms) rollback transaction
4491
+  (0.0ms) begin transaction
4492
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches"
4493
+  (0.0ms) SAVEPOINT active_record_1
4494
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:08:10.440748"], ["updated_at", "2017-09-18 08:08:10.440748"]]
4495
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4496
+  (0.0ms) SAVEPOINT active_record_1
4497
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:08:10.441862"], ["ends_at", "2017-09-18 08:08:10.441862"], ["average_time", "2017-09-18 08:08:10.441862"]]
4498
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4499
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches"
4500
+  (0.4ms) rollback transaction
4501
+  (0.0ms) begin transaction
4502
+  (0.0ms) rollback transaction
4503
+  (0.0ms) begin transaction
4504
+  (0.0ms) SAVEPOINT active_record_1
4505
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.446323"], ["updated_at", "2017-09-18 08:08:10.446323"]]
4506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4507
+  (0.4ms) rollback transaction
4508
+  (0.0ms) begin transaction
4509
+  (0.0ms) SAVEPOINT active_record_1
4510
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.448902"], ["updated_at", "2017-09-18 08:08:10.448902"]]
4511
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4512
+  (0.3ms) rollback transaction
4513
+  (0.0ms) begin transaction
4514
+  (0.0ms) SAVEPOINT active_record_1
4515
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.451345"], ["updated_at", "2017-09-18 08:08:10.451345"]]
4516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4517
+  (0.4ms) rollback transaction
4518
+  (0.0ms) begin transaction
4519
+  (0.0ms) SAVEPOINT active_record_1
4520
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.454292"], ["updated_at", "2017-09-18 08:08:10.454292"]]
4521
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4522
+  (0.5ms) rollback transaction
4523
+  (0.0ms) begin transaction
4524
+  (0.0ms) SAVEPOINT active_record_1
4525
+ SQL (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.457384"], ["updated_at", "2017-09-18 08:08:10.457384"]]
4526
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4527
+  (0.4ms) rollback transaction
4528
+  (0.1ms) begin transaction
4529
+  (0.0ms) SAVEPOINT active_record_1
4530
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.460375"], ["updated_at", "2017-09-18 08:08:10.460375"]]
4531
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4532
+  (0.4ms) rollback transaction
4533
+  (0.0ms) begin transaction
4534
+  (0.0ms) SAVEPOINT active_record_1
4535
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.463064"], ["updated_at", "2017-09-18 08:08:10.463064"]]
4536
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4537
+  (0.4ms) rollback transaction
4538
+  (0.0ms) begin transaction
4539
+  (0.0ms) SAVEPOINT active_record_1
4540
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.465767"], ["updated_at", "2017-09-18 08:08:10.465767"]]
4541
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4542
+  (0.4ms) rollback transaction
4543
+  (0.1ms) begin transaction
4544
+  (0.0ms) SAVEPOINT active_record_1
4545
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.468937"], ["updated_at", "2017-09-18 08:08:10.468937"]]
4546
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4547
+  (0.4ms) rollback transaction
4548
+  (0.0ms) begin transaction
4549
+  (0.0ms) SAVEPOINT active_record_1
4550
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.471396"], ["updated_at", "2017-09-18 08:08:10.471396"]]
4551
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4552
+  (0.4ms) rollback transaction
4553
+  (0.0ms) begin transaction
4554
+  (0.0ms) SAVEPOINT active_record_1
4555
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.474075"], ["updated_at", "2017-09-18 08:08:10.474075"]]
4556
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4557
+  (0.4ms) rollback transaction
4558
+  (0.1ms) begin transaction
4559
+  (0.2ms) SAVEPOINT active_record_1
4560
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.477661"], ["updated_at", "2017-09-18 08:08:10.477661"]]
4561
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4562
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4563
+  (0.4ms) rollback transaction
4564
+  (0.0ms) begin transaction
4565
+  (0.0ms) SAVEPOINT active_record_1
4566
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.487098"], ["updated_at", "2017-09-18 08:08:10.487098"]]
4567
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4568
+  (0.4ms) rollback transaction
4569
+  (0.0ms) begin transaction
4570
+  (0.0ms) SAVEPOINT active_record_1
4571
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.490218"], ["updated_at", "2017-09-18 08:08:10.490218"]]
4572
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4573
+  (0.5ms) rollback transaction
4574
+  (0.0ms) begin transaction
4575
+  (0.0ms) SAVEPOINT active_record_1
4576
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.493294"], ["updated_at", "2017-09-18 08:08:10.493294"]]
4577
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4578
+  (0.4ms) rollback transaction
4579
+  (0.0ms) begin transaction
4580
+  (0.0ms) SAVEPOINT active_record_1
4581
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.496046"], ["updated_at", "2017-09-18 08:08:10.496046"]]
4582
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4583
+  (0.4ms) rollback transaction
4584
+  (0.0ms) begin transaction
4585
+  (0.0ms) SAVEPOINT active_record_1
4586
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.498801"], ["updated_at", "2017-09-18 08:08:10.498801"]]
4587
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4588
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-01 00:00:00.000000' AND punches.ends_at <= '2017-09-30 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4589
+  (0.4ms) rollback transaction
4590
+  (0.0ms) begin transaction
4591
+  (0.0ms) SAVEPOINT active_record_1
4592
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.502435"], ["updated_at", "2017-09-18 08:08:10.502435"]]
4593
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4594
+  (0.5ms) rollback transaction
4595
+  (0.0ms) begin transaction
4596
+  (0.0ms) SAVEPOINT active_record_1
4597
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.505428"], ["updated_at", "2017-09-18 08:08:10.505428"]]
4598
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4599
+  (0.4ms) rollback transaction
4600
+  (0.0ms) begin transaction
4601
+  (0.0ms) SAVEPOINT active_record_1
4602
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.508670"], ["updated_at", "2017-09-18 08:08:10.508670"]]
4603
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4604
+  (0.3ms) rollback transaction
4605
+  (0.0ms) begin transaction
4606
+  (0.0ms) SAVEPOINT active_record_1
4607
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.511243"], ["updated_at", "2017-09-18 08:08:10.511243"]]
4608
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4609
+  (0.3ms) rollback transaction
4610
+  (0.0ms) begin transaction
4611
+  (0.0ms) SAVEPOINT active_record_1
4612
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.513892"], ["updated_at", "2017-09-18 08:08:10.513892"]]
4613
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4614
+ Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-01-01 00:00:00.000000' AND punches.ends_at <= '2017-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4615
+  (0.4ms) rollback transaction
4616
+  (0.0ms) begin transaction
4617
+  (0.0ms) SAVEPOINT active_record_1
4618
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.519828"], ["updated_at", "2017-09-18 08:08:10.519828"]]
4619
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4620
+  (0.0ms) SAVEPOINT active_record_1
4621
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.520950"], ["ends_at", "2017-09-18 08:08:10.520950"], ["average_time", "2017-09-18 08:08:10.520950"]]
4622
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4623
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4624
+  (0.0ms) SELECT COUNT(*) FROM "punches"
4625
+  (0.8ms) rollback transaction
4626
+  (0.0ms) begin transaction
4627
+  (0.0ms) SAVEPOINT active_record_1
4628
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.542112"], ["updated_at", "2017-09-18 08:08:10.542112"]]
4629
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4630
+  (0.1ms) SAVEPOINT active_record_1
4631
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4632
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4633
+  (0.0ms) SAVEPOINT active_record_1
4634
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4635
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4636
+  (0.0ms) SAVEPOINT active_record_1
4637
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4638
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4639
+  (0.0ms) SAVEPOINT active_record_1
4640
+ SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4641
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4642
+  (0.0ms) SAVEPOINT active_record_1
4643
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4644
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4645
+  (0.5ms) rollback transaction
4646
+  (0.0ms) begin transaction
4647
+  (0.0ms) SAVEPOINT active_record_1
4648
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.549725"], ["updated_at", "2017-09-18 08:08:10.549725"]]
4649
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4650
+  (0.0ms) SAVEPOINT active_record_1
4651
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4652
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4653
+  (0.0ms) SAVEPOINT active_record_1
4654
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4655
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4656
+  (0.0ms) SAVEPOINT active_record_1
4657
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4658
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4659
+  (0.0ms) SAVEPOINT active_record_1
4660
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4662
+  (0.0ms) SAVEPOINT active_record_1
4663
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4664
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4665
+  (0.4ms) rollback transaction
4666
+  (0.0ms) begin transaction
4667
+  (0.0ms) SAVEPOINT active_record_1
4668
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.556095"], ["updated_at", "2017-09-18 08:08:10.556095"]]
4669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4670
+  (0.0ms) SAVEPOINT active_record_1
4671
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4672
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4673
+  (0.0ms) SAVEPOINT active_record_1
4674
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4675
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4676
+  (0.0ms) SAVEPOINT active_record_1
4677
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4678
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4679
+  (0.0ms) SAVEPOINT active_record_1
4680
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4682
+  (0.0ms) SAVEPOINT active_record_1
4683
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4684
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4685
+  (0.4ms) rollback transaction
4686
+  (0.0ms) begin transaction
4687
+  (0.0ms) SAVEPOINT active_record_1
4688
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.562536"], ["updated_at", "2017-09-18 08:08:10.562536"]]
4689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4690
+  (0.0ms) SAVEPOINT active_record_1
4691
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4692
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4693
+  (0.0ms) SAVEPOINT active_record_1
4694
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4695
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4696
+  (0.0ms) SAVEPOINT active_record_1
4697
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4698
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4699
+  (0.0ms) SAVEPOINT active_record_1
4700
+ SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
4701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4702
+  (0.0ms) SAVEPOINT active_record_1
4703
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
4704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4705
+  (0.4ms) rollback transaction
4706
+  (0.1ms) begin transaction
4707
+  (0.0ms) SAVEPOINT active_record_1
4708
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.572119"], ["updated_at", "2017-09-18 08:08:10.572119"]]
4709
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4710
+  (0.0ms) SAVEPOINT active_record_1
4711
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4712
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4713
+  (0.0ms) SAVEPOINT active_record_1
4714
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4715
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4716
+  (0.0ms) SAVEPOINT active_record_1
4717
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4718
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4719
+ Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4720
+ Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4721
+  (0.4ms) rollback transaction
4722
+  (0.1ms) begin transaction
4723
+  (0.0ms) SAVEPOINT active_record_1
4724
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:08:10.581721"], ["updated_at", "2017-09-18 08:08:10.581721"]]
4725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4726
+  (0.0ms) SAVEPOINT active_record_1
4727
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
4728
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4729
+  (0.0ms) SAVEPOINT active_record_1
4730
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
4731
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4732
+  (0.0ms) SAVEPOINT active_record_1
4733
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
4734
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4735
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4736
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
4737
+  (0.4ms) rollback transaction
4738
+  (0.0ms) begin transaction
4739
+  (0.0ms) SAVEPOINT active_record_1
4740
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.588293"], ["updated_at", "2017-09-18 08:08:10.588293"]]
4741
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4742
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4743
+  (0.4ms) rollback transaction
4744
+  (0.0ms) begin transaction
4745
+  (0.0ms) SAVEPOINT active_record_1
4746
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.591101"], ["updated_at", "2017-09-18 08:08:10.591101"]]
4747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4748
+  (0.0ms) SAVEPOINT active_record_1
4749
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.592154"], ["ends_at", "2017-09-18 08:08:10.592154"], ["average_time", "2017-09-18 08:08:10.592154"]]
4750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4751
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4752
+  (0.5ms) rollback transaction
4753
+  (0.0ms) begin transaction
4754
+  (0.0ms) SAVEPOINT active_record_1
4755
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.595188"], ["updated_at", "2017-09-18 08:08:10.595188"]]
4756
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4757
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4758
+  (0.0ms) SAVEPOINT active_record_1
4759
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.596819"], ["ends_at", "2017-09-18 08:08:10.596819"], ["average_time", "2017-09-18 08:08:10.596819"]]
4760
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4761
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4762
+  (0.4ms) rollback transaction
4763
+  (0.0ms) begin transaction
4764
+  (0.0ms) SAVEPOINT active_record_1
4765
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.599130"], ["updated_at", "2017-09-18 08:08:10.599130"]]
4766
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4767
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4768
+  (0.0ms) SAVEPOINT active_record_1
4769
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:08:10.600748"], ["ends_at", "2017-09-18 08:08:10.600748"], ["average_time", "2017-09-18 08:08:10.600748"]]
4770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4771
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
4772
+  (0.4ms) rollback transaction
4773
+  (0.0ms) begin transaction
4774
+  (0.0ms) SAVEPOINT active_record_1
4775
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.603358"], ["updated_at", "2017-09-18 08:08:10.603358"]]
4776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4777
+  (0.0ms) SAVEPOINT active_record_1
4778
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.604425"], ["ends_at", "2017-09-18 08:08:10.604425"], ["average_time", "2017-09-18 08:08:10.604425"]]
4779
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4780
+  (0.0ms) SAVEPOINT active_record_1
4781
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.605588"], ["ends_at", "2017-09-18 08:08:10.605588"], ["average_time", "2017-09-18 08:08:10.605588"]]
4782
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4783
+  (0.0ms) SAVEPOINT active_record_1
4784
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.606421"], ["updated_at", "2017-09-18 08:08:10.606421"]]
4785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4786
+  (0.0ms) SAVEPOINT active_record_1
4787
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.607212"], ["ends_at", "2017-09-18 08:08:10.607212"], ["average_time", "2017-09-18 08:08:10.607212"]]
4788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4789
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4790
+  (0.4ms) rollback transaction
4791
+  (0.0ms) begin transaction
4792
+  (0.0ms) SAVEPOINT active_record_1
4793
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.613292"], ["updated_at", "2017-09-18 08:08:10.613292"]]
4794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4795
+  (0.0ms) SAVEPOINT active_record_1
4796
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.614412"], ["ends_at", "2017-09-18 08:08:10.614412"], ["average_time", "2017-09-18 08:08:10.614412"]]
4797
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4798
+  (0.0ms) SAVEPOINT active_record_1
4799
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.615383"], ["ends_at", "2017-09-18 08:08:10.615383"], ["average_time", "2017-09-18 08:08:10.615383"]]
4800
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4801
+  (0.0ms) SAVEPOINT active_record_1
4802
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.616179"], ["updated_at", "2017-09-18 08:08:10.616179"]]
4803
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4804
+  (0.0ms) SAVEPOINT active_record_1
4805
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.617019"], ["ends_at", "2017-09-18 08:08:10.617019"], ["average_time", "2017-09-18 08:08:10.617019"]]
4806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4807
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4808
+  (0.4ms) rollback transaction
4809
+  (0.0ms) begin transaction
4810
+  (0.0ms) SAVEPOINT active_record_1
4811
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.620148"], ["updated_at", "2017-09-18 08:08:10.620148"]]
4812
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4813
+  (0.0ms) SAVEPOINT active_record_1
4814
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.621300"], ["ends_at", "2017-09-18 08:08:10.621300"], ["average_time", "2017-09-18 08:08:10.621300"]]
4815
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4816
+  (0.0ms) SAVEPOINT active_record_1
4817
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.622281"], ["ends_at", "2017-09-18 08:08:10.622281"], ["average_time", "2017-09-18 08:08:10.622281"]]
4818
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4819
+  (0.0ms) SAVEPOINT active_record_1
4820
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.623386"], ["updated_at", "2017-09-18 08:08:10.623386"]]
4821
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4822
+  (0.0ms) SAVEPOINT active_record_1
4823
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.624248"], ["ends_at", "2017-09-18 08:08:10.624248"], ["average_time", "2017-09-18 08:08:10.624248"]]
4824
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4825
+  (0.0ms) SAVEPOINT active_record_1
4826
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:08:10.625162"], ["updated_at", "2017-09-18 08:08:10.625162"]]
4827
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4828
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4829
+  (0.6ms) rollback transaction
4830
+  (0.0ms) begin transaction
4831
+  (0.0ms) SAVEPOINT active_record_1
4832
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.628198"], ["updated_at", "2017-09-18 08:08:10.628198"]]
4833
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4834
+  (0.0ms) SAVEPOINT active_record_1
4835
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.629380"], ["ends_at", "2017-09-18 08:08:10.629380"], ["average_time", "2017-09-18 08:08:10.629380"]]
4836
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4837
+  (0.0ms) SAVEPOINT active_record_1
4838
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.630483"], ["ends_at", "2017-09-18 08:08:10.630483"], ["average_time", "2017-09-18 08:08:10.630483"]]
4839
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4840
+  (0.0ms) SAVEPOINT active_record_1
4841
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.631393"], ["updated_at", "2017-09-18 08:08:10.631393"]]
4842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4843
+  (0.0ms) SAVEPOINT active_record_1
4844
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.632326"], ["ends_at", "2017-09-18 08:08:10.632326"], ["average_time", "2017-09-18 08:08:10.632326"]]
4845
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4846
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 [["punchable_type", "Article"]]
4847
+  (0.4ms) rollback transaction
4848
+  (0.0ms) begin transaction
4849
+  (0.0ms) SAVEPOINT active_record_1
4850
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.636224"], ["updated_at", "2017-09-18 08:08:10.636224"]]
4851
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4852
+  (0.0ms) SAVEPOINT active_record_1
4853
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.637382"], ["ends_at", "2017-09-18 08:08:10.637382"], ["average_time", "2017-09-18 08:08:10.637382"]]
4854
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4855
+  (0.0ms) SAVEPOINT active_record_1
4856
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.638700"], ["ends_at", "2017-09-18 08:08:10.638700"], ["average_time", "2017-09-18 08:08:10.638700"]]
4857
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4858
+  (0.0ms) SAVEPOINT active_record_1
4859
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.639880"], ["updated_at", "2017-09-18 08:08:10.639880"]]
4860
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4861
+  (0.0ms) SAVEPOINT active_record_1
4862
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.640877"], ["ends_at", "2017-09-18 08:08:10.640877"], ["average_time", "2017-09-18 08:08:10.640877"]]
4863
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4864
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1 [["punchable_type", "Article"]]
4865
+  (0.5ms) rollback transaction
4866
+  (0.0ms) begin transaction
4867
+  (0.0ms) SAVEPOINT active_record_1
4868
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.643883"], ["updated_at", "2017-09-18 08:08:10.643883"]]
4869
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4870
+  (0.0ms) SAVEPOINT active_record_1
4871
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.645109"], ["ends_at", "2017-09-18 08:08:10.645109"], ["average_time", "2017-09-18 08:08:10.645109"]]
4872
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4873
+  (0.0ms) SAVEPOINT active_record_1
4874
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.646206"], ["ends_at", "2017-09-18 08:08:10.646206"], ["average_time", "2017-09-18 08:08:10.646206"]]
4875
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4876
+  (0.0ms) SAVEPOINT active_record_1
4877
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.647092"], ["updated_at", "2017-09-18 08:08:10.647092"]]
4878
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4879
+  (0.0ms) SAVEPOINT active_record_1
4880
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.647960"], ["ends_at", "2017-09-18 08:08:10.647960"], ["average_time", "2017-09-18 08:08:10.647960"]]
4881
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4882
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
4883
+  (0.4ms) rollback transaction
4884
+  (0.0ms) begin transaction
4885
+  (0.0ms) SAVEPOINT active_record_1
4886
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.650703"], ["updated_at", "2017-09-18 08:08:10.650703"]]
4887
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4888
+  (0.0ms) SAVEPOINT active_record_1
4889
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.651890"], ["ends_at", "2017-09-18 08:08:10.651890"], ["average_time", "2017-09-18 08:08:10.651890"]]
4890
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4891
+  (0.0ms) SAVEPOINT active_record_1
4892
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.652954"], ["ends_at", "2017-09-18 08:08:10.652954"], ["average_time", "2017-09-18 08:08:10.652954"]]
4893
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4894
+  (0.0ms) SAVEPOINT active_record_1
4895
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.653970"], ["updated_at", "2017-09-18 08:08:10.653970"]]
4896
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4897
+  (0.0ms) SAVEPOINT active_record_1
4898
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.654968"], ["ends_at", "2017-09-18 08:08:10.654968"], ["average_time", "2017-09-18 08:08:10.654968"]]
4899
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4900
+  (0.0ms) SAVEPOINT active_record_1
4901
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:08:10.655898"], ["updated_at", "2017-09-18 08:08:10.655898"]]
4902
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4903
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
4904
+  (0.4ms) rollback transaction
4905
+  (0.0ms) begin transaction
4906
+  (0.0ms) SAVEPOINT active_record_1
4907
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.658400"], ["updated_at", "2017-09-18 08:08:10.658400"]]
4908
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4909
+  (0.0ms) SAVEPOINT active_record_1
4910
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.659465"], ["ends_at", "2017-09-18 08:08:10.659465"], ["average_time", "2017-09-18 08:08:10.659465"]]
4911
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4912
+  (0.0ms) SAVEPOINT active_record_1
4913
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.660424"], ["ends_at", "2017-09-18 08:08:10.660424"], ["average_time", "2017-09-18 08:08:10.660424"]]
4914
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4915
+  (0.0ms) SAVEPOINT active_record_1
4916
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.661214"], ["updated_at", "2017-09-18 08:08:10.661214"]]
4917
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4918
+  (0.0ms) SAVEPOINT active_record_1
4919
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.661992"], ["ends_at", "2017-09-18 08:08:10.661992"], ["average_time", "2017-09-18 08:08:10.661992"]]
4920
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4921
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
4922
+  (0.4ms) rollback transaction
4923
+  (0.1ms) begin transaction
4924
+  (0.0ms) SAVEPOINT active_record_1
4925
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.664988"], ["updated_at", "2017-09-18 08:08:10.664988"]]
4926
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4927
+  (0.0ms) SAVEPOINT active_record_1
4928
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.666805"], ["ends_at", "2017-09-18 08:08:10.666805"], ["average_time", "2017-09-18 08:08:10.666805"]]
4929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4930
+  (0.0ms) SAVEPOINT active_record_1
4931
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.668531"], ["ends_at", "2017-09-18 08:08:10.668531"], ["average_time", "2017-09-18 08:08:10.668531"]]
4932
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4933
+  (0.0ms) SAVEPOINT active_record_1
4934
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.669541"], ["updated_at", "2017-09-18 08:08:10.669541"]]
4935
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4936
+  (0.0ms) SAVEPOINT active_record_1
4937
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.670451"], ["ends_at", "2017-09-18 08:08:10.670451"], ["average_time", "2017-09-18 08:08:10.670451"]]
4938
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4939
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1
4940
+  (0.5ms) rollback transaction
4941
+  (0.0ms) begin transaction
4942
+  (0.0ms) SAVEPOINT active_record_1
4943
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:08:10.673337"], ["updated_at", "2017-09-18 08:08:10.673337"]]
4944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4945
+  (0.0ms) SAVEPOINT active_record_1
4946
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.674543"], ["ends_at", "2017-09-18 08:08:10.674543"], ["average_time", "2017-09-18 08:08:10.674543"]]
4947
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4948
+  (0.0ms) SAVEPOINT active_record_1
4949
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.675591"], ["ends_at", "2017-09-18 08:08:10.675591"], ["average_time", "2017-09-18 08:08:10.675591"]]
4950
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4951
+  (0.0ms) SAVEPOINT active_record_1
4952
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:08:10.676978"], ["updated_at", "2017-09-18 08:08:10.676978"]]
4953
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4954
+  (0.0ms) SAVEPOINT active_record_1
4955
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:08:10.677942"], ["ends_at", "2017-09-18 08:08:10.677942"], ["average_time", "2017-09-18 08:08:10.677942"]]
4956
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4957
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1
4958
+  (0.4ms) rollback transaction
4959
+  (2.5ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime, "updated_at" datetime) 
4960
+  (1.0ms) CREATE TABLE "punches" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "punchable_id" integer NOT NULL, "punchable_type" varchar(20) NOT NULL, "starts_at" datetime NOT NULL, "ends_at" datetime NOT NULL, "average_time" datetime NOT NULL, "hits" integer DEFAULT 1 NOT NULL)
4961
+  (0.1ms) select sqlite_version(*)
4962
+  (1.3ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")
4963
+  (0.1ms)  SELECT sql
4964
+ FROM sqlite_master
4965
+ WHERE name='index_punches_on_average_time' AND type='index'
4966
+ UNION ALL
4967
+ SELECT sql
4968
+ FROM sqlite_temp_master
4969
+ WHERE name='index_punches_on_average_time' AND type='index'
4970
+ 
4971
+  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")
4972
+  (0.7ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL) 
4973
+  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
4974
+  (0.0ms) begin transaction
4975
+  (0.0ms) SAVEPOINT active_record_1
4976
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.029567"], ["updated_at", "2017-09-18 08:14:42.029567"]]
4977
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4978
+  (0.0ms) SAVEPOINT active_record_1
4979
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.035758"], ["ends_at", "2017-09-18 08:14:42.035758"], ["average_time", "2017-09-18 08:14:42.035758"]]
4980
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4981
+  (0.0ms) SAVEPOINT active_record_1
4982
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.036909"], ["updated_at", "2017-09-18 08:14:42.036909"]]
4983
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4984
+  (0.0ms) SAVEPOINT active_record_1
4985
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.037786"], ["ends_at", "2017-09-18 08:14:42.037786"], ["average_time", "2017-09-18 08:14:42.037786"]]
4986
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4987
+  (0.0ms) SAVEPOINT active_record_1
4988
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.038744"], ["ends_at", "2017-09-18 08:14:42.038744"], ["average_time", "2017-09-18 08:14:42.038744"]]
4989
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4990
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
4991
+  (1.9ms) rollback transaction
4992
+  (0.0ms) begin transaction
4993
+  (0.0ms) SAVEPOINT active_record_1
4994
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.048547"], ["updated_at", "2017-09-18 08:14:42.048547"]]
4995
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4996
+  (0.0ms) SAVEPOINT active_record_1
4997
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.050142"], ["ends_at", "2017-09-18 08:14:42.050142"], ["average_time", "2017-09-18 08:14:42.050142"]]
4998
+  (0.0ms) RELEASE SAVEPOINT active_record_1
4999
+  (0.0ms) SAVEPOINT active_record_1
5000
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.051429"], ["updated_at", "2017-09-18 08:14:42.051429"]]
5001
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5002
+  (0.0ms) SAVEPOINT active_record_1
5003
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.054825"], ["ends_at", "2017-09-18 08:14:42.054825"], ["average_time", "2017-09-18 08:14:42.054825"]]
5004
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5005
+  (0.0ms) SAVEPOINT active_record_1
5006
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.055878"], ["ends_at", "2017-09-18 08:14:42.055878"], ["average_time", "2017-09-18 08:14:42.055878"]]
5007
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5008
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
5009
+  (0.5ms) rollback transaction
5010
+  (0.0ms) begin transaction
5011
+  (0.0ms) SAVEPOINT active_record_1
5012
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.058863"], ["updated_at", "2017-09-18 08:14:42.058863"]]
5013
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5014
+  (0.0ms) SAVEPOINT active_record_1
5015
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.060168"], ["ends_at", "2017-09-18 08:14:42.060168"], ["average_time", "2017-09-18 08:14:42.060168"]]
5016
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5017
+  (0.0ms) SAVEPOINT active_record_1
5018
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.061131"], ["updated_at", "2017-09-18 08:14:42.061131"]]
5019
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5020
+  (0.0ms) SAVEPOINT active_record_1
5021
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.062033"], ["ends_at", "2017-09-18 08:14:42.062033"], ["average_time", "2017-09-18 08:14:42.062033"]]
5022
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5023
+  (0.0ms) SAVEPOINT active_record_1
5024
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.063011"], ["ends_at", "2017-09-18 08:14:42.063011"], ["average_time", "2017-09-18 08:14:42.063011"]]
5025
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5026
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) ASC
5027
+  (0.4ms) rollback transaction
5028
+  (0.0ms) begin transaction
5029
+  (0.0ms) SAVEPOINT active_record_1
5030
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.065306"], ["updated_at", "2017-09-18 08:14:42.065306"]]
5031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5032
+  (0.4ms) rollback transaction
5033
+  (0.0ms) begin transaction
5034
+  (0.1ms) SELECT COUNT(*) FROM "punches"
5035
+  (0.0ms) SAVEPOINT active_record_1
5036
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.069677"], ["updated_at", "2017-09-18 08:14:42.069677"]]
5037
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5038
+  (0.0ms) SAVEPOINT active_record_1
5039
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.071574"], ["ends_at", "2017-09-18 08:14:42.071574"], ["average_time", "2017-09-18 08:14:42.071574"]]
5040
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5041
+  (0.1ms) SELECT COUNT(*) FROM "punches"
5042
+  (0.4ms) rollback transaction
5043
+  (0.0ms) begin transaction
5044
+  (0.1ms) SELECT COUNT(*) FROM "punches"
5045
+  (0.0ms) SAVEPOINT active_record_1
5046
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.074349"], ["updated_at", "2017-09-18 08:14:42.074349"]]
5047
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5048
+  (0.0ms) SAVEPOINT active_record_1
5049
+ SQL (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.076201"], ["ends_at", "2017-09-18 08:14:42.076201"], ["average_time", "2017-09-18 08:14:42.076201"]]
5050
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5051
+  (0.1ms) SELECT COUNT(*) FROM "punches"
5052
+  (0.3ms) rollback transaction
5053
+  (0.0ms) begin transaction
5054
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches"
5055
+  (0.0ms) SAVEPOINT active_record_1
5056
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2017-09-18 08:14:42.079744"], ["updated_at", "2017-09-18 08:14:42.079744"]]
5057
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5058
+  (0.0ms) SAVEPOINT active_record_1
5059
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:14:42.080919"], ["ends_at", "2017-09-18 08:14:42.080919"], ["average_time", "2017-09-18 08:14:42.080919"]]
5060
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5061
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches"
5062
+  (0.4ms) rollback transaction
5063
+  (0.0ms) begin transaction
5064
+  (0.0ms) rollback transaction
5065
+  (0.0ms) begin transaction
5066
+  (0.0ms) SAVEPOINT active_record_1
5067
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.085364"], ["updated_at", "2017-09-18 08:14:42.085364"]]
5068
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5069
+  (0.4ms) rollback transaction
5070
+  (0.0ms) begin transaction
5071
+  (0.0ms) SAVEPOINT active_record_1
5072
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.088036"], ["updated_at", "2017-09-18 08:14:42.088036"]]
5073
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5074
+  (0.4ms) rollback transaction
5075
+  (0.0ms) begin transaction
5076
+  (0.0ms) SAVEPOINT active_record_1
5077
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.090917"], ["updated_at", "2017-09-18 08:14:42.090917"]]
5078
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5079
+  (0.4ms) rollback transaction
5080
+  (0.0ms) begin transaction
5081
+  (0.0ms) SAVEPOINT active_record_1
5082
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.093891"], ["updated_at", "2017-09-18 08:14:42.093891"]]
5083
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5084
+  (0.4ms) rollback transaction
5085
+  (0.0ms) begin transaction
5086
+  (0.0ms) SAVEPOINT active_record_1
5087
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.096750"], ["updated_at", "2017-09-18 08:14:42.096750"]]
5088
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5089
+  (0.4ms) rollback transaction
5090
+  (0.0ms) begin transaction
5091
+  (0.0ms) SAVEPOINT active_record_1
5092
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.099573"], ["updated_at", "2017-09-18 08:14:42.099573"]]
5093
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5094
+  (0.4ms) rollback transaction
5095
+  (0.0ms) begin transaction
5096
+  (0.0ms) SAVEPOINT active_record_1
5097
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.102169"], ["updated_at", "2017-09-18 08:14:42.102169"]]
5098
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5099
+  (0.3ms) rollback transaction
5100
+  (0.0ms) begin transaction
5101
+  (0.0ms) SAVEPOINT active_record_1
5102
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.104692"], ["updated_at", "2017-09-18 08:14:42.104692"]]
5103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5104
+  (0.4ms) rollback transaction
5105
+  (0.0ms) begin transaction
5106
+  (0.0ms) SAVEPOINT active_record_1
5107
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.107676"], ["updated_at", "2017-09-18 08:14:42.107676"]]
5108
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5109
+  (0.4ms) rollback transaction
5110
+  (0.0ms) begin transaction
5111
+  (0.0ms) SAVEPOINT active_record_1
5112
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.110303"], ["updated_at", "2017-09-18 08:14:42.110303"]]
5113
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5114
+  (0.4ms) rollback transaction
5115
+  (0.1ms) begin transaction
5116
+  (0.0ms) SAVEPOINT active_record_1
5117
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.113380"], ["updated_at", "2017-09-18 08:14:42.113380"]]
5118
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5119
+  (0.4ms) rollback transaction
5120
+  (0.0ms) begin transaction
5121
+  (0.0ms) SAVEPOINT active_record_1
5122
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.116317"], ["updated_at", "2017-09-18 08:14:42.116317"]]
5123
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5124
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5125
+  (0.6ms) rollback transaction
5126
+  (0.0ms) begin transaction
5127
+  (0.0ms) SAVEPOINT active_record_1
5128
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.124938"], ["updated_at", "2017-09-18 08:14:42.124938"]]
5129
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5130
+  (0.4ms) rollback transaction
5131
+  (0.0ms) begin transaction
5132
+  (0.0ms) SAVEPOINT active_record_1
5133
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.127444"], ["updated_at", "2017-09-18 08:14:42.127444"]]
5134
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5135
+  (0.3ms) rollback transaction
5136
+  (0.0ms) begin transaction
5137
+  (0.0ms) SAVEPOINT active_record_1
5138
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.130187"], ["updated_at", "2017-09-18 08:14:42.130187"]]
5139
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5140
+  (0.4ms) rollback transaction
5141
+  (0.0ms) begin transaction
5142
+  (0.0ms) SAVEPOINT active_record_1
5143
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.132727"], ["updated_at", "2017-09-18 08:14:42.132727"]]
5144
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5145
+  (0.4ms) rollback transaction
5146
+  (0.0ms) begin transaction
5147
+  (0.0ms) SAVEPOINT active_record_1
5148
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.135484"], ["updated_at", "2017-09-18 08:14:42.135484"]]
5149
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5150
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-09-01 00:00:00.000000' AND punches.ends_at <= '2017-09-30 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5151
+  (0.4ms) rollback transaction
5152
+  (0.0ms) begin transaction
5153
+  (0.0ms) SAVEPOINT active_record_1
5154
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.139044"], ["updated_at", "2017-09-18 08:14:42.139044"]]
5155
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5156
+  (0.3ms) rollback transaction
5157
+  (0.0ms) begin transaction
5158
+  (0.0ms) SAVEPOINT active_record_1
5159
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.141824"], ["updated_at", "2017-09-18 08:14:42.141824"]]
5160
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5161
+  (0.4ms) rollback transaction
5162
+  (0.0ms) begin transaction
5163
+  (0.0ms) SAVEPOINT active_record_1
5164
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.144710"], ["updated_at", "2017-09-18 08:14:42.144710"]]
5165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5166
+  (0.4ms) rollback transaction
5167
+  (0.0ms) begin transaction
5168
+  (0.0ms) SAVEPOINT active_record_1
5169
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.147510"], ["updated_at", "2017-09-18 08:14:42.147510"]]
5170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5171
+  (0.4ms) rollback transaction
5172
+  (0.0ms) begin transaction
5173
+  (0.0ms) SAVEPOINT active_record_1
5174
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.150173"], ["updated_at", "2017-09-18 08:14:42.150173"]]
5175
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5176
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2017-01-01 00:00:00.000000' AND punches.ends_at <= '2017-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5177
+  (0.4ms) rollback transaction
5178
+  (0.0ms) begin transaction
5179
+  (0.0ms) SAVEPOINT active_record_1
5180
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.154203"], ["updated_at", "2017-09-18 08:14:42.154203"]]
5181
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5182
+  (0.0ms) SAVEPOINT active_record_1
5183
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.155266"], ["ends_at", "2017-09-18 08:14:42.155266"], ["average_time", "2017-09-18 08:14:42.155266"]]
5184
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5185
+  (0.0ms) SELECT COUNT(*) FROM "punches"
5186
+  (0.0ms) SELECT COUNT(*) FROM "punches"
5187
+  (0.6ms) rollback transaction
5188
+  (0.1ms) begin transaction
5189
+  (0.0ms) SAVEPOINT active_record_1
5190
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.177269"], ["updated_at", "2017-09-18 08:14:42.177269"]]
5191
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5192
+  (0.0ms) SAVEPOINT active_record_1
5193
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
5194
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5195
+  (0.0ms) SAVEPOINT active_record_1
5196
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
5197
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5198
+  (0.0ms) SAVEPOINT active_record_1
5199
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
5200
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5201
+  (0.0ms) SAVEPOINT active_record_1
5202
+ SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
5203
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5204
+  (0.0ms) SAVEPOINT active_record_1
5205
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
5206
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5207
+  (0.5ms) rollback transaction
5208
+  (0.0ms) begin transaction
5209
+  (0.0ms) SAVEPOINT active_record_1
5210
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.185176"], ["updated_at", "2017-09-18 08:14:42.185176"]]
5211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5212
+  (0.0ms) SAVEPOINT active_record_1
5213
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
5214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5215
+  (0.0ms) SAVEPOINT active_record_1
5216
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
5217
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5218
+  (0.0ms) SAVEPOINT active_record_1
5219
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
5220
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5221
+  (0.0ms) SAVEPOINT active_record_1
5222
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
5223
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5224
+  (0.0ms) SAVEPOINT active_record_1
5225
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
5226
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5227
+  (0.4ms) rollback transaction
5228
+  (0.0ms) begin transaction
5229
+  (0.0ms) SAVEPOINT active_record_1
5230
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.191427"], ["updated_at", "2017-09-18 08:14:42.191427"]]
5231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5232
+  (0.0ms) SAVEPOINT active_record_1
5233
+ SQL (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
5234
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5235
+  (0.0ms) SAVEPOINT active_record_1
5236
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
5237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5238
+  (0.0ms) SAVEPOINT active_record_1
5239
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
5240
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5241
+  (0.0ms) SAVEPOINT active_record_1
5242
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
5243
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5244
+  (0.0ms) SAVEPOINT active_record_1
5245
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
5246
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5247
+  (0.4ms) rollback transaction
5248
+  (0.0ms) begin transaction
5249
+  (0.0ms) SAVEPOINT active_record_1
5250
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.199098"], ["updated_at", "2017-09-18 08:14:42.199098"]]
5251
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5252
+  (0.0ms) SAVEPOINT active_record_1
5253
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
5254
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5255
+  (0.0ms) SAVEPOINT active_record_1
5256
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
5257
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5258
+  (0.0ms) SAVEPOINT active_record_1
5259
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
5260
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5261
+  (0.0ms) SAVEPOINT active_record_1
5262
+ SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:30:00.000000"], ["hits", 2], ["id", 1]]
5263
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5264
+  (0.0ms) SAVEPOINT active_record_1
5265
+ SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
5266
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5267
+  (0.5ms) rollback transaction
5268
+  (0.0ms) begin transaction
5269
+  (0.0ms) SAVEPOINT active_record_1
5270
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.205939"], ["updated_at", "2017-09-18 08:14:42.205939"]]
5271
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5272
+  (0.0ms) SAVEPOINT active_record_1
5273
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
5274
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5275
+  (0.0ms) SAVEPOINT active_record_1
5276
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
5277
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5278
+  (0.0ms) SAVEPOINT active_record_1
5279
+ SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
5280
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5281
+ Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5282
+ Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5283
+  (0.5ms) rollback transaction
5284
+  (0.0ms) begin transaction
5285
+  (0.0ms) SAVEPOINT active_record_1
5286
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2017-09-18 08:14:42.212979"], ["updated_at", "2017-09-18 08:14:42.212979"]]
5287
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5288
+  (0.0ms) SAVEPOINT active_record_1
5289
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-17 18:00:00.000000"], ["ends_at", "2017-09-17 18:00:00.000000"], ["average_time", "2017-09-17 18:00:00.000000"]]
5290
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5291
+  (0.0ms) SAVEPOINT active_record_1
5292
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-24 16:00:00.000000"], ["ends_at", "2017-09-24 16:00:00.000000"], ["average_time", "2017-09-24 16:00:00.000000"]]
5293
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5294
+  (0.1ms) SAVEPOINT active_record_1
5295
+ SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2017-09-17 17:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2017-09-17 17:00:00.000000"], ["average_time", "2017-09-17 17:00:00.000000"]]
5296
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5297
+ Punch Load (0.0ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5298
+ Punch Load (0.0ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2017-09-17 00:00:00.000000' AND punches.ends_at <= '2017-09-17 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]]
5299
+  (0.4ms) rollback transaction
5300
+  (0.0ms) begin transaction
5301
+  (0.0ms) SAVEPOINT active_record_1
5302
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.221353"], ["updated_at", "2017-09-18 08:14:42.221353"]]
5303
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5304
+  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
5305
+  (0.4ms) rollback transaction
5306
+  (0.0ms) begin transaction
5307
+  (0.0ms) SAVEPOINT active_record_1
5308
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.226515"], ["updated_at", "2017-09-18 08:14:42.226515"]]
5309
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5310
+  (0.0ms) SAVEPOINT active_record_1
5311
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.227799"], ["ends_at", "2017-09-18 08:14:42.227799"], ["average_time", "2017-09-18 08:14:42.227799"]]
5312
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5313
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
5314
+  (0.4ms) rollback transaction
5315
+  (0.1ms) begin transaction
5316
+  (0.0ms) SAVEPOINT active_record_1
5317
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.230915"], ["updated_at", "2017-09-18 08:14:42.230915"]]
5318
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5319
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
5320
+  (0.0ms) SAVEPOINT active_record_1
5321
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.232748"], ["ends_at", "2017-09-18 08:14:42.232748"], ["average_time", "2017-09-18 08:14:42.232748"]]
5322
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5323
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
5324
+  (0.4ms) rollback transaction
5325
+  (0.0ms) begin transaction
5326
+  (0.0ms) SAVEPOINT active_record_1
5327
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.235376"], ["updated_at", "2017-09-18 08:14:42.235376"]]
5328
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5329
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
5330
+  (0.0ms) SAVEPOINT active_record_1
5331
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "hits", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["hits", 2], ["starts_at", "2017-09-18 08:14:42.237204"], ["ends_at", "2017-09-18 08:14:42.237204"], ["average_time", "2017-09-18 08:14:42.237204"]]
5332
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5333
+  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
5334
+  (0.4ms) rollback transaction
5335
+  (0.0ms) begin transaction
5336
+  (0.0ms) SAVEPOINT active_record_1
5337
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.239782"], ["updated_at", "2017-09-18 08:14:42.239782"]]
5338
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5339
+  (0.0ms) SAVEPOINT active_record_1
5340
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.240965"], ["ends_at", "2017-09-18 08:14:42.240965"], ["average_time", "2017-09-18 08:14:42.240965"]]
5341
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5342
+  (0.0ms) SAVEPOINT active_record_1
5343
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.241965"], ["ends_at", "2017-09-18 08:14:42.241965"], ["average_time", "2017-09-18 08:14:42.241965"]]
5344
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5345
+  (0.0ms) SAVEPOINT active_record_1
5346
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.242987"], ["updated_at", "2017-09-18 08:14:42.242987"]]
5347
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5348
+  (0.0ms) SAVEPOINT active_record_1
5349
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.243922"], ["ends_at", "2017-09-18 08:14:42.243922"], ["average_time", "2017-09-18 08:14:42.243922"]]
5350
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5351
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
5352
+  (0.4ms) rollback transaction
5353
+  (0.0ms) begin transaction
5354
+  (0.0ms) SAVEPOINT active_record_1
5355
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.246767"], ["updated_at", "2017-09-18 08:14:42.246767"]]
5356
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5357
+  (0.0ms) SAVEPOINT active_record_1
5358
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.247941"], ["ends_at", "2017-09-18 08:14:42.247941"], ["average_time", "2017-09-18 08:14:42.247941"]]
5359
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5360
+  (0.0ms) SAVEPOINT active_record_1
5361
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.248950"], ["ends_at", "2017-09-18 08:14:42.248950"], ["average_time", "2017-09-18 08:14:42.248950"]]
5362
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5363
+  (0.0ms) SAVEPOINT active_record_1
5364
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.249788"], ["updated_at", "2017-09-18 08:14:42.249788"]]
5365
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5366
+  (0.0ms) SAVEPOINT active_record_1
5367
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.250576"], ["ends_at", "2017-09-18 08:14:42.250576"], ["average_time", "2017-09-18 08:14:42.250576"]]
5368
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5369
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
5370
+  (0.4ms) rollback transaction
5371
+  (0.0ms) begin transaction
5372
+  (0.1ms) SAVEPOINT active_record_1
5373
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.253353"], ["updated_at", "2017-09-18 08:14:42.253353"]]
5374
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5375
+  (0.0ms) SAVEPOINT active_record_1
5376
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.255156"], ["ends_at", "2017-09-18 08:14:42.255156"], ["average_time", "2017-09-18 08:14:42.255156"]]
5377
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5378
+  (0.0ms) SAVEPOINT active_record_1
5379
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.256444"], ["ends_at", "2017-09-18 08:14:42.256444"], ["average_time", "2017-09-18 08:14:42.256444"]]
5380
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5381
+  (0.0ms) SAVEPOINT active_record_1
5382
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.257861"], ["updated_at", "2017-09-18 08:14:42.257861"]]
5383
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5384
+  (0.0ms) SAVEPOINT active_record_1
5385
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.258805"], ["ends_at", "2017-09-18 08:14:42.258805"], ["average_time", "2017-09-18 08:14:42.258805"]]
5386
+  (0.1ms) RELEASE SAVEPOINT active_record_1
5387
+  (0.0ms) SAVEPOINT active_record_1
5388
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:14:42.259839"], ["updated_at", "2017-09-18 08:14:42.259839"]]
5389
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5390
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 [["punchable_type", "Article"]]
5391
+  (0.5ms) rollback transaction
5392
+  (0.0ms) begin transaction
5393
+  (0.0ms) SAVEPOINT active_record_1
5394
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.262486"], ["updated_at", "2017-09-18 08:14:42.262486"]]
5395
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5396
+  (0.0ms) SAVEPOINT active_record_1
5397
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.263643"], ["ends_at", "2017-09-18 08:14:42.263643"], ["average_time", "2017-09-18 08:14:42.263643"]]
5398
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5399
+  (0.0ms) SAVEPOINT active_record_1
5400
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.264700"], ["ends_at", "2017-09-18 08:14:42.264700"], ["average_time", "2017-09-18 08:14:42.264700"]]
5401
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5402
+  (0.0ms) SAVEPOINT active_record_1
5403
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.265565"], ["updated_at", "2017-09-18 08:14:42.265565"]]
5404
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5405
+  (0.0ms) SAVEPOINT active_record_1
5406
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.266438"], ["ends_at", "2017-09-18 08:14:42.266438"], ["average_time", "2017-09-18 08:14:42.266438"]]
5407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5408
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 [["punchable_type", "Article"]]
5409
+  (0.5ms) rollback transaction
5410
+  (0.0ms) begin transaction
5411
+  (0.0ms) SAVEPOINT active_record_1
5412
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.269704"], ["updated_at", "2017-09-18 08:14:42.269704"]]
5413
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5414
+  (0.0ms) SAVEPOINT active_record_1
5415
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.270918"], ["ends_at", "2017-09-18 08:14:42.270918"], ["average_time", "2017-09-18 08:14:42.270918"]]
5416
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5417
+  (0.0ms) SAVEPOINT active_record_1
5418
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.272197"], ["ends_at", "2017-09-18 08:14:42.272197"], ["average_time", "2017-09-18 08:14:42.272197"]]
5419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5420
+  (0.0ms) SAVEPOINT active_record_1
5421
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.273176"], ["updated_at", "2017-09-18 08:14:42.273176"]]
5422
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5423
+  (0.0ms) SAVEPOINT active_record_1
5424
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.274016"], ["ends_at", "2017-09-18 08:14:42.274016"], ["average_time", "2017-09-18 08:14:42.274016"]]
5425
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5426
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = ? GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1 [["punchable_type", "Article"]]
5427
+  (0.6ms) rollback transaction
5428
+  (0.0ms) begin transaction
5429
+  (0.0ms) SAVEPOINT active_record_1
5430
+ SQL (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.277566"], ["updated_at", "2017-09-18 08:14:42.277566"]]
5431
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5432
+  (0.0ms) SAVEPOINT active_record_1
5433
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.278679"], ["ends_at", "2017-09-18 08:14:42.278679"], ["average_time", "2017-09-18 08:14:42.278679"]]
5434
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5435
+  (0.0ms) SAVEPOINT active_record_1
5436
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.279632"], ["ends_at", "2017-09-18 08:14:42.279632"], ["average_time", "2017-09-18 08:14:42.279632"]]
5437
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5438
+  (0.0ms) SAVEPOINT active_record_1
5439
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.280423"], ["updated_at", "2017-09-18 08:14:42.280423"]]
5440
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5441
+  (0.0ms) SAVEPOINT active_record_1
5442
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.281231"], ["ends_at", "2017-09-18 08:14:42.281231"], ["average_time", "2017-09-18 08:14:42.281231"]]
5443
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5444
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
5445
+  (0.4ms) rollback transaction
5446
+  (0.0ms) begin transaction
5447
+  (0.0ms) SAVEPOINT active_record_1
5448
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.283938"], ["updated_at", "2017-09-18 08:14:42.283938"]]
5449
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5450
+  (0.0ms) SAVEPOINT active_record_1
5451
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.285158"], ["ends_at", "2017-09-18 08:14:42.285158"], ["average_time", "2017-09-18 08:14:42.285158"]]
5452
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5453
+  (0.0ms) SAVEPOINT active_record_1
5454
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.286122"], ["ends_at", "2017-09-18 08:14:42.286122"], ["average_time", "2017-09-18 08:14:42.286122"]]
5455
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5456
+  (0.0ms) SAVEPOINT active_record_1
5457
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.286923"], ["updated_at", "2017-09-18 08:14:42.286923"]]
5458
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5459
+  (0.0ms) SAVEPOINT active_record_1
5460
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.287978"], ["ends_at", "2017-09-18 08:14:42.287978"], ["average_time", "2017-09-18 08:14:42.287978"]]
5461
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5462
+  (0.0ms) SAVEPOINT active_record_1
5463
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2017-09-18 08:14:42.288918"], ["updated_at", "2017-09-18 08:14:42.288918"]]
5464
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5465
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
5466
+  (0.4ms) rollback transaction
5467
+  (0.0ms) begin transaction
5468
+  (0.0ms) SAVEPOINT active_record_1
5469
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.291326"], ["updated_at", "2017-09-18 08:14:42.291326"]]
5470
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5471
+  (0.0ms) SAVEPOINT active_record_1
5472
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.292467"], ["ends_at", "2017-09-18 08:14:42.292467"], ["average_time", "2017-09-18 08:14:42.292467"]]
5473
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5474
+  (0.0ms) SAVEPOINT active_record_1
5475
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.293452"], ["ends_at", "2017-09-18 08:14:42.293452"], ["average_time", "2017-09-18 08:14:42.293452"]]
5476
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5477
+  (0.0ms) SAVEPOINT active_record_1
5478
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.294263"], ["updated_at", "2017-09-18 08:14:42.294263"]]
5479
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5480
+  (0.0ms) SAVEPOINT active_record_1
5481
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.295104"], ["ends_at", "2017-09-18 08:14:42.295104"], ["average_time", "2017-09-18 08:14:42.295104"]]
5482
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5483
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC
5484
+  (0.5ms) rollback transaction
5485
+  (0.1ms) begin transaction
5486
+  (0.0ms) SAVEPOINT active_record_1
5487
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.299109"], ["updated_at", "2017-09-18 08:14:42.299109"]]
5488
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5489
+  (0.0ms) SAVEPOINT active_record_1
5490
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.301040"], ["ends_at", "2017-09-18 08:14:42.301040"], ["average_time", "2017-09-18 08:14:42.301040"]]
5491
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5492
+  (0.0ms) SAVEPOINT active_record_1
5493
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.302517"], ["ends_at", "2017-09-18 08:14:42.302517"], ["average_time", "2017-09-18 08:14:42.302517"]]
5494
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5495
+  (0.0ms) SAVEPOINT active_record_1
5496
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.303418"], ["updated_at", "2017-09-18 08:14:42.303418"]]
5497
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5498
+  (0.0ms) SAVEPOINT active_record_1
5499
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.304392"], ["ends_at", "2017-09-18 08:14:42.304392"], ["average_time", "2017-09-18 08:14:42.304392"]]
5500
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5501
+ Article Load (0.2ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1
5502
+  (0.3ms) rollback transaction
5503
+  (0.1ms) begin transaction
5504
+  (0.0ms) SAVEPOINT active_record_1
5505
+ SQL (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Lebowski"], ["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2017-09-18 08:14:42.307324"], ["updated_at", "2017-09-18 08:14:42.307324"]]
5506
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5507
+  (0.0ms) SAVEPOINT active_record_1
5508
+ SQL (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.308479"], ["ends_at", "2017-09-18 08:14:42.308479"], ["average_time", "2017-09-18 08:14:42.308479"]]
5509
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5510
+  (0.0ms) SAVEPOINT active_record_1
5511
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.309544"], ["ends_at", "2017-09-18 08:14:42.309544"], ["average_time", "2017-09-18 08:14:42.309544"]]
5512
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5513
+  (0.0ms) SAVEPOINT active_record_1
5514
+ SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bacon"], ["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2017-09-18 08:14:42.310411"], ["updated_at", "2017-09-18 08:14:42.310411"]]
5515
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5516
+  (0.0ms) SAVEPOINT active_record_1
5517
+ SQL (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2017-09-18 08:14:42.311275"], ["ends_at", "2017-09-18 08:14:42.311275"], ["average_time", "2017-09-18 08:14:42.311275"]]
5518
+  (0.0ms) RELEASE SAVEPOINT active_record_1
5519
+ Article Load (0.1ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1
5520
+  (0.5ms) rollback transaction