spec/internal/log/test.log in punching_bag-0.6.0 vs spec/internal/log/test.log in punching_bag-0.6.1

- old
+ new

@@ -5516,5 +5516,10715 @@  (0.0ms) SAVEPOINT active_record_1 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"]]  (0.0ms) RELEASE SAVEPOINT active_record_1 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  (0.5ms) rollback transaction +  (1.5ms) CREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime, "updated_at" datetime)  +  (6.5ms) 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) +  (0.1ms) select sqlite_version(*) +  (1.0ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.1ms)  SELECT sql + FROM sqlite_master + WHERE name='index_punches_on_average_time' AND type='index' + UNION ALL + SELECT sql + FROM sqlite_temp_master + WHERE name='index_punches_on_average_time' AND type='index' + +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)  +  (0.6ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version") +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:28:05.667334"], ["updated_at", "2019-05-19 22:28:05.667334"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.676837"], ["ends_at", "2019-05-19 22:28:05.676837"], ["average_time", "2019-05-19 22:28:05.676837"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.679554"], ["updated_at", "2019-05-19 22:28:05.679554"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.680602"], ["ends_at", "2019-05-19 22:28:05.680602"], ["average_time", "2019-05-19 22:28:05.680602"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.681586"], ["ends_at", "2019-05-19 22:28:05.681586"], ["average_time", "2019-05-19 22:28:05.681586"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:28:05.692711"], ["updated_at", "2019-05-19 22:28:05.692711"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.694158"], ["ends_at", "2019-05-19 22:28:05.694158"], ["average_time", "2019-05-19 22:28:05.694158"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.695139"], ["updated_at", "2019-05-19 22:28:05.695139"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.695938"], ["ends_at", "2019-05-19 22:28:05.695938"], ["average_time", "2019-05-19 22:28:05.695938"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.696766"], ["ends_at", "2019-05-19 22:28:05.696766"], ["average_time", "2019-05-19 22:28:05.696766"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.699522"], ["updated_at", "2019-05-19 22:28:05.699522"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.700825"], ["ends_at", "2019-05-19 22:28:05.700825"], ["average_time", "2019-05-19 22:28:05.700825"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.701794"], ["updated_at", "2019-05-19 22:28:05.701794"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.702804"], ["ends_at", "2019-05-19 22:28:05.702804"], ["average_time", "2019-05-19 22:28:05.702804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.704134"], ["ends_at", "2019-05-19 22:28:05.704134"], ["average_time", "2019-05-19 22:28:05.704134"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.706610"], ["updated_at", "2019-05-19 22:28:05.706610"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.6ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.712698"], ["updated_at", "2019-05-19 22:28:05.712698"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.714016"], ["ends_at", "2019-05-19 22:28:05.714016"], ["average_time", "2019-05-19 22:28:05.714016"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.717161"], ["updated_at", "2019-05-19 22:28:05.717161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.718298"], ["ends_at", "2019-05-19 22:28:05.718298"], ["average_time", "2019-05-19 22:28:05.718298"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.720914"], ["updated_at", "2019-05-19 22:28:05.720914"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.721978"], ["ends_at", "2019-05-19 22:28:05.721978"], ["average_time", "2019-05-19 22:28:05.721978"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (1.7ms) 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", "2019-05-19 22:28:05.726597"], ["updated_at", "2019-05-19 22:28:05.726597"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.735286"], ["updated_at", "2019-05-19 22:28:05.735286"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.738007"], ["updated_at", "2019-05-19 22:28:05.738007"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.6ms) 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", "2019-05-19 22:28:05.741018"], ["updated_at", "2019-05-19 22:28:05.741018"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.754921"], ["updated_at", "2019-05-19 22:28:05.754921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "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", "2019-05-19 22:28:05.757316"], ["updated_at", "2019-05-19 22:28:05.757316"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.8ms) 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", "2019-05-19 22:28:05.761734"], ["updated_at", "2019-05-19 22:28:05.761734"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "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", "2019-05-19 22:28:05.765059"], ["updated_at", "2019-05-19 22:28:05.765059"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.767468"], ["updated_at", "2019-05-19 22:28:05.767468"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.769726"], ["updated_at", "2019-05-19 22:28:05.769726"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.771958"], ["updated_at", "2019-05-19 22:28:05.771958"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.774177"], ["updated_at", "2019-05-19 22:28:05.774177"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00.000000' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.786129"], ["updated_at", "2019-05-19 22:28:05.786129"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.788310"], ["updated_at", "2019-05-19 22:28:05.788310"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "2019-05-19 22:28:05.791649"], ["updated_at", "2019-05-19 22:28:05.791649"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.796082"], ["updated_at", "2019-05-19 22:28:05.796082"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.799674"], ["updated_at", "2019-05-19 22:28:05.799674"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00.000000' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.802536"], ["updated_at", "2019-05-19 22:28:05.802536"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.804861"], ["updated_at", "2019-05-19 22:28:05.804861"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.807017"], ["updated_at", "2019-05-19 22:28:05.807017"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "2019-05-19 22:28:05.810826"], ["updated_at", "2019-05-19 22:28:05.810826"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.813980"], ["updated_at", "2019-05-19 22:28:05.813980"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00.000000' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.817757"], ["updated_at", "2019-05-19 22:28:05.817757"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.818658"], ["ends_at", "2019-05-19 22:28:05.818658"], ["average_time", "2019-05-19 22:28:05.818658"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.855161"], ["updated_at", "2019-05-19 22:28:05.855161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 09:00:00.000000"], ["ends_at", "2019-05-19 09:00:00.000000"], ["average_time", "2019-05-19 09:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-26 07:00:00.000000"], ["ends_at", "2019-05-26 07:00:00.000000"], ["average_time", "2019-05-26 07:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2019-05-19 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.863997"], ["updated_at", "2019-05-19 22:28:05.863997"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 09:00:00.000000"], ["ends_at", "2019-05-19 09:00:00.000000"], ["average_time", "2019-05-19 09:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-26 07:00:00.000000"], ["ends_at", "2019-05-26 07:00:00.000000"], ["average_time", "2019-05-26 07:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2019-05-19 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.871470"], ["updated_at", "2019-05-19 22:28:05.871470"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 09:00:00.000000"], ["ends_at", "2019-05-19 09:00:00.000000"], ["average_time", "2019-05-19 09:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-26 07:00:00.000000"], ["ends_at", "2019-05-26 07:00:00.000000"], ["average_time", "2019-05-26 07:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2019-05-19 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.879796"], ["updated_at", "2019-05-19 22:28:05.879796"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 09:00:00.000000"], ["ends_at", "2019-05-19 09:00:00.000000"], ["average_time", "2019-05-19 09:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-26 07:00:00.000000"], ["ends_at", "2019-05-26 07:00:00.000000"], ["average_time", "2019-05-26 07:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2019-05-19 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.886811"], ["updated_at", "2019-05-19 22:28:05.886811"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 09:00:00.000000"], ["ends_at", "2019-05-19 09:00:00.000000"], ["average_time", "2019-05-19 09:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-26 07:00:00.000000"], ["ends_at", "2019-05-26 07:00:00.000000"], ["average_time", "2019-05-26 07:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2019-05-19 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00.000000' AND punches.ends_at <= '2019-05-19 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"]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00.000000' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.4ms) 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", "2019-05-19 22:28:05.893437"], ["updated_at", "2019-05-19 22:28:05.893437"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 09:00:00.000000"], ["ends_at", "2019-05-19 09:00:00.000000"], ["average_time", "2019-05-19 09:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-26 07:00:00.000000"], ["ends_at", "2019-05-26 07:00:00.000000"], ["average_time", "2019-05-26 07:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "punches" ("starts_at", "punchable_id", "punchable_type", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["starts_at", "2019-05-19 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["ends_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:00:00.000000"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00.000000' AND punches.ends_at <= '2019-05-19 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"]] + Punch Load (0.0ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00.000000' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.901925"], ["updated_at", "2019-05-19 22:28:05.901925"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.904518"], ["updated_at", "2019-05-19 22:28:05.904518"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.905584"], ["ends_at", "2019-05-19 22:28:05.905584"], ["average_time", "2019-05-19 22:28:05.905584"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.908387"], ["updated_at", "2019-05-19 22:28:05.908387"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.916893"], ["ends_at", "2019-05-19 22:28:05.916893"], ["average_time", "2019-05-19 22:28:05.916893"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.919240"], ["updated_at", "2019-05-19 22:28:05.919240"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.921049"], ["ends_at", "2019-05-19 22:28:05.921049"], ["average_time", "2019-05-19 22:28:05.921049"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.923300"], ["updated_at", "2019-05-19 22:28:05.923300"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.924329"], ["ends_at", "2019-05-19 22:28:05.924329"], ["average_time", "2019-05-19 22:28:05.924329"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.926204"], ["ends_at", "2019-05-19 22:28:05.926204"], ["average_time", "2019-05-19 22:28:05.926204"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.927599"], ["updated_at", "2019-05-19 22:28:05.927599"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.929611"], ["ends_at", "2019-05-19 22:28:05.929611"], ["average_time", "2019-05-19 22:28:05.929611"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.933148"], ["updated_at", "2019-05-19 22:28:05.933148"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.934289"], ["ends_at", "2019-05-19 22:28:05.934289"], ["average_time", "2019-05-19 22:28:05.934289"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.935350"], ["ends_at", "2019-05-19 22:28:05.935350"], ["average_time", "2019-05-19 22:28:05.935350"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.936153"], ["updated_at", "2019-05-19 22:28:05.936153"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.936936"], ["ends_at", "2019-05-19 22:28:05.936936"], ["average_time", "2019-05-19 22:28:05.936936"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "2019-05-19 22:28:05.939376"], ["updated_at", "2019-05-19 22:28:05.939376"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.940542"], ["ends_at", "2019-05-19 22:28:05.940542"], ["average_time", "2019-05-19 22:28:05.940542"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.943469"], ["ends_at", "2019-05-19 22:28:05.943469"], ["average_time", "2019-05-19 22:28:05.943469"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.945372"], ["updated_at", "2019-05-19 22:28:05.945372"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.946845"], ["ends_at", "2019-05-19 22:28:05.946845"], ["average_time", "2019-05-19 22:28:05.946845"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:28:05.947675"], ["updated_at", "2019-05-19 22:28:05.947675"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.952250"], ["updated_at", "2019-05-19 22:28:05.952250"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.7ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:28:05.954601"], ["ends_at", "2019-05-19 22:28:05.954601"], ["average_time", "2019-05-19 22:28:05.954601"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.956251"], ["ends_at", "2019-05-19 22:28:05.956251"], ["average_time", "2019-05-19 22:28:05.956251"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.958701"], ["updated_at", "2019-05-19 22:28:05.958701"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.961526"], ["ends_at", "2019-05-19 22:28:05.961526"], ["average_time", "2019-05-19 22:28:05.961526"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.967096"], ["updated_at", "2019-05-19 22:28:05.967096"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.968674"], ["ends_at", "2019-05-19 22:28:05.968674"], ["average_time", "2019-05-19 22:28:05.968674"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.970249"], ["ends_at", "2019-05-19 22:28:05.970249"], ["average_time", "2019-05-19 22:28:05.970249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.971662"], ["updated_at", "2019-05-19 22:28:05.971662"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.973041"], ["ends_at", "2019-05-19 22:28:05.973041"], ["average_time", "2019-05-19 22:28:05.973041"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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"]] +  (2.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "2019-05-19 22:28:05.980098"], ["updated_at", "2019-05-19 22:28:05.980098"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.982386"], ["ends_at", "2019-05-19 22:28:05.982386"], ["average_time", "2019-05-19 22:28:05.982386"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.985160"], ["ends_at", "2019-05-19 22:28:05.985160"], ["average_time", "2019-05-19 22:28:05.985160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.987274"], ["updated_at", "2019-05-19 22:28:05.987274"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.989040"], ["ends_at", "2019-05-19 22:28:05.989040"], ["average_time", "2019-05-19 22:28:05.989040"]] +  (1.3ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) 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", "2019-05-19 22:28:05.996649"], ["updated_at", "2019-05-19 22:28:05.996649"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:05.999035"], ["ends_at", "2019-05-19 22:28:05.999035"], ["average_time", "2019-05-19 22:28:05.999035"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.001187"], ["ends_at", "2019-05-19 22:28:06.001187"], ["average_time", "2019-05-19 22:28:06.001187"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.002215"], ["updated_at", "2019-05-19 22:28:06.002215"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.003400"], ["ends_at", "2019-05-19 22:28:06.003400"], ["average_time", "2019-05-19 22:28:06.003400"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:28:06.004412"], ["updated_at", "2019-05-19 22:28:06.004412"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.5ms) 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", "2019-05-19 22:28:06.017372"], ["updated_at", "2019-05-19 22:28:06.017372"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.018907"], ["ends_at", "2019-05-19 22:28:06.018907"], ["average_time", "2019-05-19 22:28:06.018907"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.019923"], ["ends_at", "2019-05-19 22:28:06.019923"], ["average_time", "2019-05-19 22:28:06.019923"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.020744"], ["updated_at", "2019-05-19 22:28:06.020744"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.021498"], ["ends_at", "2019-05-19 22:28:06.021498"], ["average_time", "2019-05-19 22:28:06.021498"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.023730"], ["updated_at", "2019-05-19 22:28:06.023730"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.024947"], ["ends_at", "2019-05-19 22:28:06.024947"], ["average_time", "2019-05-19 22:28:06.024947"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.026990"], ["ends_at", "2019-05-19 22:28:06.026990"], ["average_time", "2019-05-19 22:28:06.026990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.028268"], ["updated_at", "2019-05-19 22:28:06.028268"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.030743"], ["ends_at", "2019-05-19 22:28:06.030743"], ["average_time", "2019-05-19 22:28:06.030743"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.033712"], ["updated_at", "2019-05-19 22:28:06.033712"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.034886"], ["ends_at", "2019-05-19 22:28:06.034886"], ["average_time", "2019-05-19 22:28:06.034886"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.035883"], ["ends_at", "2019-05-19 22:28:06.035883"], ["average_time", "2019-05-19 22:28:06.035883"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.036662"], ["updated_at", "2019-05-19 22:28:06.036662"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + 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", "2019-05-19 22:28:06.037493"], ["ends_at", "2019-05-19 22:28:06.037493"], ["average_time", "2019-05-19 22:28:06.037493"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.8ms) SELECT sqlite_version(*) +  (1.5ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (1.3ms) 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) +  (1.1ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.3ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:41:17.357765"], ["updated_at", "2019-05-19 22:41:17.357765"]] +  (0.7ms) commit transaction +  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.589284"], ["updated_at", "2019-05-19 22:41:17.589284"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.598510"], ["ends_at", "2019-05-19 22:41:17.598510"], ["average_time", "2019-05-19 22:41:17.598510"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.599563"], ["updated_at", "2019-05-19 22:41:17.599563"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.600316"], ["ends_at", "2019-05-19 22:41:17.600316"], ["average_time", "2019-05-19 22:41:17.600316"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.601094"], ["ends_at", "2019-05-19 22:41:17.601094"], ["average_time", "2019-05-19 22:41:17.601094"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.608358"], ["updated_at", "2019-05-19 22:41:17.608358"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.609455"], ["ends_at", "2019-05-19 22:41:17.609455"], ["average_time", "2019-05-19 22:41:17.609455"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.610886"], ["updated_at", "2019-05-19 22:41:17.610886"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.8ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.612413"], ["ends_at", "2019-05-19 22:41:17.612413"], ["average_time", "2019-05-19 22:41:17.612413"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.613988"], ["ends_at", "2019-05-19 22:41:17.613988"], ["average_time", "2019-05-19 22:41:17.613988"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.619698"], ["updated_at", "2019-05-19 22:41:17.619698"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.622529"], ["ends_at", "2019-05-19 22:41:17.622529"], ["average_time", "2019-05-19 22:41:17.622529"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.626357"], ["updated_at", "2019-05-19 22:41:17.626357"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.628758"], ["ends_at", "2019-05-19 22:41:17.628758"], ["average_time", "2019-05-19 22:41:17.628758"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.631279"], ["ends_at", "2019-05-19 22:41:17.631279"], ["average_time", "2019-05-19 22:41:17.631279"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.638041"], ["updated_at", "2019-05-19 22:41:17.638041"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.649477"], ["updated_at", "2019-05-19 22:41:17.649477"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.651921"], ["ends_at", "2019-05-19 22:41:17.651921"], ["average_time", "2019-05-19 22:41:17.651921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.655728"], ["updated_at", "2019-05-19 22:41:17.655728"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.657266"], ["ends_at", "2019-05-19 22:41:17.657266"], ["average_time", "2019-05-19 22:41:17.657266"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:17.661175"], ["updated_at", "2019-05-19 22:41:17.661175"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.8ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.662862"], ["ends_at", "2019-05-19 22:41:17.662862"], ["average_time", "2019-05-19 22:41:17.662862"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.669803"], ["updated_at", "2019-05-19 22:41:17.669803"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.676421"], ["updated_at", "2019-05-19 22:41:17.676421"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.681508"], ["updated_at", "2019-05-19 22:41:17.681508"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.695122"], ["updated_at", "2019-05-19 22:41:17.695122"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.697587"], ["updated_at", "2019-05-19 22:41:17.697587"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.702959"], ["updated_at", "2019-05-19 22:41:17.702959"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.705265"], ["updated_at", "2019-05-19 22:41:17.705265"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.708014"], ["updated_at", "2019-05-19 22:41:17.708014"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.710614"], ["updated_at", "2019-05-19 22:41:17.710614"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.714977"], ["updated_at", "2019-05-19 22:41:17.714977"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.717413"], ["updated_at", "2019-05-19 22:41:17.717413"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.721249"], ["updated_at", "2019-05-19 22:41:17.721249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.735004"], ["updated_at", "2019-05-19 22:41:17.735004"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.738419"], ["updated_at", "2019-05-19 22:41:17.738419"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.741827"], ["updated_at", "2019-05-19 22:41:17.741827"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (2.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.3ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.747865"], ["updated_at", "2019-05-19 22:41:17.747865"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.750443"], ["updated_at", "2019-05-19 22:41:17.750443"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.753695"], ["updated_at", "2019-05-19 22:41:17.753695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.756109"], ["updated_at", "2019-05-19 22:41:17.756109"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.758330"], ["updated_at", "2019-05-19 22:41:17.758330"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (4.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.764719"], ["updated_at", "2019-05-19 22:41:17.764719"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.767664"], ["updated_at", "2019-05-19 22:41:17.767664"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.771474"], ["updated_at", "2019-05-19 22:41:17.771474"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.772874"], ["ends_at", "2019-05-19 22:41:17.772874"], ["average_time", "2019-05-19 22:41:17.772874"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.804538"], ["updated_at", "2019-05-19 22:41:17.804538"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.810598"], ["updated_at", "2019-05-19 22:41:17.810598"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.817883"], ["updated_at", "2019-05-19 22:41:17.817883"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.825643"], ["updated_at", "2019-05-19 22:41:17.825643"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.837920"], ["updated_at", "2019-05-19 22:41:17.837920"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.9ms) rollback transaction +  (0.4ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.848398"], ["updated_at", "2019-05-19 22:41:17.848398"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.854921"], ["updated_at", "2019-05-19 22:41:17.854921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.858055"], ["updated_at", "2019-05-19 22:41:17.858055"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.859626"], ["ends_at", "2019-05-19 22:41:17.859626"], ["average_time", "2019-05-19 22:41:17.859626"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:17.864020"], ["updated_at", "2019-05-19 22:41:17.864020"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.5ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.866261"], ["ends_at", "2019-05-19 22:41:17.866261"], ["average_time", "2019-05-19 22:41:17.866261"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.869270"], ["updated_at", "2019-05-19 22:41:17.869270"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.871594"], ["ends_at", "2019-05-19 22:41:17.871594"], ["average_time", "2019-05-19 22:41:17.871594"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.874974"], ["updated_at", "2019-05-19 22:41:17.874974"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.877877"], ["ends_at", "2019-05-19 22:41:17.877877"], ["average_time", "2019-05-19 22:41:17.877877"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.880349"], ["ends_at", "2019-05-19 22:41:17.880349"], ["average_time", "2019-05-19 22:41:17.880349"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.881800"], ["updated_at", "2019-05-19 22:41:17.881800"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.883072"], ["ends_at", "2019-05-19 22:41:17.883072"], ["average_time", "2019-05-19 22:41:17.883072"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.887960"], ["updated_at", "2019-05-19 22:41:17.887960"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.889479"], ["ends_at", "2019-05-19 22:41:17.889479"], ["average_time", "2019-05-19 22:41:17.889479"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.891953"], ["ends_at", "2019-05-19 22:41:17.891953"], ["average_time", "2019-05-19 22:41:17.891953"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.894742"], ["updated_at", "2019-05-19 22:41:17.894742"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.896651"], ["ends_at", "2019-05-19 22:41:17.896651"], ["average_time", "2019-05-19 22:41:17.896651"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.900467"], ["updated_at", "2019-05-19 22:41:17.900467"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.901617"], ["ends_at", "2019-05-19 22:41:17.901617"], ["average_time", "2019-05-19 22:41:17.901617"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.902619"], ["ends_at", "2019-05-19 22:41:17.902619"], ["average_time", "2019-05-19 22:41:17.902619"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.905896"], ["updated_at", "2019-05-19 22:41:17.905896"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.907074"], ["ends_at", "2019-05-19 22:41:17.907074"], ["average_time", "2019-05-19 22:41:17.907074"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:41:17.907905"], ["updated_at", "2019-05-19 22:41:17.907905"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.912110"], ["updated_at", "2019-05-19 22:41:17.912110"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.913963"], ["ends_at", "2019-05-19 22:41:17.913963"], ["average_time", "2019-05-19 22:41:17.913963"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.915142"], ["ends_at", "2019-05-19 22:41:17.915142"], ["average_time", "2019-05-19 22:41:17.915142"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.915876"], ["updated_at", "2019-05-19 22:41:17.915876"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.916660"], ["ends_at", "2019-05-19 22:41:17.916660"], ["average_time", "2019-05-19 22:41:17.916660"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.919638"], ["updated_at", "2019-05-19 22:41:17.919638"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.921105"], ["ends_at", "2019-05-19 22:41:17.921105"], ["average_time", "2019-05-19 22:41:17.921105"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.923011"], ["ends_at", "2019-05-19 22:41:17.923011"], ["average_time", "2019-05-19 22:41:17.923011"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.924298"], ["updated_at", "2019-05-19 22:41:17.924298"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.925413"], ["ends_at", "2019-05-19 22:41:17.925413"], ["average_time", "2019-05-19 22:41:17.925413"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.929682"], ["updated_at", "2019-05-19 22:41:17.929682"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.931277"], ["ends_at", "2019-05-19 22:41:17.931277"], ["average_time", "2019-05-19 22:41:17.931277"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.932989"], ["ends_at", "2019-05-19 22:41:17.932989"], ["average_time", "2019-05-19 22:41:17.932989"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.934261"], ["updated_at", "2019-05-19 22:41:17.934261"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.935306"], ["ends_at", "2019-05-19 22:41:17.935306"], ["average_time", "2019-05-19 22:41:17.935306"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.939561"], ["updated_at", "2019-05-19 22:41:17.939561"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.941253"], ["ends_at", "2019-05-19 22:41:17.941253"], ["average_time", "2019-05-19 22:41:17.941253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.942283"], ["ends_at", "2019-05-19 22:41:17.942283"], ["average_time", "2019-05-19 22:41:17.942283"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.943094"], ["updated_at", "2019-05-19 22:41:17.943094"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.943785"], ["ends_at", "2019-05-19 22:41:17.943785"], ["average_time", "2019-05-19 22:41:17.943785"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:41:17.952182"], ["updated_at", "2019-05-19 22:41:17.952182"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.954929"], ["updated_at", "2019-05-19 22:41:17.954929"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.955913"], ["ends_at", "2019-05-19 22:41:17.955913"], ["average_time", "2019-05-19 22:41:17.955913"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.956769"], ["ends_at", "2019-05-19 22:41:17.956769"], ["average_time", "2019-05-19 22:41:17.956769"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.957429"], ["updated_at", "2019-05-19 22:41:17.957429"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.958071"], ["ends_at", "2019-05-19 22:41:17.958071"], ["average_time", "2019-05-19 22:41:17.958071"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.960624"], ["updated_at", "2019-05-19 22:41:17.960624"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.961725"], ["ends_at", "2019-05-19 22:41:17.961725"], ["average_time", "2019-05-19 22:41:17.961725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.962995"], ["ends_at", "2019-05-19 22:41:17.962995"], ["average_time", "2019-05-19 22:41:17.962995"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.963873"], ["updated_at", "2019-05-19 22:41:17.963873"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.964658"], ["ends_at", "2019-05-19 22:41:17.964658"], ["average_time", "2019-05-19 22:41:17.964658"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:17.967978"], ["updated_at", "2019-05-19 22:41:17.967978"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.972033"], ["ends_at", "2019-05-19 22:41:17.972033"], ["average_time", "2019-05-19 22:41:17.972033"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.973567"], ["ends_at", "2019-05-19 22:41:17.973567"], ["average_time", "2019-05-19 22:41:17.973567"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:17.974791"], ["updated_at", "2019-05-19 22:41:17.974791"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:17.976121"], ["ends_at", "2019-05-19 22:41:17.976121"], ["average_time", "2019-05-19 22:41:17.976121"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.8ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (1.7ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (1.4ms) 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) +  (1.3ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.0ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:41:49.654440"], ["updated_at", "2019-05-19 22:41:49.654440"]] +  (0.8ms) commit transaction +  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.866603"], ["updated_at", "2019-05-19 22:41:49.866603"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.875375"], ["ends_at", "2019-05-19 22:41:49.875375"], ["average_time", "2019-05-19 22:41:49.875375"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.876881"], ["updated_at", "2019-05-19 22:41:49.876881"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.878368"], ["ends_at", "2019-05-19 22:41:49.878368"], ["average_time", "2019-05-19 22:41:49.878368"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.880264"], ["ends_at", "2019-05-19 22:41:49.880264"], ["average_time", "2019-05-19 22:41:49.880264"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.892132"], ["updated_at", "2019-05-19 22:41:49.892132"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.893387"], ["ends_at", "2019-05-19 22:41:49.893387"], ["average_time", "2019-05-19 22:41:49.893387"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.898053"], ["updated_at", "2019-05-19 22:41:49.898053"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.899434"], ["ends_at", "2019-05-19 22:41:49.899434"], ["average_time", "2019-05-19 22:41:49.899434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.7ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.900930"], ["ends_at", "2019-05-19 22:41:49.900930"], ["average_time", "2019-05-19 22:41:49.900930"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:49.905671"], ["updated_at", "2019-05-19 22:41:49.905671"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.907493"], ["ends_at", "2019-05-19 22:41:49.907493"], ["average_time", "2019-05-19 22:41:49.907493"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.909328"], ["updated_at", "2019-05-19 22:41:49.909328"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (1.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.911821"], ["ends_at", "2019-05-19 22:41:49.911821"], ["average_time", "2019-05-19 22:41:49.911821"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.914613"], ["ends_at", "2019-05-19 22:41:49.914613"], ["average_time", "2019-05-19 22:41:49.914613"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.920409"], ["updated_at", "2019-05-19 22:41:49.920409"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (1.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.933382"], ["updated_at", "2019-05-19 22:41:49.933382"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (1.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.936306"], ["ends_at", "2019-05-19 22:41:49.936306"], ["average_time", "2019-05-19 22:41:49.936306"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (2.2ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.947060"], ["updated_at", "2019-05-19 22:41:49.947060"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.949457"], ["ends_at", "2019-05-19 22:41:49.949457"], ["average_time", "2019-05-19 22:41:49.949457"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (2.4ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:41:49.955993"], ["updated_at", "2019-05-19 22:41:49.955993"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:49.957912"], ["ends_at", "2019-05-19 22:41:49.957912"], ["average_time", "2019-05-19 22:41:49.957912"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:49.967612"], ["updated_at", "2019-05-19 22:41:49.967612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:49.971392"], ["updated_at", "2019-05-19 22:41:49.971392"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:49.976339"], ["updated_at", "2019-05-19 22:41:49.976339"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:41:49.990462"], ["updated_at", "2019-05-19 22:41:49.990462"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:49.994807"], ["updated_at", "2019-05-19 22:41:49.994807"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:49.998264"], ["updated_at", "2019-05-19 22:41:49.998264"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.000581"], ["updated_at", "2019-05-19 22:41:50.000581"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.003264"], ["updated_at", "2019-05-19 22:41:50.003264"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.005365"], ["updated_at", "2019-05-19 22:41:50.005365"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:50.007455"], ["updated_at", "2019-05-19 22:41:50.007455"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:50.011704"], ["updated_at", "2019-05-19 22:41:50.011704"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.014937"], ["updated_at", "2019-05-19 22:41:50.014937"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.022002"], ["updated_at", "2019-05-19 22:41:50.022002"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:50.027038"], ["updated_at", "2019-05-19 22:41:50.027038"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:50.031055"], ["updated_at", "2019-05-19 22:41:50.031055"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.034735"], ["updated_at", "2019-05-19 22:41:50.034735"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.037931"], ["updated_at", "2019-05-19 22:41:50.037931"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:41:50.043415"], ["updated_at", "2019-05-19 22:41:50.043415"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.047766"], ["updated_at", "2019-05-19 22:41:50.047766"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.050133"], ["updated_at", "2019-05-19 22:41:50.050133"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.052278"], ["updated_at", "2019-05-19 22:41:50.052278"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.054473"], ["updated_at", "2019-05-19 22:41:50.054473"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.057454"], ["updated_at", "2019-05-19 22:41:50.057454"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.060210"], ["ends_at", "2019-05-19 22:41:50.060210"], ["average_time", "2019-05-19 22:41:50.060210"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:50.090376"], ["updated_at", "2019-05-19 22:41:50.090376"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.097796"], ["updated_at", "2019-05-19 22:41:50.097796"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.103692"], ["updated_at", "2019-05-19 22:41:50.103692"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.111291"], ["updated_at", "2019-05-19 22:41:50.111291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.118543"], ["updated_at", "2019-05-19 22:41:50.118543"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 22:41:50.126634"], ["updated_at", "2019-05-19 22:41:50.126634"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:41:50.137396"], ["updated_at", "2019-05-19 22:41:50.137396"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:41:50.141510"], ["updated_at", "2019-05-19 22:41:50.141510"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.143562"], ["ends_at", "2019-05-19 22:41:50.143562"], ["average_time", "2019-05-19 22:41:50.143562"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.146870"], ["updated_at", "2019-05-19 22:41:50.146870"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.149234"], ["ends_at", "2019-05-19 22:41:50.149234"], ["average_time", "2019-05-19 22:41:50.149234"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.151757"], ["updated_at", "2019-05-19 22:41:50.151757"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.153296"], ["ends_at", "2019-05-19 22:41:50.153296"], ["average_time", "2019-05-19 22:41:50.153296"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.155477"], ["updated_at", "2019-05-19 22:41:50.155477"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.156497"], ["ends_at", "2019-05-19 22:41:50.156497"], ["average_time", "2019-05-19 22:41:50.156497"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.158072"], ["ends_at", "2019-05-19 22:41:50.158072"], ["average_time", "2019-05-19 22:41:50.158072"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.159624"], ["updated_at", "2019-05-19 22:41:50.159624"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.160943"], ["ends_at", "2019-05-19 22:41:50.160943"], ["average_time", "2019-05-19 22:41:50.160943"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.164695"], ["updated_at", "2019-05-19 22:41:50.164695"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.165757"], ["ends_at", "2019-05-19 22:41:50.165757"], ["average_time", "2019-05-19 22:41:50.165757"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.166647"], ["ends_at", "2019-05-19 22:41:50.166647"], ["average_time", "2019-05-19 22:41:50.166647"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.167372"], ["updated_at", "2019-05-19 22:41:50.167372"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.168055"], ["ends_at", "2019-05-19 22:41:50.168055"], ["average_time", "2019-05-19 22:41:50.168055"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.170715"], ["updated_at", "2019-05-19 22:41:50.170715"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.171838"], ["ends_at", "2019-05-19 22:41:50.171838"], ["average_time", "2019-05-19 22:41:50.171838"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.173550"], ["ends_at", "2019-05-19 22:41:50.173550"], ["average_time", "2019-05-19 22:41:50.173550"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.175358"], ["updated_at", "2019-05-19 22:41:50.175358"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.178415"], ["ends_at", "2019-05-19 22:41:50.178415"], ["average_time", "2019-05-19 22:41:50.178415"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:41:50.180344"], ["updated_at", "2019-05-19 22:41:50.180344"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.184285"], ["updated_at", "2019-05-19 22:41:50.184285"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.185941"], ["ends_at", "2019-05-19 22:41:50.185941"], ["average_time", "2019-05-19 22:41:50.185941"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.187515"], ["ends_at", "2019-05-19 22:41:50.187515"], ["average_time", "2019-05-19 22:41:50.187515"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.191916"], ["updated_at", "2019-05-19 22:41:50.191916"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.192778"], ["ends_at", "2019-05-19 22:41:50.192778"], ["average_time", "2019-05-19 22:41:50.192778"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.196007"], ["updated_at", "2019-05-19 22:41:50.196007"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.197085"], ["ends_at", "2019-05-19 22:41:50.197085"], ["average_time", "2019-05-19 22:41:50.197085"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.198023"], ["ends_at", "2019-05-19 22:41:50.198023"], ["average_time", "2019-05-19 22:41:50.198023"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.198716"], ["updated_at", "2019-05-19 22:41:50.198716"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.199396"], ["ends_at", "2019-05-19 22:41:50.199396"], ["average_time", "2019-05-19 22:41:50.199396"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.202147"], ["updated_at", "2019-05-19 22:41:50.202147"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.203160"], ["ends_at", "2019-05-19 22:41:50.203160"], ["average_time", "2019-05-19 22:41:50.203160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.204036"], ["ends_at", "2019-05-19 22:41:50.204036"], ["average_time", "2019-05-19 22:41:50.204036"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.204763"], ["updated_at", "2019-05-19 22:41:50.204763"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.205520"], ["ends_at", "2019-05-19 22:41:50.205520"], ["average_time", "2019-05-19 22:41:50.205520"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:41:50.210000"], ["updated_at", "2019-05-19 22:41:50.210000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.213350"], ["ends_at", "2019-05-19 22:41:50.213350"], ["average_time", "2019-05-19 22:41:50.213350"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.214676"], ["ends_at", "2019-05-19 22:41:50.214676"], ["average_time", "2019-05-19 22:41:50.214676"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.215546"], ["updated_at", "2019-05-19 22:41:50.215546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (15.5ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.231979"], ["ends_at", "2019-05-19 22:41:50.231979"], ["average_time", "2019-05-19 22:41:50.231979"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:41:50.233491"], ["updated_at", "2019-05-19 22:41:50.233491"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.237103"], ["updated_at", "2019-05-19 22:41:50.237103"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.238731"], ["ends_at", "2019-05-19 22:41:50.238731"], ["average_time", "2019-05-19 22:41:50.238731"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.240264"], ["ends_at", "2019-05-19 22:41:50.240264"], ["average_time", "2019-05-19 22:41:50.240264"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.241451"], ["updated_at", "2019-05-19 22:41:50.241451"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.242160"], ["ends_at", "2019-05-19 22:41:50.242160"], ["average_time", "2019-05-19 22:41:50.242160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:41:50.244687"], ["updated_at", "2019-05-19 22:41:50.244687"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.245711"], ["ends_at", "2019-05-19 22:41:50.245711"], ["average_time", "2019-05-19 22:41:50.245711"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.246588"], ["ends_at", "2019-05-19 22:41:50.246588"], ["average_time", "2019-05-19 22:41:50.246588"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.247260"], ["updated_at", "2019-05-19 22:41:50.247260"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.247922"], ["ends_at", "2019-05-19 22:41:50.247922"], ["average_time", "2019-05-19 22:41:50.247922"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.250325"], ["updated_at", "2019-05-19 22:41:50.250325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.251307"], ["ends_at", "2019-05-19 22:41:50.251307"], ["average_time", "2019-05-19 22:41:50.251307"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.252170"], ["ends_at", "2019-05-19 22:41:50.252170"], ["average_time", "2019-05-19 22:41:50.252170"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:41:50.252831"], ["updated_at", "2019-05-19 22:41:50.252831"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:41:50.253474"], ["ends_at", "2019-05-19 22:41:50.253474"], ["average_time", "2019-05-19 22:41:50.253474"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (1.5ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (1.3ms) 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) +  (1.3ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.2ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:43:40.898858"], ["updated_at", "2019-05-19 22:43:40.898858"]] +  (0.6ms) commit transaction +  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.114148"], ["updated_at", "2019-05-19 22:43:41.114148"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.127414"], ["ends_at", "2019-05-19 22:43:41.127414"], ["average_time", "2019-05-19 22:43:41.127414"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.129326"], ["updated_at", "2019-05-19 22:43:41.129326"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.130731"], ["ends_at", "2019-05-19 22:43:41.130731"], ["average_time", "2019-05-19 22:43:41.130731"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.132247"], ["ends_at", "2019-05-19 22:43:41.132247"], ["average_time", "2019-05-19 22:43:41.132247"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.143151"], ["updated_at", "2019-05-19 22:43:41.143151"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.8ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.144366"], ["ends_at", "2019-05-19 22:43:41.144366"], ["average_time", "2019-05-19 22:43:41.144366"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.145960"], ["updated_at", "2019-05-19 22:43:41.145960"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.147503"], ["ends_at", "2019-05-19 22:43:41.147503"], ["average_time", "2019-05-19 22:43:41.147503"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.149670"], ["ends_at", "2019-05-19 22:43:41.149670"], ["average_time", "2019-05-19 22:43:41.149670"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.155103"], ["updated_at", "2019-05-19 22:43:41.155103"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.157363"], ["ends_at", "2019-05-19 22:43:41.157363"], ["average_time", "2019-05-19 22:43:41.157363"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.160149"], ["updated_at", "2019-05-19 22:43:41.160149"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.161466"], ["ends_at", "2019-05-19 22:43:41.161466"], ["average_time", "2019-05-19 22:43:41.161466"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.163766"], ["ends_at", "2019-05-19 22:43:41.163766"], ["average_time", "2019-05-19 22:43:41.163766"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 + 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) ASC +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.169416"], ["updated_at", "2019-05-19 22:43:41.169416"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (1.5ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (1.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.183503"], ["updated_at", "2019-05-19 22:43:41.183503"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.186463"], ["ends_at", "2019-05-19 22:43:41.186463"], ["average_time", "2019-05-19 22:43:41.186463"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.192207"], ["updated_at", "2019-05-19 22:43:41.192207"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.193533"], ["ends_at", "2019-05-19 22:43:41.193533"], ["average_time", "2019-05-19 22:43:41.193533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:43:41.198029"], ["updated_at", "2019-05-19 22:43:41.198029"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.199581"], ["ends_at", "2019-05-19 22:43:41.199581"], ["average_time", "2019-05-19 22:43:41.199581"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.205625"], ["updated_at", "2019-05-19 22:43:41.205625"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.209353"], ["updated_at", "2019-05-19 22:43:41.209353"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.213308"], ["updated_at", "2019-05-19 22:43:41.213308"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:43:41.230579"], ["updated_at", "2019-05-19 22:43:41.230579"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.234625"], ["updated_at", "2019-05-19 22:43:41.234625"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.241442"], ["updated_at", "2019-05-19 22:43:41.241442"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.243771"], ["updated_at", "2019-05-19 22:43:41.243771"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.246880"], ["updated_at", "2019-05-19 22:43:41.246880"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.249298"], ["updated_at", "2019-05-19 22:43:41.249298"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.251499"], ["updated_at", "2019-05-19 22:43:41.251499"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.254268"], ["updated_at", "2019-05-19 22:43:41.254268"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.256403"], ["updated_at", "2019-05-19 22:43:41.256403"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.268680"], ["updated_at", "2019-05-19 22:43:41.268680"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.272405"], ["updated_at", "2019-05-19 22:43:41.272405"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.278905"], ["updated_at", "2019-05-19 22:43:41.278905"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:43:41.283616"], ["updated_at", "2019-05-19 22:43:41.283616"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.287314"], ["updated_at", "2019-05-19 22:43:41.287314"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.294826"], ["updated_at", "2019-05-19 22:43:41.294826"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.297234"], ["updated_at", "2019-05-19 22:43:41.297234"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.300259"], ["updated_at", "2019-05-19 22:43:41.300259"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.302931"], ["updated_at", "2019-05-19 22:43:41.302931"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.305391"], ["updated_at", "2019-05-19 22:43:41.305391"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (1.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.311091"], ["updated_at", "2019-05-19 22:43:41.311091"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.312087"], ["ends_at", "2019-05-19 22:43:41.312087"], ["average_time", "2019-05-19 22:43:41.312087"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (1.0ms) 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", "2019-05-19 22:43:41.340121"], ["updated_at", "2019-05-19 22:43:41.340121"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.2ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.350152"], ["updated_at", "2019-05-19 22:43:41.350152"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.355995"], ["updated_at", "2019-05-19 22:43:41.355995"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.365546"], ["updated_at", "2019-05-19 22:43:41.365546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.372701"], ["updated_at", "2019-05-19 22:43:41.372701"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.384658"], ["updated_at", "2019-05-19 22:43:41.384658"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:43:41.395535"], ["updated_at", "2019-05-19 22:43:41.395535"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.398984"], ["updated_at", "2019-05-19 22:43:41.398984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.400004"], ["ends_at", "2019-05-19 22:43:41.400004"], ["average_time", "2019-05-19 22:43:41.400004"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:43:41.403172"], ["updated_at", "2019-05-19 22:43:41.403172"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.404871"], ["ends_at", "2019-05-19 22:43:41.404871"], ["average_time", "2019-05-19 22:43:41.404871"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:43:41.408817"], ["updated_at", "2019-05-19 22:43:41.408817"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.412037"], ["ends_at", "2019-05-19 22:43:41.412037"], ["average_time", "2019-05-19 22:43:41.412037"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:43:41.415202"], ["updated_at", "2019-05-19 22:43:41.415202"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.416574"], ["ends_at", "2019-05-19 22:43:41.416574"], ["average_time", "2019-05-19 22:43:41.416574"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.418343"], ["ends_at", "2019-05-19 22:43:41.418343"], ["average_time", "2019-05-19 22:43:41.418343"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.422190"], ["updated_at", "2019-05-19 22:43:41.422190"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.423716"], ["ends_at", "2019-05-19 22:43:41.423716"], ["average_time", "2019-05-19 22:43:41.423716"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.430218"], ["updated_at", "2019-05-19 22:43:41.430218"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.431904"], ["ends_at", "2019-05-19 22:43:41.431904"], ["average_time", "2019-05-19 22:43:41.431904"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.433342"], ["ends_at", "2019-05-19 22:43:41.433342"], ["average_time", "2019-05-19 22:43:41.433342"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.434754"], ["updated_at", "2019-05-19 22:43:41.434754"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.436014"], ["ends_at", "2019-05-19 22:43:41.436014"], ["average_time", "2019-05-19 22:43:41.436014"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 22:43:41.440412"], ["updated_at", "2019-05-19 22:43:41.440412"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.444571"], ["ends_at", "2019-05-19 22:43:41.444571"], ["average_time", "2019-05-19 22:43:41.444571"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.445812"], ["ends_at", "2019-05-19 22:43:41.445812"], ["average_time", "2019-05-19 22:43:41.445812"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.447579"], ["updated_at", "2019-05-19 22:43:41.447579"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.448602"], ["ends_at", "2019-05-19 22:43:41.448602"], ["average_time", "2019-05-19 22:43:41.448602"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:43:41.449440"], ["updated_at", "2019-05-19 22:43:41.449440"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:43:41.453584"], ["updated_at", "2019-05-19 22:43:41.453584"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.454589"], ["ends_at", "2019-05-19 22:43:41.454589"], ["average_time", "2019-05-19 22:43:41.454589"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.455619"], ["ends_at", "2019-05-19 22:43:41.455619"], ["average_time", "2019-05-19 22:43:41.455619"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.456840"], ["updated_at", "2019-05-19 22:43:41.456840"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.459940"], ["ends_at", "2019-05-19 22:43:41.459940"], ["average_time", "2019-05-19 22:43:41.459940"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.465019"], ["updated_at", "2019-05-19 22:43:41.465019"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.466864"], ["ends_at", "2019-05-19 22:43:41.466864"], ["average_time", "2019-05-19 22:43:41.466864"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.468263"], ["ends_at", "2019-05-19 22:43:41.468263"], ["average_time", "2019-05-19 22:43:41.468263"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (2.4ms) 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", "2019-05-19 22:43:41.469392"], ["updated_at", "2019-05-19 22:43:41.469392"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.473061"], ["ends_at", "2019-05-19 22:43:41.473061"], ["average_time", "2019-05-19 22:43:41.473061"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.481026"], ["updated_at", "2019-05-19 22:43:41.481026"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.482946"], ["ends_at", "2019-05-19 22:43:41.482946"], ["average_time", "2019-05-19 22:43:41.482946"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.484605"], ["ends_at", "2019-05-19 22:43:41.484605"], ["average_time", "2019-05-19 22:43:41.484605"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.485783"], ["updated_at", "2019-05-19 22:43:41.485783"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.486870"], ["ends_at", "2019-05-19 22:43:41.486870"], ["average_time", "2019-05-19 22:43:41.486870"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:43:41.491838"], ["updated_at", "2019-05-19 22:43:41.491838"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.493258"], ["ends_at", "2019-05-19 22:43:41.493258"], ["average_time", "2019-05-19 22:43:41.493258"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.494640"], ["ends_at", "2019-05-19 22:43:41.494640"], ["average_time", "2019-05-19 22:43:41.494640"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.495568"], ["updated_at", "2019-05-19 22:43:41.495568"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.496303"], ["ends_at", "2019-05-19 22:43:41.496303"], ["average_time", "2019-05-19 22:43:41.496303"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:43:41.506414"], ["updated_at", "2019-05-19 22:43:41.506414"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.508858"], ["updated_at", "2019-05-19 22:43:41.508858"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.509829"], ["ends_at", "2019-05-19 22:43:41.509829"], ["average_time", "2019-05-19 22:43:41.509829"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.510679"], ["ends_at", "2019-05-19 22:43:41.510679"], ["average_time", "2019-05-19 22:43:41.510679"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.511647"], ["updated_at", "2019-05-19 22:43:41.511647"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.512555"], ["ends_at", "2019-05-19 22:43:41.512555"], ["average_time", "2019-05-19 22:43:41.512555"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.515763"], ["updated_at", "2019-05-19 22:43:41.515763"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.517462"], ["ends_at", "2019-05-19 22:43:41.517462"], ["average_time", "2019-05-19 22:43:41.517462"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.519785"], ["ends_at", "2019-05-19 22:43:41.519785"], ["average_time", "2019-05-19 22:43:41.519785"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.520834"], ["updated_at", "2019-05-19 22:43:41.520834"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.522662"], ["ends_at", "2019-05-19 22:43:41.522662"], ["average_time", "2019-05-19 22:43:41.522662"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:43:41.526031"], ["updated_at", "2019-05-19 22:43:41.526031"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.529690"], ["ends_at", "2019-05-19 22:43:41.529690"], ["average_time", "2019-05-19 22:43:41.529690"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.531336"], ["ends_at", "2019-05-19 22:43:41.531336"], ["average_time", "2019-05-19 22:43:41.531336"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:43:41.532377"], ["updated_at", "2019-05-19 22:43:41.532377"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:43:41.533317"], ["ends_at", "2019-05-19 22:43:41.533317"], ["average_time", "2019-05-19 22:43:41.533317"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.5ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (1.1ms) SELECT sqlite_version(*) +  (1.8ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (0.8ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.3ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:46:52.835081"], ["updated_at", "2019-05-19 22:46:52.835081"]] +  (0.6ms) commit transaction +  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.069001"], ["updated_at", "2019-05-19 22:46:53.069001"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.083318"], ["ends_at", "2019-05-19 22:46:53.083318"], ["average_time", "2019-05-19 22:46:53.083318"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.085222"], ["updated_at", "2019-05-19 22:46:53.085222"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.086870"], ["ends_at", "2019-05-19 22:46:53.086870"], ["average_time", "2019-05-19 22:46:53.086870"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.088518"], ["ends_at", "2019-05-19 22:46:53.088518"], ["average_time", "2019-05-19 22:46:53.088518"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.098193"], ["updated_at", "2019-05-19 22:46:53.098193"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.099467"], ["ends_at", "2019-05-19 22:46:53.099467"], ["average_time", "2019-05-19 22:46:53.099467"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.103851"], ["updated_at", "2019-05-19 22:46:53.103851"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.105330"], ["ends_at", "2019-05-19 22:46:53.105330"], ["average_time", "2019-05-19 22:46:53.105330"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.107095"], ["ends_at", "2019-05-19 22:46:53.107095"], ["average_time", "2019-05-19 22:46:53.107095"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.144135"], ["updated_at", "2019-05-19 22:46:53.144135"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.149170"], ["ends_at", "2019-05-19 22:46:53.149170"], ["average_time", "2019-05-19 22:46:53.149170"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.150599"], ["updated_at", "2019-05-19 22:46:53.150599"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.152001"], ["ends_at", "2019-05-19 22:46:53.152001"], ["average_time", "2019-05-19 22:46:53.152001"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.153557"], ["ends_at", "2019-05-19 22:46:53.153557"], ["average_time", "2019-05-19 22:46:53.153557"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.157516"], ["updated_at", "2019-05-19 22:46:53.157516"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.166092"], ["updated_at", "2019-05-19 22:46:53.166092"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.169632"], ["ends_at", "2019-05-19 22:46:53.169632"], ["average_time", "2019-05-19 22:46:53.169632"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.177823"], ["updated_at", "2019-05-19 22:46:53.177823"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.191638"], ["ends_at", "2019-05-19 22:46:53.191638"], ["average_time", "2019-05-19 22:46:53.191638"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.4ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.7ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:46:53.196612"], ["updated_at", "2019-05-19 22:46:53.196612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.199018"], ["ends_at", "2019-05-19 22:46:53.199018"], ["average_time", "2019-05-19 22:46:53.199018"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.203376"], ["updated_at", "2019-05-19 22:46:53.203376"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.205636"], ["updated_at", "2019-05-19 22:46:53.205636"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.207734"], ["updated_at", "2019-05-19 22:46:53.207734"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (1.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", "2019-05-19 22:46:53.210864"], ["updated_at", "2019-05-19 22:46:53.210864"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.216746"], ["updated_at", "2019-05-19 22:46:53.216746"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.219637"], ["updated_at", "2019-05-19 22:46:53.219637"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.222937"], ["updated_at", "2019-05-19 22:46:53.222937"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 22:46:53.226944"], ["updated_at", "2019-05-19 22:46:53.226944"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.233317"], ["updated_at", "2019-05-19 22:46:53.233317"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.237644"], ["updated_at", "2019-05-19 22:46:53.237644"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.241043"], ["updated_at", "2019-05-19 22:46:53.241043"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.244024"], ["updated_at", "2019-05-19 22:46:53.244024"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.252744"], ["updated_at", "2019-05-19 22:46:53.252744"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.254925"], ["updated_at", "2019-05-19 22:46:53.254925"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.257117"], ["updated_at", "2019-05-19 22:46:53.257117"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.259914"], ["updated_at", "2019-05-19 22:46:53.259914"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.3ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.265191"], ["updated_at", "2019-05-19 22:46:53.265191"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.268981"], ["updated_at", "2019-05-19 22:46:53.268981"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.272554"], ["updated_at", "2019-05-19 22:46:53.272554"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 22:46:53.277408"], ["updated_at", "2019-05-19 22:46:53.277408"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.282880"], ["updated_at", "2019-05-19 22:46:53.282880"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.286611"], ["updated_at", "2019-05-19 22:46:53.286611"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.291459"], ["updated_at", "2019-05-19 22:46:53.291459"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.292426"], ["ends_at", "2019-05-19 22:46:53.292426"], ["average_time", "2019-05-19 22:46:53.292426"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.319126"], ["updated_at", "2019-05-19 22:46:53.319126"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:46:53.329848"], ["updated_at", "2019-05-19 22:46:53.329848"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.339585"], ["updated_at", "2019-05-19 22:46:53.339585"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.348897"], ["updated_at", "2019-05-19 22:46:53.348897"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.354860"], ["updated_at", "2019-05-19 22:46:53.354860"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.362735"], ["updated_at", "2019-05-19 22:46:53.362735"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.370990"], ["updated_at", "2019-05-19 22:46:53.370990"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.375406"], ["updated_at", "2019-05-19 22:46:53.375406"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.378356"], ["ends_at", "2019-05-19 22:46:53.378356"], ["average_time", "2019-05-19 22:46:53.378356"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.384403"], ["updated_at", "2019-05-19 22:46:53.384403"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.387027"], ["ends_at", "2019-05-19 22:46:53.387027"], ["average_time", "2019-05-19 22:46:53.387027"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:46:53.390466"], ["updated_at", "2019-05-19 22:46:53.390466"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.392424"], ["ends_at", "2019-05-19 22:46:53.392424"], ["average_time", "2019-05-19 22:46:53.392424"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (1.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:46:53.397318"], ["updated_at", "2019-05-19 22:46:53.397318"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.398936"], ["ends_at", "2019-05-19 22:46:53.398936"], ["average_time", "2019-05-19 22:46:53.398936"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.399825"], ["ends_at", "2019-05-19 22:46:53.399825"], ["average_time", "2019-05-19 22:46:53.399825"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.400564"], ["updated_at", "2019-05-19 22:46:53.400564"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.401213"], ["ends_at", "2019-05-19 22:46:53.401213"], ["average_time", "2019-05-19 22:46:53.401213"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.404020"], ["updated_at", "2019-05-19 22:46:53.404020"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.405006"], ["ends_at", "2019-05-19 22:46:53.405006"], ["average_time", "2019-05-19 22:46:53.405006"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.406302"], ["ends_at", "2019-05-19 22:46:53.406302"], ["average_time", "2019-05-19 22:46:53.406302"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.407187"], ["updated_at", "2019-05-19 22:46:53.407187"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.407936"], ["ends_at", "2019-05-19 22:46:53.407936"], ["average_time", "2019-05-19 22:46:53.407936"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.411921"], ["updated_at", "2019-05-19 22:46:53.411921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.413589"], ["ends_at", "2019-05-19 22:46:53.413589"], ["average_time", "2019-05-19 22:46:53.413589"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.414736"], ["ends_at", "2019-05-19 22:46:53.414736"], ["average_time", "2019-05-19 22:46:53.414736"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.415601"], ["updated_at", "2019-05-19 22:46:53.415601"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.416453"], ["ends_at", "2019-05-19 22:46:53.416453"], ["average_time", "2019-05-19 22:46:53.416453"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:46:53.417404"], ["updated_at", "2019-05-19 22:46:53.417404"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.421804"], ["updated_at", "2019-05-19 22:46:53.421804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.423419"], ["ends_at", "2019-05-19 22:46:53.423419"], ["average_time", "2019-05-19 22:46:53.423419"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.424928"], ["ends_at", "2019-05-19 22:46:53.424928"], ["average_time", "2019-05-19 22:46:53.424928"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.425985"], ["updated_at", "2019-05-19 22:46:53.425985"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.427809"], ["ends_at", "2019-05-19 22:46:53.427809"], ["average_time", "2019-05-19 22:46:53.427809"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.432289"], ["updated_at", "2019-05-19 22:46:53.432289"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.434409"], ["ends_at", "2019-05-19 22:46:53.434409"], ["average_time", "2019-05-19 22:46:53.434409"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.435969"], ["ends_at", "2019-05-19 22:46:53.435969"], ["average_time", "2019-05-19 22:46:53.435969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.437260"], ["updated_at", "2019-05-19 22:46:53.437260"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.438460"], ["ends_at", "2019-05-19 22:46:53.438460"], ["average_time", "2019-05-19 22:46:53.438460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:46:53.452205"], ["updated_at", "2019-05-19 22:46:53.452205"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.453291"], ["ends_at", "2019-05-19 22:46:53.453291"], ["average_time", "2019-05-19 22:46:53.453291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.454259"], ["ends_at", "2019-05-19 22:46:53.454259"], ["average_time", "2019-05-19 22:46:53.454259"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.454972"], ["updated_at", "2019-05-19 22:46:53.454972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.455617"], ["ends_at", "2019-05-19 22:46:53.455617"], ["average_time", "2019-05-19 22:46:53.455617"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.458061"], ["updated_at", "2019-05-19 22:46:53.458061"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.459020"], ["ends_at", "2019-05-19 22:46:53.459020"], ["average_time", "2019-05-19 22:46:53.459020"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.459845"], ["ends_at", "2019-05-19 22:46:53.459845"], ["average_time", "2019-05-19 22:46:53.459845"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.460510"], ["updated_at", "2019-05-19 22:46:53.460510"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.461115"], ["ends_at", "2019-05-19 22:46:53.461115"], ["average_time", "2019-05-19 22:46:53.461115"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:46:53.461800"], ["updated_at", "2019-05-19 22:46:53.461800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.464764"], ["updated_at", "2019-05-19 22:46:53.464764"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.465733"], ["ends_at", "2019-05-19 22:46:53.465733"], ["average_time", "2019-05-19 22:46:53.465733"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.466755"], ["ends_at", "2019-05-19 22:46:53.466755"], ["average_time", "2019-05-19 22:46:53.466755"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.467611"], ["updated_at", "2019-05-19 22:46:53.467611"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.468901"], ["ends_at", "2019-05-19 22:46:53.468901"], ["average_time", "2019-05-19 22:46:53.468901"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:46:53.472590"], ["updated_at", "2019-05-19 22:46:53.472590"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.474296"], ["ends_at", "2019-05-19 22:46:53.474296"], ["average_time", "2019-05-19 22:46:53.474296"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.475916"], ["ends_at", "2019-05-19 22:46:53.475916"], ["average_time", "2019-05-19 22:46:53.475916"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.477173"], ["updated_at", "2019-05-19 22:46:53.477173"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.478550"], ["ends_at", "2019-05-19 22:46:53.478550"], ["average_time", "2019-05-19 22:46:53.478550"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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) LIMIT ? [["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:46:53.483967"], ["updated_at", "2019-05-19 22:46:53.483967"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.485797"], ["ends_at", "2019-05-19 22:46:53.485797"], ["average_time", "2019-05-19 22:46:53.485797"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.487431"], ["ends_at", "2019-05-19 22:46:53.487431"], ["average_time", "2019-05-19 22:46:53.487431"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:46:53.488967"], ["updated_at", "2019-05-19 22:46:53.488967"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:46:53.490241"], ["ends_at", "2019-05-19 22:46:53.490241"], ["average_time", "2019-05-19 22:46:53.490241"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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) LIMIT ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (1.2ms) SELECT sqlite_version(*) +  (1.3ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (1.0ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:49:18.065994"], ["updated_at", "2019-05-19 22:49:18.065994"]] +  (0.6ms) commit transaction +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.285022"], ["updated_at", "2019-05-19 22:49:18.285022"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.295506"], ["ends_at", "2019-05-19 22:49:18.295506"], ["average_time", "2019-05-19 22:49:18.295506"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.296688"], ["updated_at", "2019-05-19 22:49:18.296688"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.297858"], ["ends_at", "2019-05-19 22:49:18.297858"], ["average_time", "2019-05-19 22:49:18.297858"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.298733"], ["ends_at", "2019-05-19 22:49:18.298733"], ["average_time", "2019-05-19 22:49:18.298733"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.305951"], ["updated_at", "2019-05-19 22:49:18.305951"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.307104"], ["ends_at", "2019-05-19 22:49:18.307104"], ["average_time", "2019-05-19 22:49:18.307104"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.307969"], ["updated_at", "2019-05-19 22:49:18.307969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.308642"], ["ends_at", "2019-05-19 22:49:18.308642"], ["average_time", "2019-05-19 22:49:18.308642"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.309410"], ["ends_at", "2019-05-19 22:49:18.309410"], ["average_time", "2019-05-19 22:49:18.309410"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.322414"], ["updated_at", "2019-05-19 22:49:18.322414"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.324403"], ["ends_at", "2019-05-19 22:49:18.324403"], ["average_time", "2019-05-19 22:49:18.324403"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.326128"], ["updated_at", "2019-05-19 22:49:18.326128"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.327543"], ["ends_at", "2019-05-19 22:49:18.327543"], ["average_time", "2019-05-19 22:49:18.327543"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.331821"], ["ends_at", "2019-05-19 22:49:18.331821"], ["average_time", "2019-05-19 22:49:18.331821"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.335616"], ["updated_at", "2019-05-19 22:49:18.335616"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.342020"], ["updated_at", "2019-05-19 22:49:18.342020"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.343087"], ["ends_at", "2019-05-19 22:49:18.343087"], ["average_time", "2019-05-19 22:49:18.343087"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.345683"], ["updated_at", "2019-05-19 22:49:18.345683"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.347924"], ["ends_at", "2019-05-19 22:49:18.347924"], ["average_time", "2019-05-19 22:49:18.347924"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:49:18.352418"], ["updated_at", "2019-05-19 22:49:18.352418"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.353403"], ["ends_at", "2019-05-19 22:49:18.353403"], ["average_time", "2019-05-19 22:49:18.353403"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.357151"], ["updated_at", "2019-05-19 22:49:18.357151"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.359409"], ["updated_at", "2019-05-19 22:49:18.359409"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.371440"], ["updated_at", "2019-05-19 22:49:18.371440"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.375084"], ["updated_at", "2019-05-19 22:49:18.375084"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.378365"], ["updated_at", "2019-05-19 22:49:18.378365"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.381699"], ["updated_at", "2019-05-19 22:49:18.381699"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.385252"], ["updated_at", "2019-05-19 22:49:18.385252"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.388632"], ["updated_at", "2019-05-19 22:49:18.388632"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.391991"], ["updated_at", "2019-05-19 22:49:18.391991"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.394623"], ["updated_at", "2019-05-19 22:49:18.394623"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.398421"], ["updated_at", "2019-05-19 22:49:18.398421"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.403295"], ["updated_at", "2019-05-19 22:49:18.403295"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.410469"], ["updated_at", "2019-05-19 22:49:18.410469"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 22:49:18.413714"], ["updated_at", "2019-05-19 22:49:18.413714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.419586"], ["updated_at", "2019-05-19 22:49:18.419586"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.423104"], ["updated_at", "2019-05-19 22:49:18.423104"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.426596"], ["updated_at", "2019-05-19 22:49:18.426596"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.434262"], ["updated_at", "2019-05-19 22:49:18.434262"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.437855"], ["updated_at", "2019-05-19 22:49:18.437855"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.441349"], ["updated_at", "2019-05-19 22:49:18.441349"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:49:18.446343"], ["updated_at", "2019-05-19 22:49:18.446343"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.451666"], ["updated_at", "2019-05-19 22:49:18.451666"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.455518"], ["updated_at", "2019-05-19 22:49:18.455518"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.456527"], ["ends_at", "2019-05-19 22:49:18.456527"], ["average_time", "2019-05-19 22:49:18.456527"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.494489"], ["updated_at", "2019-05-19 22:49:18.494489"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.9ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.504950"], ["updated_at", "2019-05-19 22:49:18.504950"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (1.5ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.519486"], ["updated_at", "2019-05-19 22:49:18.519486"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.2ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.536751"], ["updated_at", "2019-05-19 22:49:18.536751"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.550934"], ["updated_at", "2019-05-19 22:49:18.550934"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.563822"], ["updated_at", "2019-05-19 22:49:18.563822"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.580657"], ["updated_at", "2019-05-19 22:49:18.580657"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:49:18.597354"], ["updated_at", "2019-05-19 22:49:18.597354"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.598861"], ["ends_at", "2019-05-19 22:49:18.598861"], ["average_time", "2019-05-19 22:49:18.598861"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:49:18.601689"], ["updated_at", "2019-05-19 22:49:18.601689"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.603263"], ["ends_at", "2019-05-19 22:49:18.603263"], ["average_time", "2019-05-19 22:49:18.603263"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:49:18.605658"], ["updated_at", "2019-05-19 22:49:18.605658"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.5ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.607805"], ["ends_at", "2019-05-19 22:49:18.607805"], ["average_time", "2019-05-19 22:49:18.607805"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:49:18.610861"], ["updated_at", "2019-05-19 22:49:18.610861"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.612599"], ["ends_at", "2019-05-19 22:49:18.612599"], ["average_time", "2019-05-19 22:49:18.612599"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.614233"], ["ends_at", "2019-05-19 22:49:18.614233"], ["average_time", "2019-05-19 22:49:18.614233"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.616087"], ["updated_at", "2019-05-19 22:49:18.616087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.617412"], ["ends_at", "2019-05-19 22:49:18.617412"], ["average_time", "2019-05-19 22:49:18.617412"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.622272"], ["updated_at", "2019-05-19 22:49:18.622272"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.624150"], ["ends_at", "2019-05-19 22:49:18.624150"], ["average_time", "2019-05-19 22:49:18.624150"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.626100"], ["ends_at", "2019-05-19 22:49:18.626100"], ["average_time", "2019-05-19 22:49:18.626100"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.627548"], ["updated_at", "2019-05-19 22:49:18.627548"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.628821"], ["ends_at", "2019-05-19 22:49:18.628821"], ["average_time", "2019-05-19 22:49:18.628821"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.636340"], ["updated_at", "2019-05-19 22:49:18.636340"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.638144"], ["ends_at", "2019-05-19 22:49:18.638144"], ["average_time", "2019-05-19 22:49:18.638144"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.639783"], ["ends_at", "2019-05-19 22:49:18.639783"], ["average_time", "2019-05-19 22:49:18.639783"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.641250"], ["updated_at", "2019-05-19 22:49:18.641250"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.642147"], ["ends_at", "2019-05-19 22:49:18.642147"], ["average_time", "2019-05-19 22:49:18.642147"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:49:18.643202"], ["updated_at", "2019-05-19 22:49:18.643202"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:49:18.647128"], ["updated_at", "2019-05-19 22:49:18.647128"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.648930"], ["ends_at", "2019-05-19 22:49:18.648930"], ["average_time", "2019-05-19 22:49:18.648930"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.650326"], ["ends_at", "2019-05-19 22:49:18.650326"], ["average_time", "2019-05-19 22:49:18.650326"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.651181"], ["updated_at", "2019-05-19 22:49:18.651181"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.651923"], ["ends_at", "2019-05-19 22:49:18.651923"], ["average_time", "2019-05-19 22:49:18.651923"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:49:18.654878"], ["updated_at", "2019-05-19 22:49:18.654878"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (1.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.655953"], ["ends_at", "2019-05-19 22:49:18.655953"], ["average_time", "2019-05-19 22:49:18.655953"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.658132"], ["ends_at", "2019-05-19 22:49:18.658132"], ["average_time", "2019-05-19 22:49:18.658132"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.659082"], ["updated_at", "2019-05-19 22:49:18.659082"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.659884"], ["ends_at", "2019-05-19 22:49:18.659884"], ["average_time", "2019-05-19 22:49:18.659884"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.663010"], ["updated_at", "2019-05-19 22:49:18.663010"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.664109"], ["ends_at", "2019-05-19 22:49:18.664109"], ["average_time", "2019-05-19 22:49:18.664109"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.665659"], ["ends_at", "2019-05-19 22:49:18.665659"], ["average_time", "2019-05-19 22:49:18.665659"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.667037"], ["updated_at", "2019-05-19 22:49:18.667037"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.671513"], ["ends_at", "2019-05-19 22:49:18.671513"], ["average_time", "2019-05-19 22:49:18.671513"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 22:49:18.675721"], ["updated_at", "2019-05-19 22:49:18.675721"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.5ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.677949"], ["ends_at", "2019-05-19 22:49:18.677949"], ["average_time", "2019-05-19 22:49:18.677949"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.680445"], ["ends_at", "2019-05-19 22:49:18.680445"], ["average_time", "2019-05-19 22:49:18.680445"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.683722"], ["updated_at", "2019-05-19 22:49:18.683722"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.685141"], ["ends_at", "2019-05-19 22:49:18.685141"], ["average_time", "2019-05-19 22:49:18.685141"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:49:18.686543"], ["updated_at", "2019-05-19 22:49:18.686543"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.690535"], ["updated_at", "2019-05-19 22:49:18.690535"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.691875"], ["ends_at", "2019-05-19 22:49:18.691875"], ["average_time", "2019-05-19 22:49:18.691875"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.692928"], ["ends_at", "2019-05-19 22:49:18.692928"], ["average_time", "2019-05-19 22:49:18.692928"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.693661"], ["updated_at", "2019-05-19 22:49:18.693661"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.694353"], ["ends_at", "2019-05-19 22:49:18.694353"], ["average_time", "2019-05-19 22:49:18.694353"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:49:18.697227"], ["updated_at", "2019-05-19 22:49:18.697227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.698404"], ["ends_at", "2019-05-19 22:49:18.698404"], ["average_time", "2019-05-19 22:49:18.698404"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.699452"], ["ends_at", "2019-05-19 22:49:18.699452"], ["average_time", "2019-05-19 22:49:18.699452"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.700195"], ["updated_at", "2019-05-19 22:49:18.700195"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.701004"], ["ends_at", "2019-05-19 22:49:18.701004"], ["average_time", "2019-05-19 22:49:18.701004"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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) LIMIT ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.704329"], ["updated_at", "2019-05-19 22:49:18.704329"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.705336"], ["ends_at", "2019-05-19 22:49:18.705336"], ["average_time", "2019-05-19 22:49:18.705336"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.706239"], ["ends_at", "2019-05-19 22:49:18.706239"], ["average_time", "2019-05-19 22:49:18.706239"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:49:18.707014"], ["updated_at", "2019-05-19 22:49:18.707014"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:49:18.708244"], ["ends_at", "2019-05-19 22:49:18.708244"], ["average_time", "2019-05-19 22:49:18.708244"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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) LIMIT ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.5ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (1.0ms) SELECT sqlite_version(*) +  (2.5ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (0.9ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.6ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:50:12.864285"], ["updated_at", "2019-05-19 22:50:12.864285"]] +  (0.9ms) commit transaction +  (1.4ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.054195"], ["updated_at", "2019-05-19 22:50:13.054195"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.062103"], ["ends_at", "2019-05-19 22:50:13.062103"], ["average_time", "2019-05-19 22:50:13.062103"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.063174"], ["updated_at", "2019-05-19 22:50:13.063174"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.063927"], ["ends_at", "2019-05-19 22:50:13.063927"], ["average_time", "2019-05-19 22:50:13.063927"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.065519"], ["ends_at", "2019-05-19 22:50:13.065519"], ["average_time", "2019-05-19 22:50:13.065519"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.077004"], ["updated_at", "2019-05-19 22:50:13.077004"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.078894"], ["ends_at", "2019-05-19 22:50:13.078894"], ["average_time", "2019-05-19 22:50:13.078894"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.080453"], ["updated_at", "2019-05-19 22:50:13.080453"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.081413"], ["ends_at", "2019-05-19 22:50:13.081413"], ["average_time", "2019-05-19 22:50:13.081413"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.082538"], ["ends_at", "2019-05-19 22:50:13.082538"], ["average_time", "2019-05-19 22:50:13.082538"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.098862"], ["updated_at", "2019-05-19 22:50:13.098862"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.100332"], ["ends_at", "2019-05-19 22:50:13.100332"], ["average_time", "2019-05-19 22:50:13.100332"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.101175"], ["updated_at", "2019-05-19 22:50:13.101175"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.101878"], ["ends_at", "2019-05-19 22:50:13.101878"], ["average_time", "2019-05-19 22:50:13.101878"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.102621"], ["ends_at", "2019-05-19 22:50:13.102621"], ["average_time", "2019-05-19 22:50:13.102621"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.113003"], ["updated_at", "2019-05-19 22:50:13.113003"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.121741"], ["updated_at", "2019-05-19 22:50:13.121741"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.123308"], ["ends_at", "2019-05-19 22:50:13.123308"], ["average_time", "2019-05-19 22:50:13.123308"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.126772"], ["updated_at", "2019-05-19 22:50:13.126772"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.127849"], ["ends_at", "2019-05-19 22:50:13.127849"], ["average_time", "2019-05-19 22:50:13.127849"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:50:13.131218"], ["updated_at", "2019-05-19 22:50:13.131218"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.132587"], ["ends_at", "2019-05-19 22:50:13.132587"], ["average_time", "2019-05-19 22:50:13.132587"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.137192"], ["updated_at", "2019-05-19 22:50:13.137192"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.139438"], ["updated_at", "2019-05-19 22:50:13.139438"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.141635"], ["updated_at", "2019-05-19 22:50:13.141635"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.144612"], ["updated_at", "2019-05-19 22:50:13.144612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.146851"], ["updated_at", "2019-05-19 22:50:13.146851"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.148974"], ["updated_at", "2019-05-19 22:50:13.148974"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.151112"], ["updated_at", "2019-05-19 22:50:13.151112"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:50:13.156120"], ["updated_at", "2019-05-19 22:50:13.156120"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.159984"], ["updated_at", "2019-05-19 22:50:13.159984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.165063"], ["updated_at", "2019-05-19 22:50:13.165063"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:50:13.168612"], ["updated_at", "2019-05-19 22:50:13.168612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.171761"], ["updated_at", "2019-05-19 22:50:13.171761"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:50:13.180543"], ["updated_at", "2019-05-19 22:50:13.180543"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.187103"], ["updated_at", "2019-05-19 22:50:13.187103"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.190025"], ["updated_at", "2019-05-19 22:50:13.190025"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.192374"], ["updated_at", "2019-05-19 22:50:13.192374"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.194517"], ["updated_at", "2019-05-19 22:50:13.194517"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (1.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.200888"], ["updated_at", "2019-05-19 22:50:13.200888"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.203991"], ["updated_at", "2019-05-19 22:50:13.203991"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.206245"], ["updated_at", "2019-05-19 22:50:13.206245"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.208398"], ["updated_at", "2019-05-19 22:50:13.208398"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.210630"], ["updated_at", "2019-05-19 22:50:13.210630"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (2.9ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.218179"], ["updated_at", "2019-05-19 22:50:13.218179"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.219242"], ["ends_at", "2019-05-19 22:50:13.219242"], ["average_time", "2019-05-19 22:50:13.219242"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.250190"], ["updated_at", "2019-05-19 22:50:13.250190"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.256885"], ["updated_at", "2019-05-19 22:50:13.256885"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.262861"], ["updated_at", "2019-05-19 22:50:13.262861"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.271454"], ["updated_at", "2019-05-19 22:50:13.271454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 22:50:13.280027"], ["updated_at", "2019-05-19 22:50:13.280027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.9ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.293528"], ["updated_at", "2019-05-19 22:50:13.293528"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.301318"], ["updated_at", "2019-05-19 22:50:13.301318"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.304409"], ["updated_at", "2019-05-19 22:50:13.304409"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.305972"], ["ends_at", "2019-05-19 22:50:13.305972"], ["average_time", "2019-05-19 22:50:13.305972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.308480"], ["updated_at", "2019-05-19 22:50:13.308480"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.309984"], ["ends_at", "2019-05-19 22:50:13.309984"], ["average_time", "2019-05-19 22:50:13.309984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.312374"], ["updated_at", "2019-05-19 22:50:13.312374"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.317798"], ["ends_at", "2019-05-19 22:50:13.317798"], ["average_time", "2019-05-19 22:50:13.317798"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:50:13.320426"], ["updated_at", "2019-05-19 22:50:13.320426"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.322383"], ["ends_at", "2019-05-19 22:50:13.322383"], ["average_time", "2019-05-19 22:50:13.322383"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.325772"], ["ends_at", "2019-05-19 22:50:13.325772"], ["average_time", "2019-05-19 22:50:13.325772"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.327724"], ["updated_at", "2019-05-19 22:50:13.327724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.330460"], ["ends_at", "2019-05-19 22:50:13.330460"], ["average_time", "2019-05-19 22:50:13.330460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.337708"], ["updated_at", "2019-05-19 22:50:13.337708"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.341386"], ["ends_at", "2019-05-19 22:50:13.341386"], ["average_time", "2019-05-19 22:50:13.341386"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.343910"], ["ends_at", "2019-05-19 22:50:13.343910"], ["average_time", "2019-05-19 22:50:13.343910"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (3.6ms) 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", "2019-05-19 22:50:13.346395"], ["updated_at", "2019-05-19 22:50:13.346395"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.351033"], ["ends_at", "2019-05-19 22:50:13.351033"], ["average_time", "2019-05-19 22:50:13.351033"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.357160"], ["updated_at", "2019-05-19 22:50:13.357160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.359120"], ["ends_at", "2019-05-19 22:50:13.359120"], ["average_time", "2019-05-19 22:50:13.359120"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.360921"], ["ends_at", "2019-05-19 22:50:13.360921"], ["average_time", "2019-05-19 22:50:13.360921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.361660"], ["updated_at", "2019-05-19 22:50:13.361660"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.363920"], ["ends_at", "2019-05-19 22:50:13.363920"], ["average_time", "2019-05-19 22:50:13.363920"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:50:13.370760"], ["updated_at", "2019-05-19 22:50:13.370760"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (1.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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (3.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", "2019-05-19 22:50:13.376670"], ["updated_at", "2019-05-19 22:50:13.376670"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.381220"], ["ends_at", "2019-05-19 22:50:13.381220"], ["average_time", "2019-05-19 22:50:13.381220"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.382699"], ["ends_at", "2019-05-19 22:50:13.382699"], ["average_time", "2019-05-19 22:50:13.382699"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.385879"], ["updated_at", "2019-05-19 22:50:13.385879"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.387218"], ["ends_at", "2019-05-19 22:50:13.387218"], ["average_time", "2019-05-19 22:50:13.387218"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.402484"], ["updated_at", "2019-05-19 22:50:13.402484"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.404110"], ["ends_at", "2019-05-19 22:50:13.404110"], ["average_time", "2019-05-19 22:50:13.404110"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.405232"], ["ends_at", "2019-05-19 22:50:13.405232"], ["average_time", "2019-05-19 22:50:13.405232"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.406029"], ["updated_at", "2019-05-19 22:50:13.406029"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.406717"], ["ends_at", "2019-05-19 22:50:13.406717"], ["average_time", "2019-05-19 22:50:13.406717"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.409674"], ["updated_at", "2019-05-19 22:50:13.409674"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.410678"], ["ends_at", "2019-05-19 22:50:13.410678"], ["average_time", "2019-05-19 22:50:13.410678"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.411603"], ["ends_at", "2019-05-19 22:50:13.411603"], ["average_time", "2019-05-19 22:50:13.411603"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.412298"], ["updated_at", "2019-05-19 22:50:13.412298"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.412958"], ["ends_at", "2019-05-19 22:50:13.412958"], ["average_time", "2019-05-19 22:50:13.412958"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:50:13.416067"], ["updated_at", "2019-05-19 22:50:13.416067"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.417928"], ["ends_at", "2019-05-19 22:50:13.417928"], ["average_time", "2019-05-19 22:50:13.417928"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.419501"], ["ends_at", "2019-05-19 22:50:13.419501"], ["average_time", "2019-05-19 22:50:13.419501"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.421555"], ["updated_at", "2019-05-19 22:50:13.421555"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.422913"], ["ends_at", "2019-05-19 22:50:13.422913"], ["average_time", "2019-05-19 22:50:13.422913"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:50:13.424377"], ["updated_at", "2019-05-19 22:50:13.424377"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.428139"], ["updated_at", "2019-05-19 22:50:13.428139"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.429751"], ["ends_at", "2019-05-19 22:50:13.429751"], ["average_time", "2019-05-19 22:50:13.429751"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.431493"], ["ends_at", "2019-05-19 22:50:13.431493"], ["average_time", "2019-05-19 22:50:13.431493"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.432932"], ["updated_at", "2019-05-19 22:50:13.432932"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.434227"], ["ends_at", "2019-05-19 22:50:13.434227"], ["average_time", "2019-05-19 22:50:13.434227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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)  +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:50:13.439952"], ["updated_at", "2019-05-19 22:50:13.439952"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.441282"], ["ends_at", "2019-05-19 22:50:13.441282"], ["average_time", "2019-05-19 22:50:13.441282"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.442228"], ["ends_at", "2019-05-19 22:50:13.442228"], ["average_time", "2019-05-19 22:50:13.442228"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.442956"], ["updated_at", "2019-05-19 22:50:13.442956"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.443598"], ["ends_at", "2019-05-19 22:50:13.443598"], ["average_time", "2019-05-19 22:50:13.443598"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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) LIMIT ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.446996"], ["updated_at", "2019-05-19 22:50:13.446996"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.448627"], ["ends_at", "2019-05-19 22:50:13.448627"], ["average_time", "2019-05-19 22:50:13.448627"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.451519"], ["ends_at", "2019-05-19 22:50:13.451519"], ["average_time", "2019-05-19 22:50:13.451519"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:50:13.452447"], ["updated_at", "2019-05-19 22:50:13.452447"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:50:13.453209"], ["ends_at", "2019-05-19 22:50:13.453209"], ["average_time", "2019-05-19 22:50:13.453209"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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) LIMIT ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (1.1ms) SELECT sqlite_version(*) +  (1.7ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (0.9ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.3ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.1ms) begin transaction + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:53:00.076599"], ["updated_at", "2019-05-19 22:53:00.076599"]] +  (0.6ms) commit transaction +  (1.6ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.330066"], ["updated_at", "2019-05-19 22:53:00.330066"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.342569"], ["ends_at", "2019-05-19 22:53:00.342569"], ["average_time", "2019-05-19 22:53:00.342569"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.343724"], ["updated_at", "2019-05-19 22:53:00.343724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.344493"], ["ends_at", "2019-05-19 22:53:00.344493"], ["average_time", "2019-05-19 22:53:00.344493"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.345393"], ["ends_at", "2019-05-19 22:53:00.345393"], ["average_time", "2019-05-19 22:53:00.345393"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.352784"], ["updated_at", "2019-05-19 22:53:00.352784"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.353901"], ["ends_at", "2019-05-19 22:53:00.353901"], ["average_time", "2019-05-19 22:53:00.353901"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.355478"], ["updated_at", "2019-05-19 22:53:00.355478"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.357023"], ["ends_at", "2019-05-19 22:53:00.357023"], ["average_time", "2019-05-19 22:53:00.357023"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.359353"], ["ends_at", "2019-05-19 22:53:00.359353"], ["average_time", "2019-05-19 22:53:00.359353"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (1.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.361805"], ["updated_at", "2019-05-19 22:53:00.361805"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.364064"], ["ends_at", "2019-05-19 22:53:00.364064"], ["average_time", "2019-05-19 22:53:00.364064"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.365864"], ["updated_at", "2019-05-19 22:53:00.365864"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.368260"], ["ends_at", "2019-05-19 22:53:00.368260"], ["average_time", "2019-05-19 22:53:00.368260"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.372050"], ["ends_at", "2019-05-19 22:53:00.372050"], ["average_time", "2019-05-19 22:53:00.372050"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (4.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.388118"], ["updated_at", "2019-05-19 22:53:00.388118"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.398251"], ["updated_at", "2019-05-19 22:53:00.398251"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.400927"], ["ends_at", "2019-05-19 22:53:00.400927"], ["average_time", "2019-05-19 22:53:00.400927"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.409171"], ["updated_at", "2019-05-19 22:53:00.409171"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.410970"], ["ends_at", "2019-05-19 22:53:00.410970"], ["average_time", "2019-05-19 22:53:00.410970"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:00.416887"], ["updated_at", "2019-05-19 22:53:00.416887"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.419312"], ["ends_at", "2019-05-19 22:53:00.419312"], ["average_time", "2019-05-19 22:53:00.419312"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (1.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.431663"], ["updated_at", "2019-05-19 22:53:00.431663"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.440851"], ["updated_at", "2019-05-19 22:53:00.440851"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.444566"], ["updated_at", "2019-05-19 22:53:00.444566"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.447917"], ["updated_at", "2019-05-19 22:53:00.447917"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (9.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.460299"], ["updated_at", "2019-05-19 22:53:00.460299"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.462583"], ["updated_at", "2019-05-19 22:53:00.462583"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.464879"], ["updated_at", "2019-05-19 22:53:00.464879"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:53:00.468134"], ["updated_at", "2019-05-19 22:53:00.468134"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.473956"], ["updated_at", "2019-05-19 22:53:00.473956"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.478037"], ["updated_at", "2019-05-19 22:53:00.478037"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.482049"], ["updated_at", "2019-05-19 22:53:00.482049"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (2.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", "2019-05-19 22:53:00.485698"], ["updated_at", "2019-05-19 22:53:00.485698"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.497021"], ["updated_at", "2019-05-19 22:53:00.497021"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.499310"], ["updated_at", "2019-05-19 22:53:00.499310"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.502706"], ["updated_at", "2019-05-19 22:53:00.502706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.505904"], ["updated_at", "2019-05-19 22:53:00.505904"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.511091"], ["updated_at", "2019-05-19 22:53:00.511091"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.514679"], ["updated_at", "2019-05-19 22:53:00.514679"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 22:53:00.518567"], ["updated_at", "2019-05-19 22:53:00.518567"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.524430"], ["updated_at", "2019-05-19 22:53:00.524430"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.528569"], ["updated_at", "2019-05-19 22:53:00.528569"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.532442"], ["updated_at", "2019-05-19 22:53:00.532442"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.538373"], ["updated_at", "2019-05-19 22:53:00.538373"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.540376"], ["ends_at", "2019-05-19 22:53:00.540376"], ["average_time", "2019-05-19 22:53:00.540376"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.564187"], ["updated_at", "2019-05-19 22:53:00.564187"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.576475"], ["updated_at", "2019-05-19 22:53:00.576475"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.588129"], ["updated_at", "2019-05-19 22:53:00.588129"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.597042"], ["updated_at", "2019-05-19 22:53:00.597042"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.603968"], ["updated_at", "2019-05-19 22:53:00.603968"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:00.630813"], ["updated_at", "2019-05-19 22:53:00.630813"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:00.641890"], ["updated_at", "2019-05-19 22:53:00.641890"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.644851"], ["updated_at", "2019-05-19 22:53:00.644851"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.645958"], ["ends_at", "2019-05-19 22:53:00.645958"], ["average_time", "2019-05-19 22:53:00.645958"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.648528"], ["updated_at", "2019-05-19 22:53:00.648528"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.650147"], ["ends_at", "2019-05-19 22:53:00.650147"], ["average_time", "2019-05-19 22:53:00.650147"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 22:53:00.655479"], ["updated_at", "2019-05-19 22:53:00.655479"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.657882"], ["ends_at", "2019-05-19 22:53:00.657882"], ["average_time", "2019-05-19 22:53:00.657882"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.660355"], ["updated_at", "2019-05-19 22:53:00.660355"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.661359"], ["ends_at", "2019-05-19 22:53:00.661359"], ["average_time", "2019-05-19 22:53:00.661359"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.662249"], ["ends_at", "2019-05-19 22:53:00.662249"], ["average_time", "2019-05-19 22:53:00.662249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.662976"], ["updated_at", "2019-05-19 22:53:00.662976"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.663666"], ["ends_at", "2019-05-19 22:53:00.663666"], ["average_time", "2019-05-19 22:53:00.663666"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (1.0ms) 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", "2019-05-19 22:53:00.668315"], ["updated_at", "2019-05-19 22:53:00.668315"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.671984"], ["ends_at", "2019-05-19 22:53:00.671984"], ["average_time", "2019-05-19 22:53:00.671984"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.674139"], ["ends_at", "2019-05-19 22:53:00.674139"], ["average_time", "2019-05-19 22:53:00.674139"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.675796"], ["updated_at", "2019-05-19 22:53:00.675796"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.677586"], ["ends_at", "2019-05-19 22:53:00.677586"], ["average_time", "2019-05-19 22:53:00.677586"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (2.7ms) 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", "2019-05-19 22:53:00.682258"], ["updated_at", "2019-05-19 22:53:00.682258"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.686872"], ["ends_at", "2019-05-19 22:53:00.686872"], ["average_time", "2019-05-19 22:53:00.686872"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.688791"], ["ends_at", "2019-05-19 22:53:00.688791"], ["average_time", "2019-05-19 22:53:00.688791"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.690249"], ["updated_at", "2019-05-19 22:53:00.690249"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.691542"], ["ends_at", "2019-05-19 22:53:00.691542"], ["average_time", "2019-05-19 22:53:00.691542"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:53:00.692480"], ["updated_at", "2019-05-19 22:53:00.692480"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:00.695428"], ["updated_at", "2019-05-19 22:53:00.695428"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.696675"], ["ends_at", "2019-05-19 22:53:00.696675"], ["average_time", "2019-05-19 22:53:00.696675"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.697818"], ["ends_at", "2019-05-19 22:53:00.697818"], ["average_time", "2019-05-19 22:53:00.697818"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.698735"], ["updated_at", "2019-05-19 22:53:00.698735"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.700403"], ["ends_at", "2019-05-19 22:53:00.700403"], ["average_time", "2019-05-19 22:53:00.700403"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:00.709553"], ["updated_at", "2019-05-19 22:53:00.709553"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.710928"], ["ends_at", "2019-05-19 22:53:00.710928"], ["average_time", "2019-05-19 22:53:00.710928"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.711836"], ["ends_at", "2019-05-19 22:53:00.711836"], ["average_time", "2019-05-19 22:53:00.711836"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.712625"], ["updated_at", "2019-05-19 22:53:00.712625"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.713326"], ["ends_at", "2019-05-19 22:53:00.713326"], ["average_time", "2019-05-19 22:53:00.713326"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:00.717179"], ["updated_at", "2019-05-19 22:53:00.717179"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.719063"], ["ends_at", "2019-05-19 22:53:00.719063"], ["average_time", "2019-05-19 22:53:00.719063"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.722261"], ["ends_at", "2019-05-19 22:53:00.722261"], ["average_time", "2019-05-19 22:53:00.722261"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.724607"], ["updated_at", "2019-05-19 22:53:00.724607"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.726085"], ["ends_at", "2019-05-19 22:53:00.726085"], ["average_time", "2019-05-19 22:53:00.726085"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.730682"], ["updated_at", "2019-05-19 22:53:00.730682"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.732413"], ["ends_at", "2019-05-19 22:53:00.732413"], ["average_time", "2019-05-19 22:53:00.732413"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.734087"], ["ends_at", "2019-05-19 22:53:00.734087"], ["average_time", "2019-05-19 22:53:00.734087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.735525"], ["updated_at", "2019-05-19 22:53:00.735525"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.736956"], ["ends_at", "2019-05-19 22:53:00.736956"], ["average_time", "2019-05-19 22:53:00.736956"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:53:00.738418"], ["updated_at", "2019-05-19 22:53:00.738418"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.749376"], ["updated_at", "2019-05-19 22:53:00.749376"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.750533"], ["ends_at", "2019-05-19 22:53:00.750533"], ["average_time", "2019-05-19 22:53:00.750533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.751470"], ["ends_at", "2019-05-19 22:53:00.751470"], ["average_time", "2019-05-19 22:53:00.751470"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.752161"], ["updated_at", "2019-05-19 22:53:00.752161"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.752970"], ["ends_at", "2019-05-19 22:53:00.752970"], ["average_time", "2019-05-19 22:53:00.752970"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.755402"], ["updated_at", "2019-05-19 22:53:00.755402"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.756379"], ["ends_at", "2019-05-19 22:53:00.756379"], ["average_time", "2019-05-19 22:53:00.756379"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.757223"], ["ends_at", "2019-05-19 22:53:00.757223"], ["average_time", "2019-05-19 22:53:00.757223"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.757912"], ["updated_at", "2019-05-19 22:53:00.757912"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.758542"], ["ends_at", "2019-05-19 22:53:00.758542"], ["average_time", "2019-05-19 22:53:00.758542"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:00.762323"], ["updated_at", "2019-05-19 22:53:00.762323"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.763489"], ["ends_at", "2019-05-19 22:53:00.763489"], ["average_time", "2019-05-19 22:53:00.763489"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.764548"], ["ends_at", "2019-05-19 22:53:00.764548"], ["average_time", "2019-05-19 22:53:00.764548"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:00.765497"], ["updated_at", "2019-05-19 22:53:00.765497"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:00.767180"], ["ends_at", "2019-05-19 22:53:00.767180"], ["average_time", "2019-05-19 22:53:00.767180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (2.7ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (0.8ms) 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) +  (1.9ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.8ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (2.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:53:16.539604"], ["updated_at", "2019-05-19 22:53:16.539604"]] +  (1.1ms) commit transaction +  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:16.719619"], ["updated_at", "2019-05-19 22:53:16.719619"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.728253"], ["ends_at", "2019-05-19 22:53:16.728253"], ["average_time", "2019-05-19 22:53:16.728253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.729285"], ["updated_at", "2019-05-19 22:53:16.729285"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.730055"], ["ends_at", "2019-05-19 22:53:16.730055"], ["average_time", "2019-05-19 22:53:16.730055"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.731249"], ["ends_at", "2019-05-19 22:53:16.731249"], ["average_time", "2019-05-19 22:53:16.731249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.739339"], ["updated_at", "2019-05-19 22:53:16.739339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.740501"], ["ends_at", "2019-05-19 22:53:16.740501"], ["average_time", "2019-05-19 22:53:16.740501"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.741360"], ["updated_at", "2019-05-19 22:53:16.741360"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.742242"], ["ends_at", "2019-05-19 22:53:16.742242"], ["average_time", "2019-05-19 22:53:16.742242"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.743565"], ["ends_at", "2019-05-19 22:53:16.743565"], ["average_time", "2019-05-19 22:53:16.743565"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.746339"], ["updated_at", "2019-05-19 22:53:16.746339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.747564"], ["ends_at", "2019-05-19 22:53:16.747564"], ["average_time", "2019-05-19 22:53:16.747564"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:16.748729"], ["updated_at", "2019-05-19 22:53:16.748729"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.750569"], ["ends_at", "2019-05-19 22:53:16.750569"], ["average_time", "2019-05-19 22:53:16.750569"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.753100"], ["ends_at", "2019-05-19 22:53:16.753100"], ["average_time", "2019-05-19 22:53:16.753100"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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) asc +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:16.757299"], ["updated_at", "2019-05-19 22:53:16.757299"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (2.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.3ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.8ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:16.766653"], ["updated_at", "2019-05-19 22:53:16.766653"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.769803"], ["ends_at", "2019-05-19 22:53:16.769803"], ["average_time", "2019-05-19 22:53:16.769803"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:16.772985"], ["updated_at", "2019-05-19 22:53:16.772985"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.774266"], ["ends_at", "2019-05-19 22:53:16.774266"], ["average_time", "2019-05-19 22:53:16.774266"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (8.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:53:16.786358"], ["updated_at", "2019-05-19 22:53:16.786358"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.787375"], ["ends_at", "2019-05-19 22:53:16.787375"], ["average_time", "2019-05-19 22:53:16.787375"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.792020"], ["updated_at", "2019-05-19 22:53:16.792020"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.794149"], ["updated_at", "2019-05-19 22:53:16.794149"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 22:53:16.796819"], ["updated_at", "2019-05-19 22:53:16.796819"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.800051"], ["updated_at", "2019-05-19 22:53:16.800051"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.802207"], ["updated_at", "2019-05-19 22:53:16.802207"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.804332"], ["updated_at", "2019-05-19 22:53:16.804332"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.807399"], ["updated_at", "2019-05-19 22:53:16.807399"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.809549"], ["updated_at", "2019-05-19 22:53:16.809549"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.811626"], ["updated_at", "2019-05-19 22:53:16.811626"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.814357"], ["updated_at", "2019-05-19 22:53:16.814357"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.816938"], ["updated_at", "2019-05-19 22:53:16.816938"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:16.819816"], ["updated_at", "2019-05-19 22:53:16.819816"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:53:16.828026"], ["updated_at", "2019-05-19 22:53:16.828026"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.834543"], ["updated_at", "2019-05-19 22:53:16.834543"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.837330"], ["updated_at", "2019-05-19 22:53:16.837330"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.839973"], ["updated_at", "2019-05-19 22:53:16.839973"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.842297"], ["updated_at", "2019-05-19 22:53:16.842297"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.846152"], ["updated_at", "2019-05-19 22:53:16.846152"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.848558"], ["updated_at", "2019-05-19 22:53:16.848558"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.850785"], ["updated_at", "2019-05-19 22:53:16.850785"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.853808"], ["updated_at", "2019-05-19 22:53:16.853808"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.855947"], ["updated_at", "2019-05-19 22:53:16.855947"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.859065"], ["updated_at", "2019-05-19 22:53:16.859065"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.860589"], ["ends_at", "2019-05-19 22:53:16.860589"], ["average_time", "2019-05-19 22:53:16.860589"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.891866"], ["updated_at", "2019-05-19 22:53:16.891866"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.901529"], ["updated_at", "2019-05-19 22:53:16.901529"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.8ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.912042"], ["updated_at", "2019-05-19 22:53:16.912042"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.920611"], ["updated_at", "2019-05-19 22:53:16.920611"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.930659"], ["updated_at", "2019-05-19 22:53:16.930659"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.940339"], ["updated_at", "2019-05-19 22:53:16.940339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:16.955275"], ["updated_at", "2019-05-19 22:53:16.955275"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.957860"], ["updated_at", "2019-05-19 22:53:16.957860"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.958838"], ["ends_at", "2019-05-19 22:53:16.958838"], ["average_time", "2019-05-19 22:53:16.958838"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.962085"], ["updated_at", "2019-05-19 22:53:16.962085"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.963625"], ["ends_at", "2019-05-19 22:53:16.963625"], ["average_time", "2019-05-19 22:53:16.963625"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:16.966134"], ["updated_at", "2019-05-19 22:53:16.966134"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.967785"], ["ends_at", "2019-05-19 22:53:16.967785"], ["average_time", "2019-05-19 22:53:16.967785"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.970122"], ["updated_at", "2019-05-19 22:53:16.970122"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.971080"], ["ends_at", "2019-05-19 22:53:16.971080"], ["average_time", "2019-05-19 22:53:16.971080"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.971963"], ["ends_at", "2019-05-19 22:53:16.971963"], ["average_time", "2019-05-19 22:53:16.971963"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.972910"], ["updated_at", "2019-05-19 22:53:16.972910"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.973649"], ["ends_at", "2019-05-19 22:53:16.973649"], ["average_time", "2019-05-19 22:53:16.973649"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:16.976981"], ["updated_at", "2019-05-19 22:53:16.976981"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.978498"], ["ends_at", "2019-05-19 22:53:16.978498"], ["average_time", "2019-05-19 22:53:16.978498"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.979394"], ["ends_at", "2019-05-19 22:53:16.979394"], ["average_time", "2019-05-19 22:53:16.979394"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.980065"], ["updated_at", "2019-05-19 22:53:16.980065"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.980724"], ["ends_at", "2019-05-19 22:53:16.980724"], ["average_time", "2019-05-19 22:53:16.980724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.983327"], ["updated_at", "2019-05-19 22:53:16.983327"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.984282"], ["ends_at", "2019-05-19 22:53:16.984282"], ["average_time", "2019-05-19 22:53:16.984282"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.985163"], ["ends_at", "2019-05-19 22:53:16.985163"], ["average_time", "2019-05-19 22:53:16.985163"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.985911"], ["updated_at", "2019-05-19 22:53:16.985911"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.987034"], ["ends_at", "2019-05-19 22:53:16.987034"], ["average_time", "2019-05-19 22:53:16.987034"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:53:16.988121"], ["updated_at", "2019-05-19 22:53:16.988121"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.990748"], ["updated_at", "2019-05-19 22:53:16.990748"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.991760"], ["ends_at", "2019-05-19 22:53:16.991760"], ["average_time", "2019-05-19 22:53:16.991760"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.992836"], ["ends_at", "2019-05-19 22:53:16.992836"], ["average_time", "2019-05-19 22:53:16.992836"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:16.993747"], ["updated_at", "2019-05-19 22:53:16.993747"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.994546"], ["ends_at", "2019-05-19 22:53:16.994546"], ["average_time", "2019-05-19 22:53:16.994546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:16.997815"], ["updated_at", "2019-05-19 22:53:16.997815"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:16.999040"], ["ends_at", "2019-05-19 22:53:16.999040"], ["average_time", "2019-05-19 22:53:16.999040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.000056"], ["ends_at", "2019-05-19 22:53:17.000056"], ["average_time", "2019-05-19 22:53:17.000056"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:17.000847"], ["updated_at", "2019-05-19 22:53:17.000847"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.005036"], ["ends_at", "2019-05-19 22:53:17.005036"], ["average_time", "2019-05-19 22:53:17.005036"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:17.007950"], ["updated_at", "2019-05-19 22:53:17.007950"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.008968"], ["ends_at", "2019-05-19 22:53:17.008968"], ["average_time", "2019-05-19 22:53:17.008968"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.009952"], ["ends_at", "2019-05-19 22:53:17.009952"], ["average_time", "2019-05-19 22:53:17.009952"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.010680"], ["updated_at", "2019-05-19 22:53:17.010680"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.011373"], ["ends_at", "2019-05-19 22:53:17.011373"], ["average_time", "2019-05-19 22:53:17.011373"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.013724"], ["updated_at", "2019-05-19 22:53:17.013724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.014743"], ["ends_at", "2019-05-19 22:53:17.014743"], ["average_time", "2019-05-19 22:53:17.014743"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.015615"], ["ends_at", "2019-05-19 22:53:17.015615"], ["average_time", "2019-05-19 22:53:17.015615"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.016460"], ["updated_at", "2019-05-19 22:53:17.016460"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.017279"], ["ends_at", "2019-05-19 22:53:17.017279"], ["average_time", "2019-05-19 22:53:17.017279"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:53:17.018398"], ["updated_at", "2019-05-19 22:53:17.018398"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:53:17.020918"], ["updated_at", "2019-05-19 22:53:17.020918"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.021940"], ["ends_at", "2019-05-19 22:53:17.021940"], ["average_time", "2019-05-19 22:53:17.021940"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.022863"], ["ends_at", "2019-05-19 22:53:17.022863"], ["average_time", "2019-05-19 22:53:17.022863"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.023581"], ["updated_at", "2019-05-19 22:53:17.023581"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.024282"], ["ends_at", "2019-05-19 22:53:17.024282"], ["average_time", "2019-05-19 22:53:17.024282"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.026756"], ["updated_at", "2019-05-19 22:53:17.026756"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.027782"], ["ends_at", "2019-05-19 22:53:17.027782"], ["average_time", "2019-05-19 22:53:17.027782"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.028667"], ["ends_at", "2019-05-19 22:53:17.028667"], ["average_time", "2019-05-19 22:53:17.028667"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.029406"], ["updated_at", "2019-05-19 22:53:17.029406"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.030060"], ["ends_at", "2019-05-19 22:53:17.030060"], ["average_time", "2019-05-19 22:53:17.030060"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.033047"], ["updated_at", "2019-05-19 22:53:17.033047"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.034051"], ["ends_at", "2019-05-19 22:53:17.034051"], ["average_time", "2019-05-19 22:53:17.034051"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.034952"], ["ends_at", "2019-05-19 22:53:17.034952"], ["average_time", "2019-05-19 22:53:17.034952"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:53:17.035698"], ["updated_at", "2019-05-19 22:53:17.035698"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:53:17.036380"], ["ends_at", "2019-05-19 22:53:17.036380"], ["average_time", "2019-05-19 22:53:17.036380"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.9ms) SELECT sqlite_version(*) +  (2.8ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (0.8ms) 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) +  (0.8ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.1ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:56:58.134427"], ["updated_at", "2019-05-19 22:56:58.134427"]] +  (0.7ms) commit transaction +  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.352970"], ["updated_at", "2019-05-19 22:56:58.352970"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.361761"], ["ends_at", "2019-05-19 22:56:58.361761"], ["average_time", "2019-05-19 22:56:58.361761"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:56:58.363377"], ["updated_at", "2019-05-19 22:56:58.363377"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.364944"], ["ends_at", "2019-05-19 22:56:58.364944"], ["average_time", "2019-05-19 22:56:58.364944"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.366362"], ["ends_at", "2019-05-19 22:56:58.366362"], ["average_time", "2019-05-19 22:56:58.366362"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.375301"], ["updated_at", "2019-05-19 22:56:58.375301"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.376661"], ["ends_at", "2019-05-19 22:56:58.376661"], ["average_time", "2019-05-19 22:56:58.376661"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:56:58.377854"], ["updated_at", "2019-05-19 22:56:58.377854"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.378870"], ["ends_at", "2019-05-19 22:56:58.378870"], ["average_time", "2019-05-19 22:56:58.378870"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.380342"], ["ends_at", "2019-05-19 22:56:58.380342"], ["average_time", "2019-05-19 22:56:58.380342"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.383234"], ["updated_at", "2019-05-19 22:56:58.383234"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.384354"], ["ends_at", "2019-05-19 22:56:58.384354"], ["average_time", "2019-05-19 22:56:58.384354"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.385217"], ["updated_at", "2019-05-19 22:56:58.385217"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.385892"], ["ends_at", "2019-05-19 22:56:58.385892"], ["average_time", "2019-05-19 22:56:58.385892"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.386812"], ["ends_at", "2019-05-19 22:56:58.386812"], ["average_time", "2019-05-19 22:56:58.386812"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:56:58.389774"], ["updated_at", "2019-05-19 22:56:58.389774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:56:58.396855"], ["updated_at", "2019-05-19 22:56:58.396855"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.401166"], ["ends_at", "2019-05-19 22:56:58.401166"], ["average_time", "2019-05-19 22:56:58.401166"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:56:58.404495"], ["updated_at", "2019-05-19 22:56:58.404495"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (6.5ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.413645"], ["ends_at", "2019-05-19 22:56:58.413645"], ["average_time", "2019-05-19 22:56:58.413645"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) SELECT COUNT(*) FROM "punches" +  (10.1ms) rollback transaction +  (0.5ms) begin transaction +  (0.2ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 22:56:58.451975"], ["updated_at", "2019-05-19 22:56:58.451975"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.453155"], ["ends_at", "2019-05-19 22:56:58.453155"], ["average_time", "2019-05-19 22:56:58.453155"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 22:56:58.463548"], ["updated_at", "2019-05-19 22:56:58.463548"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.468787"], ["updated_at", "2019-05-19 22:56:58.468787"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (8.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.480557"], ["updated_at", "2019-05-19 22:56:58.480557"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:56:58.483913"], ["updated_at", "2019-05-19 22:56:58.483913"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:56:58.487563"], ["updated_at", "2019-05-19 22:56:58.487563"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.491761"], ["updated_at", "2019-05-19 22:56:58.491761"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 22:56:58.494727"], ["updated_at", "2019-05-19 22:56:58.494727"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (7.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.505954"], ["updated_at", "2019-05-19 22:56:58.505954"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.508876"], ["updated_at", "2019-05-19 22:56:58.508876"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.512159"], ["updated_at", "2019-05-19 22:56:58.512159"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.514723"], ["updated_at", "2019-05-19 22:56:58.514723"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.518844"], ["updated_at", "2019-05-19 22:56:58.518844"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.526812"], ["updated_at", "2019-05-19 22:56:58.526812"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.533665"], ["updated_at", "2019-05-19 22:56:58.533665"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.537896"], ["updated_at", "2019-05-19 22:56:58.537896"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:56:58.542714"], ["updated_at", "2019-05-19 22:56:58.542714"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.545821"], ["updated_at", "2019-05-19 22:56:58.545821"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.549188"], ["updated_at", "2019-05-19 22:56:58.549188"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.551489"], ["updated_at", "2019-05-19 22:56:58.551489"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.553609"], ["updated_at", "2019-05-19 22:56:58.553609"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.558063"], ["updated_at", "2019-05-19 22:56:58.558063"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.560350"], ["updated_at", "2019-05-19 22:56:58.560350"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.564156"], ["updated_at", "2019-05-19 22:56:58.564156"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.565386"], ["ends_at", "2019-05-19 22:56:58.565386"], ["average_time", "2019-05-19 22:56:58.565386"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.602483"], ["updated_at", "2019-05-19 22:56:58.602483"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.608553"], ["updated_at", "2019-05-19 22:56:58.608553"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.618925"], ["updated_at", "2019-05-19 22:56:58.618925"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.9ms) 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", "2019-05-19 22:56:58.633984"], ["updated_at", "2019-05-19 22:56:58.633984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (1.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.8ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.649766"], ["updated_at", "2019-05-19 22:56:58.649766"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.9ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (1.4ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 22:56:58.662641"], ["updated_at", "2019-05-19 22:56:58.662641"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 22:56:58.673312"], ["updated_at", "2019-05-19 22:56:58.673312"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.9ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:56:58.679238"], ["updated_at", "2019-05-19 22:56:58.679238"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.681594"], ["ends_at", "2019-05-19 22:56:58.681594"], ["average_time", "2019-05-19 22:56:58.681594"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.687079"], ["updated_at", "2019-05-19 22:56:58.687079"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.690160"], ["ends_at", "2019-05-19 22:56:58.690160"], ["average_time", "2019-05-19 22:56:58.690160"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.701696"], ["updated_at", "2019-05-19 22:56:58.701696"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.703355"], ["ends_at", "2019-05-19 22:56:58.703355"], ["average_time", "2019-05-19 22:56:58.703355"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.705474"], ["updated_at", "2019-05-19 22:56:58.705474"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.706484"], ["ends_at", "2019-05-19 22:56:58.706484"], ["average_time", "2019-05-19 22:56:58.706484"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.707967"], ["ends_at", "2019-05-19 22:56:58.707967"], ["average_time", "2019-05-19 22:56:58.707967"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.708806"], ["updated_at", "2019-05-19 22:56:58.708806"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.709596"], ["ends_at", "2019-05-19 22:56:58.709596"], ["average_time", "2019-05-19 22:56:58.709596"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.715417"], ["updated_at", "2019-05-19 22:56:58.715417"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.717172"], ["ends_at", "2019-05-19 22:56:58.717172"], ["average_time", "2019-05-19 22:56:58.717172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.718788"], ["ends_at", "2019-05-19 22:56:58.718788"], ["average_time", "2019-05-19 22:56:58.718788"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.719892"], ["updated_at", "2019-05-19 22:56:58.719892"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.720740"], ["ends_at", "2019-05-19 22:56:58.720740"], ["average_time", "2019-05-19 22:56:58.720740"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.724667"], ["updated_at", "2019-05-19 22:56:58.724667"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.726835"], ["ends_at", "2019-05-19 22:56:58.726835"], ["average_time", "2019-05-19 22:56:58.726835"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.728176"], ["ends_at", "2019-05-19 22:56:58.728176"], ["average_time", "2019-05-19 22:56:58.728176"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.729263"], ["updated_at", "2019-05-19 22:56:58.729263"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.730267"], ["ends_at", "2019-05-19 22:56:58.730267"], ["average_time", "2019-05-19 22:56:58.730267"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:56:58.731465"], ["updated_at", "2019-05-19 22:56:58.731465"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (3.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", "2019-05-19 22:56:58.734185"], ["updated_at", "2019-05-19 22:56:58.734185"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.739052"], ["ends_at", "2019-05-19 22:56:58.739052"], ["average_time", "2019-05-19 22:56:58.739052"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.741225"], ["ends_at", "2019-05-19 22:56:58.741225"], ["average_time", "2019-05-19 22:56:58.741225"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.742084"], ["updated_at", "2019-05-19 22:56:58.742084"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.742827"], ["ends_at", "2019-05-19 22:56:58.742827"], ["average_time", "2019-05-19 22:56:58.742827"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:56:58.746024"], ["updated_at", "2019-05-19 22:56:58.746024"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.747200"], ["ends_at", "2019-05-19 22:56:58.747200"], ["average_time", "2019-05-19 22:56:58.747200"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.748088"], ["ends_at", "2019-05-19 22:56:58.748088"], ["average_time", "2019-05-19 22:56:58.748088"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.748819"], ["updated_at", "2019-05-19 22:56:58.748819"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.749449"], ["ends_at", "2019-05-19 22:56:58.749449"], ["average_time", "2019-05-19 22:56:58.749449"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:56:58.752050"], ["updated_at", "2019-05-19 22:56:58.752050"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.753095"], ["ends_at", "2019-05-19 22:56:58.753095"], ["average_time", "2019-05-19 22:56:58.753095"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.753973"], ["ends_at", "2019-05-19 22:56:58.753973"], ["average_time", "2019-05-19 22:56:58.753973"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.754699"], ["updated_at", "2019-05-19 22:56:58.754699"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.755430"], ["ends_at", "2019-05-19 22:56:58.755430"], ["average_time", "2019-05-19 22:56:58.755430"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:56:58.759176"], ["updated_at", "2019-05-19 22:56:58.759176"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.760344"], ["ends_at", "2019-05-19 22:56:58.760344"], ["average_time", "2019-05-19 22:56:58.760344"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.761459"], ["ends_at", "2019-05-19 22:56:58.761459"], ["average_time", "2019-05-19 22:56:58.761459"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.762309"], ["updated_at", "2019-05-19 22:56:58.762309"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.763294"], ["ends_at", "2019-05-19 22:56:58.763294"], ["average_time", "2019-05-19 22:56:58.763294"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 22:56:58.764628"], ["updated_at", "2019-05-19 22:56:58.764628"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 22:56:58.768028"], ["updated_at", "2019-05-19 22:56:58.768028"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.769972"], ["ends_at", "2019-05-19 22:56:58.769972"], ["average_time", "2019-05-19 22:56:58.769972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.771027"], ["ends_at", "2019-05-19 22:56:58.771027"], ["average_time", "2019-05-19 22:56:58.771027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.771826"], ["updated_at", "2019-05-19 22:56:58.771826"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.772552"], ["ends_at", "2019-05-19 22:56:58.772552"], ["average_time", "2019-05-19 22:56:58.772552"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 22:56:58.777480"], ["updated_at", "2019-05-19 22:56:58.777480"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.778586"], ["ends_at", "2019-05-19 22:56:58.778586"], ["average_time", "2019-05-19 22:56:58.778586"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.779761"], ["ends_at", "2019-05-19 22:56:58.779761"], ["average_time", "2019-05-19 22:56:58.779761"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.780528"], ["updated_at", "2019-05-19 22:56:58.780528"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.781251"], ["ends_at", "2019-05-19 22:56:58.781251"], ["average_time", "2019-05-19 22:56:58.781251"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.783883"], ["updated_at", "2019-05-19 22:56:58.783883"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.784936"], ["ends_at", "2019-05-19 22:56:58.784936"], ["average_time", "2019-05-19 22:56:58.784936"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.785809"], ["ends_at", "2019-05-19 22:56:58.785809"], ["average_time", "2019-05-19 22:56:58.785809"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 22:56:58.786550"], ["updated_at", "2019-05-19 22:56:58.786550"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 22:56:58.787582"], ["ends_at", "2019-05-19 22:56:58.787582"], ["average_time", "2019-05-19 22:56:58.787582"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.7ms) SELECT sqlite_version(*) +  (1.9ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (1.2ms) 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) +  (0.7ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.0ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:04:06.152075"], ["updated_at", "2019-05-19 23:04:06.152075"]] +  (0.5ms) commit transaction +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.363839"], ["updated_at", "2019-05-19 23:04:06.363839"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.386505"], ["ends_at", "2019-05-19 23:04:06.386505"], ["average_time", "2019-05-19 23:04:06.386505"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.388394"], ["updated_at", "2019-05-19 23:04:06.388394"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.389840"], ["ends_at", "2019-05-19 23:04:06.389840"], ["average_time", "2019-05-19 23:04:06.389840"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.391577"], ["ends_at", "2019-05-19 23:04:06.391577"], ["average_time", "2019-05-19 23:04:06.391577"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.399492"], ["updated_at", "2019-05-19 23:04:06.399492"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.400708"], ["ends_at", "2019-05-19 23:04:06.400708"], ["average_time", "2019-05-19 23:04:06.400708"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.401599"], ["updated_at", "2019-05-19 23:04:06.401599"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.402283"], ["ends_at", "2019-05-19 23:04:06.402283"], ["average_time", "2019-05-19 23:04:06.402283"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.403075"], ["ends_at", "2019-05-19 23:04:06.403075"], ["average_time", "2019-05-19 23:04:06.403075"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.405714"], ["updated_at", "2019-05-19 23:04:06.405714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.407183"], ["ends_at", "2019-05-19 23:04:06.407183"], ["average_time", "2019-05-19 23:04:06.407183"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.408557"], ["updated_at", "2019-05-19 23:04:06.408557"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.409722"], ["ends_at", "2019-05-19 23:04:06.409722"], ["average_time", "2019-05-19 23:04:06.409722"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.411064"], ["ends_at", "2019-05-19 23:04:06.411064"], ["average_time", "2019-05-19 23:04:06.411064"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.414015"], ["updated_at", "2019-05-19 23:04:06.414015"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.422402"], ["updated_at", "2019-05-19 23:04:06.422402"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.424621"], ["ends_at", "2019-05-19 23:04:06.424621"], ["average_time", "2019-05-19 23:04:06.424621"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.432276"], ["updated_at", "2019-05-19 23:04:06.432276"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.434050"], ["ends_at", "2019-05-19 23:04:06.434050"], ["average_time", "2019-05-19 23:04:06.434050"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:06.437526"], ["updated_at", "2019-05-19 23:04:06.437526"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.439310"], ["ends_at", "2019-05-19 23:04:06.439310"], ["average_time", "2019-05-19 23:04:06.439310"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.443508"], ["updated_at", "2019-05-19 23:04:06.443508"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:04:06.446260"], ["updated_at", "2019-05-19 23:04:06.446260"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.450947"], ["updated_at", "2019-05-19 23:04:06.450947"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.453535"], ["updated_at", "2019-05-19 23:04:06.453535"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.456720"], ["updated_at", "2019-05-19 23:04:06.456720"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.459082"], ["updated_at", "2019-05-19 23:04:06.459082"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.461275"], ["updated_at", "2019-05-19 23:04:06.461275"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.464017"], ["updated_at", "2019-05-19 23:04:06.464017"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.466305"], ["updated_at", "2019-05-19 23:04:06.466305"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.469190"], ["updated_at", "2019-05-19 23:04:06.469190"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.471791"], ["updated_at", "2019-05-19 23:04:06.471791"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.474059"], ["updated_at", "2019-05-19 23:04:06.474059"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.481862"], ["updated_at", "2019-05-19 23:04:06.481862"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.484198"], ["updated_at", "2019-05-19 23:04:06.484198"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.486764"], ["updated_at", "2019-05-19 23:04:06.486764"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.489095"], ["updated_at", "2019-05-19 23:04:06.489095"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.492338"], ["updated_at", "2019-05-19 23:04:06.492338"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:06.497478"], ["updated_at", "2019-05-19 23:04:06.497478"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.501317"], ["updated_at", "2019-05-19 23:04:06.501317"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.504376"], ["updated_at", "2019-05-19 23:04:06.504376"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:06.506700"], ["updated_at", "2019-05-19 23:04:06.506700"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.510386"], ["updated_at", "2019-05-19 23:04:06.510386"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:06.515576"], ["updated_at", "2019-05-19 23:04:06.515576"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.517227"], ["ends_at", "2019-05-19 23:04:06.517227"], ["average_time", "2019-05-19 23:04:06.517227"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.543717"], ["updated_at", "2019-05-19 23:04:06.543717"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:04:06.549876"], ["updated_at", "2019-05-19 23:04:06.549876"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:06.556440"], ["updated_at", "2019-05-19 23:04:06.556440"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.2ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.567373"], ["updated_at", "2019-05-19 23:04:06.567373"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:06.574259"], ["updated_at", "2019-05-19 23:04:06.574259"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.584488"], ["updated_at", "2019-05-19 23:04:06.584488"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.591546"], ["updated_at", "2019-05-19 23:04:06.591546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:06.595046"], ["updated_at", "2019-05-19 23:04:06.595046"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.596899"], ["ends_at", "2019-05-19 23:04:06.596899"], ["average_time", "2019-05-19 23:04:06.596899"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.609523"], ["updated_at", "2019-05-19 23:04:06.609523"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.611887"], ["ends_at", "2019-05-19 23:04:06.611887"], ["average_time", "2019-05-19 23:04:06.611887"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.614404"], ["updated_at", "2019-05-19 23:04:06.614404"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.615934"], ["ends_at", "2019-05-19 23:04:06.615934"], ["average_time", "2019-05-19 23:04:06.615934"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.618190"], ["updated_at", "2019-05-19 23:04:06.618190"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.619770"], ["ends_at", "2019-05-19 23:04:06.619770"], ["average_time", "2019-05-19 23:04:06.619770"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.621010"], ["ends_at", "2019-05-19 23:04:06.621010"], ["average_time", "2019-05-19 23:04:06.621010"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.621882"], ["updated_at", "2019-05-19 23:04:06.621882"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.622581"], ["ends_at", "2019-05-19 23:04:06.622581"], ["average_time", "2019-05-19 23:04:06.622581"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.626017"], ["updated_at", "2019-05-19 23:04:06.626017"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.627135"], ["ends_at", "2019-05-19 23:04:06.627135"], ["average_time", "2019-05-19 23:04:06.627135"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.628144"], ["ends_at", "2019-05-19 23:04:06.628144"], ["average_time", "2019-05-19 23:04:06.628144"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.628879"], ["updated_at", "2019-05-19 23:04:06.628879"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.630297"], ["ends_at", "2019-05-19 23:04:06.630297"], ["average_time", "2019-05-19 23:04:06.630297"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.635855"], ["updated_at", "2019-05-19 23:04:06.635855"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.636990"], ["ends_at", "2019-05-19 23:04:06.636990"], ["average_time", "2019-05-19 23:04:06.636990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.638023"], ["ends_at", "2019-05-19 23:04:06.638023"], ["average_time", "2019-05-19 23:04:06.638023"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.638750"], ["updated_at", "2019-05-19 23:04:06.638750"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.639446"], ["ends_at", "2019-05-19 23:04:06.639446"], ["average_time", "2019-05-19 23:04:06.639446"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:04:06.640168"], ["updated_at", "2019-05-19 23:04:06.640168"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.642916"], ["updated_at", "2019-05-19 23:04:06.642916"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.644172"], ["ends_at", "2019-05-19 23:04:06.644172"], ["average_time", "2019-05-19 23:04:06.644172"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.645291"], ["ends_at", "2019-05-19 23:04:06.645291"], ["average_time", "2019-05-19 23:04:06.645291"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.646330"], ["updated_at", "2019-05-19 23:04:06.646330"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.649921"], ["ends_at", "2019-05-19 23:04:06.649921"], ["average_time", "2019-05-19 23:04:06.649921"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (2.8ms) 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", "2019-05-19 23:04:06.653253"], ["updated_at", "2019-05-19 23:04:06.653253"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.657277"], ["ends_at", "2019-05-19 23:04:06.657277"], ["average_time", "2019-05-19 23:04:06.657277"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.658267"], ["ends_at", "2019-05-19 23:04:06.658267"], ["average_time", "2019-05-19 23:04:06.658267"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.659069"], ["updated_at", "2019-05-19 23:04:06.659069"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.659846"], ["ends_at", "2019-05-19 23:04:06.659846"], ["average_time", "2019-05-19 23:04:06.659846"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:04:06.663616"], ["updated_at", "2019-05-19 23:04:06.663616"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.665730"], ["ends_at", "2019-05-19 23:04:06.665730"], ["average_time", "2019-05-19 23:04:06.665730"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.668024"], ["ends_at", "2019-05-19 23:04:06.668024"], ["average_time", "2019-05-19 23:04:06.668024"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.668988"], ["updated_at", "2019-05-19 23:04:06.668988"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.669873"], ["ends_at", "2019-05-19 23:04:06.669873"], ["average_time", "2019-05-19 23:04:06.669873"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.673092"], ["updated_at", "2019-05-19 23:04:06.673092"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.674216"], ["ends_at", "2019-05-19 23:04:06.674216"], ["average_time", "2019-05-19 23:04:06.674216"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.675837"], ["ends_at", "2019-05-19 23:04:06.675837"], ["average_time", "2019-05-19 23:04:06.675837"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.676697"], ["updated_at", "2019-05-19 23:04:06.676697"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.677694"], ["ends_at", "2019-05-19 23:04:06.677694"], ["average_time", "2019-05-19 23:04:06.677694"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:04:06.678852"], ["updated_at", "2019-05-19 23:04:06.678852"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:06.682233"], ["updated_at", "2019-05-19 23:04:06.682233"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.683687"], ["ends_at", "2019-05-19 23:04:06.683687"], ["average_time", "2019-05-19 23:04:06.683687"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.685156"], ["ends_at", "2019-05-19 23:04:06.685156"], ["average_time", "2019-05-19 23:04:06.685156"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.685967"], ["updated_at", "2019-05-19 23:04:06.685967"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.686639"], ["ends_at", "2019-05-19 23:04:06.686639"], ["average_time", "2019-05-19 23:04:06.686639"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.689110"], ["updated_at", "2019-05-19 23:04:06.689110"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.690578"], ["ends_at", "2019-05-19 23:04:06.690578"], ["average_time", "2019-05-19 23:04:06.690578"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.691810"], ["ends_at", "2019-05-19 23:04:06.691810"], ["average_time", "2019-05-19 23:04:06.691810"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.692620"], ["updated_at", "2019-05-19 23:04:06.692620"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.693340"], ["ends_at", "2019-05-19 23:04:06.693340"], ["average_time", "2019-05-19 23:04:06.693340"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.695803"], ["updated_at", "2019-05-19 23:04:06.695803"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.696794"], ["ends_at", "2019-05-19 23:04:06.696794"], ["average_time", "2019-05-19 23:04:06.696794"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.697684"], ["ends_at", "2019-05-19 23:04:06.697684"], ["average_time", "2019-05-19 23:04:06.697684"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:06.698487"], ["updated_at", "2019-05-19 23:04:06.698487"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:06.699325"], ["ends_at", "2019-05-19 23:04:06.699325"], ["average_time", "2019-05-19 23:04:06.699325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.7ms) SELECT sqlite_version(*) +  (1.0ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (0.8ms) 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) +  (0.7ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.3ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.0ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.2ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:04:17.972352"], ["updated_at", "2019-05-19 23:04:17.972352"]] +  (0.6ms) commit transaction +  (0.8ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.161743"], ["updated_at", "2019-05-19 23:04:18.161743"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.169711"], ["ends_at", "2019-05-19 23:04:18.169711"], ["average_time", "2019-05-19 23:04:18.169711"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.170829"], ["updated_at", "2019-05-19 23:04:18.170829"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.171631"], ["ends_at", "2019-05-19 23:04:18.171631"], ["average_time", "2019-05-19 23:04:18.171631"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.172462"], ["ends_at", "2019-05-19 23:04:18.172462"], ["average_time", "2019-05-19 23:04:18.172462"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.180389"], ["updated_at", "2019-05-19 23:04:18.180389"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.181605"], ["ends_at", "2019-05-19 23:04:18.181605"], ["average_time", "2019-05-19 23:04:18.181605"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.183230"], ["updated_at", "2019-05-19 23:04:18.183230"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.9ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.184913"], ["ends_at", "2019-05-19 23:04:18.184913"], ["average_time", "2019-05-19 23:04:18.184913"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.186685"], ["ends_at", "2019-05-19 23:04:18.186685"], ["average_time", "2019-05-19 23:04:18.186685"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.192005"], ["updated_at", "2019-05-19 23:04:18.192005"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.194022"], ["ends_at", "2019-05-19 23:04:18.194022"], ["average_time", "2019-05-19 23:04:18.194022"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.195577"], ["updated_at", "2019-05-19 23:04:18.195577"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.197108"], ["ends_at", "2019-05-19 23:04:18.197108"], ["average_time", "2019-05-19 23:04:18.197108"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.8ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.198642"], ["ends_at", "2019-05-19 23:04:18.198642"], ["average_time", "2019-05-19 23:04:18.198642"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.203049"], ["updated_at", "2019-05-19 23:04:18.203049"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.211520"], ["updated_at", "2019-05-19 23:04:18.211520"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.213841"], ["ends_at", "2019-05-19 23:04:18.213841"], ["average_time", "2019-05-19 23:04:18.213841"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.219483"], ["updated_at", "2019-05-19 23:04:18.219483"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.221499"], ["ends_at", "2019-05-19 23:04:18.221499"], ["average_time", "2019-05-19 23:04:18.221499"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:18.226234"], ["updated_at", "2019-05-19 23:04:18.226234"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.232529"], ["ends_at", "2019-05-19 23:04:18.232529"], ["average_time", "2019-05-19 23:04:18.232529"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (2.2ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.240886"], ["updated_at", "2019-05-19 23:04:18.240886"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:18.246740"], ["updated_at", "2019-05-19 23:04:18.246740"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.9ms) 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", "2019-05-19 23:04:18.250367"], ["updated_at", "2019-05-19 23:04:18.250367"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.261937"], ["updated_at", "2019-05-19 23:04:18.261937"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.264930"], ["updated_at", "2019-05-19 23:04:18.264930"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.267153"], ["updated_at", "2019-05-19 23:04:18.267153"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:04:18.271125"], ["updated_at", "2019-05-19 23:04:18.271125"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.275026"], ["updated_at", "2019-05-19 23:04:18.275026"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.279195"], ["updated_at", "2019-05-19 23:04:18.279195"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.281634"], ["updated_at", "2019-05-19 23:04:18.281634"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.284011"], ["updated_at", "2019-05-19 23:04:18.284011"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.292874"], ["updated_at", "2019-05-19 23:04:18.292874"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.300306"], ["updated_at", "2019-05-19 23:04:18.300306"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (1.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", "2019-05-19 23:04:18.302989"], ["updated_at", "2019-05-19 23:04:18.302989"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:04:18.308112"], ["updated_at", "2019-05-19 23:04:18.308112"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.311146"], ["updated_at", "2019-05-19 23:04:18.311146"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.313539"], ["updated_at", "2019-05-19 23:04:18.313539"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.317411"], ["updated_at", "2019-05-19 23:04:18.317411"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.322212"], ["updated_at", "2019-05-19 23:04:18.322212"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.325060"], ["updated_at", "2019-05-19 23:04:18.325060"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:18.330415"], ["updated_at", "2019-05-19 23:04:18.330415"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.333609"], ["updated_at", "2019-05-19 23:04:18.333609"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:18.340434"], ["updated_at", "2019-05-19 23:04:18.340434"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.342234"], ["ends_at", "2019-05-19 23:04:18.342234"], ["average_time", "2019-05-19 23:04:18.342234"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.9ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.373576"], ["updated_at", "2019-05-19 23:04:18.373576"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.383001"], ["updated_at", "2019-05-19 23:04:18.383001"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.2ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:04:18.393140"], ["updated_at", "2019-05-19 23:04:18.393140"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.399582"], ["updated_at", "2019-05-19 23:04:18.399582"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.409833"], ["updated_at", "2019-05-19 23:04:18.409833"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (1.9ms) 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", "2019-05-19 23:04:18.418363"], ["updated_at", "2019-05-19 23:04:18.418363"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.428934"], ["updated_at", "2019-05-19 23:04:18.428934"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.432472"], ["updated_at", "2019-05-19 23:04:18.432472"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.433595"], ["ends_at", "2019-05-19 23:04:18.433595"], ["average_time", "2019-05-19 23:04:18.433595"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:04:18.437145"], ["updated_at", "2019-05-19 23:04:18.437145"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.440571"], ["ends_at", "2019-05-19 23:04:18.440571"], ["average_time", "2019-05-19 23:04:18.440571"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.443411"], ["updated_at", "2019-05-19 23:04:18.443411"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.445050"], ["ends_at", "2019-05-19 23:04:18.445050"], ["average_time", "2019-05-19 23:04:18.445050"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.447637"], ["updated_at", "2019-05-19 23:04:18.447637"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.448715"], ["ends_at", "2019-05-19 23:04:18.448715"], ["average_time", "2019-05-19 23:04:18.448715"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.449770"], ["ends_at", "2019-05-19 23:04:18.449770"], ["average_time", "2019-05-19 23:04:18.449770"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.450583"], ["updated_at", "2019-05-19 23:04:18.450583"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.451306"], ["ends_at", "2019-05-19 23:04:18.451306"], ["average_time", "2019-05-19 23:04:18.451306"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.4ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.458222"], ["updated_at", "2019-05-19 23:04:18.458222"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.460256"], ["ends_at", "2019-05-19 23:04:18.460256"], ["average_time", "2019-05-19 23:04:18.460256"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.461484"], ["ends_at", "2019-05-19 23:04:18.461484"], ["average_time", "2019-05-19 23:04:18.461484"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.462745"], ["updated_at", "2019-05-19 23:04:18.462745"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.463644"], ["ends_at", "2019-05-19 23:04:18.463644"], ["average_time", "2019-05-19 23:04:18.463644"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (1.0ms) 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", "2019-05-19 23:04:18.471592"], ["updated_at", "2019-05-19 23:04:18.471592"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.475040"], ["ends_at", "2019-05-19 23:04:18.475040"], ["average_time", "2019-05-19 23:04:18.475040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.476398"], ["ends_at", "2019-05-19 23:04:18.476398"], ["average_time", "2019-05-19 23:04:18.476398"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.477359"], ["updated_at", "2019-05-19 23:04:18.477359"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.478426"], ["ends_at", "2019-05-19 23:04:18.478426"], ["average_time", "2019-05-19 23:04:18.478426"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:04:18.479394"], ["updated_at", "2019-05-19 23:04:18.479394"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.483296"], ["updated_at", "2019-05-19 23:04:18.483296"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.484594"], ["ends_at", "2019-05-19 23:04:18.484594"], ["average_time", "2019-05-19 23:04:18.484594"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.486019"], ["ends_at", "2019-05-19 23:04:18.486019"], ["average_time", "2019-05-19 23:04:18.486019"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.487038"], ["updated_at", "2019-05-19 23:04:18.487038"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.487924"], ["ends_at", "2019-05-19 23:04:18.487924"], ["average_time", "2019-05-19 23:04:18.487924"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.491322"], ["updated_at", "2019-05-19 23:04:18.491322"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.492486"], ["ends_at", "2019-05-19 23:04:18.492486"], ["average_time", "2019-05-19 23:04:18.492486"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.494312"], ["ends_at", "2019-05-19 23:04:18.494312"], ["average_time", "2019-05-19 23:04:18.494312"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.497930"], ["updated_at", "2019-05-19 23:04:18.497930"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.498741"], ["ends_at", "2019-05-19 23:04:18.498741"], ["average_time", "2019-05-19 23:04:18.498741"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.501668"], ["updated_at", "2019-05-19 23:04:18.501668"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.503215"], ["ends_at", "2019-05-19 23:04:18.503215"], ["average_time", "2019-05-19 23:04:18.503215"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.504664"], ["ends_at", "2019-05-19 23:04:18.504664"], ["average_time", "2019-05-19 23:04:18.504664"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.506238"], ["updated_at", "2019-05-19 23:04:18.506238"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.507253"], ["ends_at", "2019-05-19 23:04:18.507253"], ["average_time", "2019-05-19 23:04:18.507253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.511034"], ["updated_at", "2019-05-19 23:04:18.511034"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.512632"], ["ends_at", "2019-05-19 23:04:18.512632"], ["average_time", "2019-05-19 23:04:18.512632"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.514030"], ["ends_at", "2019-05-19 23:04:18.514030"], ["average_time", "2019-05-19 23:04:18.514030"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.515162"], ["updated_at", "2019-05-19 23:04:18.515162"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.516253"], ["ends_at", "2019-05-19 23:04:18.516253"], ["average_time", "2019-05-19 23:04:18.516253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:04:18.526700"], ["updated_at", "2019-05-19 23:04:18.526700"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.529744"], ["updated_at", "2019-05-19 23:04:18.529744"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.530860"], ["ends_at", "2019-05-19 23:04:18.530860"], ["average_time", "2019-05-19 23:04:18.530860"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.531932"], ["ends_at", "2019-05-19 23:04:18.531932"], ["average_time", "2019-05-19 23:04:18.531932"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.532841"], ["updated_at", "2019-05-19 23:04:18.532841"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.533877"], ["ends_at", "2019-05-19 23:04:18.533877"], ["average_time", "2019-05-19 23:04:18.533877"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.536626"], ["updated_at", "2019-05-19 23:04:18.536626"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.538043"], ["ends_at", "2019-05-19 23:04:18.538043"], ["average_time", "2019-05-19 23:04:18.538043"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.539188"], ["ends_at", "2019-05-19 23:04:18.539188"], ["average_time", "2019-05-19 23:04:18.539188"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.540404"], ["updated_at", "2019-05-19 23:04:18.540404"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.541512"], ["ends_at", "2019-05-19 23:04:18.541512"], ["average_time", "2019-05-19 23:04:18.541512"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:18.544039"], ["updated_at", "2019-05-19 23:04:18.544039"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.545103"], ["ends_at", "2019-05-19 23:04:18.545103"], ["average_time", "2019-05-19 23:04:18.545103"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.546040"], ["ends_at", "2019-05-19 23:04:18.546040"], ["average_time", "2019-05-19 23:04:18.546040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:18.546795"], ["updated_at", "2019-05-19 23:04:18.546795"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:18.547494"], ["ends_at", "2019-05-19 23:04:18.547494"], ["average_time", "2019-05-19 23:04:18.547494"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.7ms) SELECT sqlite_version(*) +  (1.6ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (1.3ms) 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) +  (1.3ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.0ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:04:45.610242"], ["updated_at", "2019-05-19 23:04:45.610242"]] +  (0.7ms) commit transaction +  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.790248"], ["updated_at", "2019-05-19 23:04:45.790248"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.798179"], ["ends_at", "2019-05-19 23:04:45.798179"], ["average_time", "2019-05-19 23:04:45.798179"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.799249"], ["updated_at", "2019-05-19 23:04:45.799249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.800128"], ["ends_at", "2019-05-19 23:04:45.800128"], ["average_time", "2019-05-19 23:04:45.800128"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.800919"], ["ends_at", "2019-05-19 23:04:45.800919"], ["average_time", "2019-05-19 23:04:45.800919"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.808202"], ["updated_at", "2019-05-19 23:04:45.808202"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.809346"], ["ends_at", "2019-05-19 23:04:45.809346"], ["average_time", "2019-05-19 23:04:45.809346"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.811001"], ["updated_at", "2019-05-19 23:04:45.811001"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.812515"], ["ends_at", "2019-05-19 23:04:45.812515"], ["average_time", "2019-05-19 23:04:45.812515"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.814725"], ["ends_at", "2019-05-19 23:04:45.814725"], ["average_time", "2019-05-19 23:04:45.814725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.819362"], ["updated_at", "2019-05-19 23:04:45.819362"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.821062"], ["ends_at", "2019-05-19 23:04:45.821062"], ["average_time", "2019-05-19 23:04:45.821062"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.822611"], ["updated_at", "2019-05-19 23:04:45.822611"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.823969"], ["ends_at", "2019-05-19 23:04:45.823969"], ["average_time", "2019-05-19 23:04:45.823969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.826180"], ["ends_at", "2019-05-19 23:04:45.826180"], ["average_time", "2019-05-19 23:04:45.826180"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.830549"], ["updated_at", "2019-05-19 23:04:45.830549"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.840003"], ["updated_at", "2019-05-19 23:04:45.840003"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.6ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.842160"], ["ends_at", "2019-05-19 23:04:45.842160"], ["average_time", "2019-05-19 23:04:45.842160"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.850264"], ["updated_at", "2019-05-19 23:04:45.850264"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.851231"], ["ends_at", "2019-05-19 23:04:45.851231"], ["average_time", "2019-05-19 23:04:45.851231"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:04:45.855739"], ["updated_at", "2019-05-19 23:04:45.855739"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.857329"], ["ends_at", "2019-05-19 23:04:45.857329"], ["average_time", "2019-05-19 23:04:45.857329"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.866790"], ["updated_at", "2019-05-19 23:04:45.866790"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.870921"], ["updated_at", "2019-05-19 23:04:45.870921"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:04:45.874374"], ["updated_at", "2019-05-19 23:04:45.874374"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.887536"], ["updated_at", "2019-05-19 23:04:45.887536"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.889920"], ["updated_at", "2019-05-19 23:04:45.889920"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:04:45.893119"], ["updated_at", "2019-05-19 23:04:45.893119"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.896317"], ["updated_at", "2019-05-19 23:04:45.896317"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.899557"], ["updated_at", "2019-05-19 23:04:45.899557"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.901822"], ["updated_at", "2019-05-19 23:04:45.901822"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.904209"], ["updated_at", "2019-05-19 23:04:45.904209"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.906675"], ["updated_at", "2019-05-19 23:04:45.906675"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:04:45.911382"], ["updated_at", "2019-05-19 23:04:45.911382"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.918700"], ["updated_at", "2019-05-19 23:04:45.918700"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.920842"], ["updated_at", "2019-05-19 23:04:45.920842"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.923515"], ["updated_at", "2019-05-19 23:04:45.923515"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:45.927189"], ["updated_at", "2019-05-19 23:04:45.927189"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.930234"], ["updated_at", "2019-05-19 23:04:45.930234"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.933819"], ["updated_at", "2019-05-19 23:04:45.933819"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.936495"], ["updated_at", "2019-05-19 23:04:45.936495"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.938803"], ["updated_at", "2019-05-19 23:04:45.938803"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:45.941072"], ["updated_at", "2019-05-19 23:04:45.941072"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:04:45.945339"], ["updated_at", "2019-05-19 23:04:45.945339"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.950040"], ["updated_at", "2019-05-19 23:04:45.950040"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:45.950993"], ["ends_at", "2019-05-19 23:04:45.950993"], ["average_time", "2019-05-19 23:04:45.950993"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.979390"], ["updated_at", "2019-05-19 23:04:45.979390"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.985431"], ["updated_at", "2019-05-19 23:04:45.985431"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.991537"], ["updated_at", "2019-05-19 23:04:45.991537"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:45.998359"], ["updated_at", "2019-05-19 23:04:45.998359"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.005504"], ["updated_at", "2019-05-19 23:04:46.005504"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.014181"], ["updated_at", "2019-05-19 23:04:46.014181"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.021083"], ["updated_at", "2019-05-19 23:04:46.021083"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.023677"], ["updated_at", "2019-05-19 23:04:46.023677"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.024863"], ["ends_at", "2019-05-19 23:04:46.024863"], ["average_time", "2019-05-19 23:04:46.024863"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:04:46.029563"], ["updated_at", "2019-05-19 23:04:46.029563"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.032194"], ["ends_at", "2019-05-19 23:04:46.032194"], ["average_time", "2019-05-19 23:04:46.032194"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:46.034599"], ["updated_at", "2019-05-19 23:04:46.034599"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.036285"], ["ends_at", "2019-05-19 23:04:46.036285"], ["average_time", "2019-05-19 23:04:46.036285"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.038609"], ["updated_at", "2019-05-19 23:04:46.038609"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.039645"], ["ends_at", "2019-05-19 23:04:46.039645"], ["average_time", "2019-05-19 23:04:46.039645"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.040610"], ["ends_at", "2019-05-19 23:04:46.040610"], ["average_time", "2019-05-19 23:04:46.040610"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.043376"], ["updated_at", "2019-05-19 23:04:46.043376"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.045338"], ["ends_at", "2019-05-19 23:04:46.045338"], ["average_time", "2019-05-19 23:04:46.045338"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:46.048643"], ["updated_at", "2019-05-19 23:04:46.048643"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.049733"], ["ends_at", "2019-05-19 23:04:46.049733"], ["average_time", "2019-05-19 23:04:46.049733"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.050623"], ["ends_at", "2019-05-19 23:04:46.050623"], ["average_time", "2019-05-19 23:04:46.050623"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.051333"], ["updated_at", "2019-05-19 23:04:46.051333"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.052002"], ["ends_at", "2019-05-19 23:04:46.052002"], ["average_time", "2019-05-19 23:04:46.052002"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.054613"], ["updated_at", "2019-05-19 23:04:46.054613"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.055646"], ["ends_at", "2019-05-19 23:04:46.055646"], ["average_time", "2019-05-19 23:04:46.055646"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.056519"], ["ends_at", "2019-05-19 23:04:46.056519"], ["average_time", "2019-05-19 23:04:46.056519"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.057333"], ["updated_at", "2019-05-19 23:04:46.057333"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.058201"], ["ends_at", "2019-05-19 23:04:46.058201"], ["average_time", "2019-05-19 23:04:46.058201"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:04:46.061858"], ["updated_at", "2019-05-19 23:04:46.061858"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.064932"], ["updated_at", "2019-05-19 23:04:46.064932"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.065917"], ["ends_at", "2019-05-19 23:04:46.065917"], ["average_time", "2019-05-19 23:04:46.065917"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.067412"], ["ends_at", "2019-05-19 23:04:46.067412"], ["average_time", "2019-05-19 23:04:46.067412"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.068321"], ["updated_at", "2019-05-19 23:04:46.068321"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.069072"], ["ends_at", "2019-05-19 23:04:46.069072"], ["average_time", "2019-05-19 23:04:46.069072"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.071673"], ["updated_at", "2019-05-19 23:04:46.071673"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.072709"], ["ends_at", "2019-05-19 23:04:46.072709"], ["average_time", "2019-05-19 23:04:46.072709"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.073703"], ["ends_at", "2019-05-19 23:04:46.073703"], ["average_time", "2019-05-19 23:04:46.073703"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.074926"], ["updated_at", "2019-05-19 23:04:46.074926"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.077656"], ["ends_at", "2019-05-19 23:04:46.077656"], ["average_time", "2019-05-19 23:04:46.077656"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:46.082100"], ["updated_at", "2019-05-19 23:04:46.082100"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.083296"], ["ends_at", "2019-05-19 23:04:46.083296"], ["average_time", "2019-05-19 23:04:46.083296"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.084332"], ["ends_at", "2019-05-19 23:04:46.084332"], ["average_time", "2019-05-19 23:04:46.084332"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.085142"], ["updated_at", "2019-05-19 23:04:46.085142"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.085875"], ["ends_at", "2019-05-19 23:04:46.085875"], ["average_time", "2019-05-19 23:04:46.085875"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.089022"], ["updated_at", "2019-05-19 23:04:46.089022"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.090766"], ["ends_at", "2019-05-19 23:04:46.090766"], ["average_time", "2019-05-19 23:04:46.090766"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.093071"], ["ends_at", "2019-05-19 23:04:46.093071"], ["average_time", "2019-05-19 23:04:46.093071"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.094852"], ["updated_at", "2019-05-19 23:04:46.094852"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.095851"], ["ends_at", "2019-05-19 23:04:46.095851"], ["average_time", "2019-05-19 23:04:46.095851"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:04:46.096717"], ["updated_at", "2019-05-19 23:04:46.096717"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (8.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 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.107061"], ["updated_at", "2019-05-19 23:04:46.107061"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.7ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.108270"], ["ends_at", "2019-05-19 23:04:46.108270"], ["average_time", "2019-05-19 23:04:46.108270"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.112021"], ["ends_at", "2019-05-19 23:04:46.112021"], ["average_time", "2019-05-19 23:04:46.112021"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.114087"], ["updated_at", "2019-05-19 23:04:46.114087"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.115335"], ["ends_at", "2019-05-19 23:04:46.115335"], ["average_time", "2019-05-19 23:04:46.115335"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:04:46.118533"], ["updated_at", "2019-05-19 23:04:46.118533"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.120041"], ["ends_at", "2019-05-19 23:04:46.120041"], ["average_time", "2019-05-19 23:04:46.120041"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.121414"], ["ends_at", "2019-05-19 23:04:46.121414"], ["average_time", "2019-05-19 23:04:46.121414"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.122320"], ["updated_at", "2019-05-19 23:04:46.122320"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.123590"], ["ends_at", "2019-05-19 23:04:46.123590"], ["average_time", "2019-05-19 23:04:46.123590"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.128781"], ["updated_at", "2019-05-19 23:04:46.128781"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.130757"], ["ends_at", "2019-05-19 23:04:46.130757"], ["average_time", "2019-05-19 23:04:46.130757"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.131785"], ["ends_at", "2019-05-19 23:04:46.131785"], ["average_time", "2019-05-19 23:04:46.131785"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:04:46.132536"], ["updated_at", "2019-05-19 23:04:46.132536"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:04:46.133183"], ["ends_at", "2019-05-19 23:04:46.133183"], ["average_time", "2019-05-19 23:04:46.133183"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.5ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (1.6ms) SELECT sqlite_version(*) +  (1.5ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.2ms) DROP TABLE IF EXISTS "punches" +  (1.4ms) 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) +  (1.4ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.8ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:23:38.832016"], ["updated_at", "2019-05-19 23:23:38.832016"]] +  (0.8ms) commit transaction +  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.083968"], ["updated_at", "2019-05-19 23:23:39.083968"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.093367"], ["ends_at", "2019-05-19 23:23:39.093367"], ["average_time", "2019-05-19 23:23:39.093367"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.094750"], ["updated_at", "2019-05-19 23:23:39.094750"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.095842"], ["ends_at", "2019-05-19 23:23:39.095842"], ["average_time", "2019-05-19 23:23:39.095842"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.096966"], ["ends_at", "2019-05-19 23:23:39.096966"], ["average_time", "2019-05-19 23:23:39.096966"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.107460"], ["updated_at", "2019-05-19 23:23:39.107460"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.108668"], ["ends_at", "2019-05-19 23:23:39.108668"], ["average_time", "2019-05-19 23:23:39.108668"]] +  (0.6ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.110224"], ["updated_at", "2019-05-19 23:23:39.110224"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.7ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.111753"], ["ends_at", "2019-05-19 23:23:39.111753"], ["average_time", "2019-05-19 23:23:39.111753"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.113377"], ["ends_at", "2019-05-19 23:23:39.113377"], ["average_time", "2019-05-19 23:23:39.113377"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.118833"], ["updated_at", "2019-05-19 23:23:39.118833"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.7ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.120723"], ["ends_at", "2019-05-19 23:23:39.120723"], ["average_time", "2019-05-19 23:23:39.120723"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.122353"], ["updated_at", "2019-05-19 23:23:39.122353"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.123884"], ["ends_at", "2019-05-19 23:23:39.123884"], ["average_time", "2019-05-19 23:23:39.123884"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.126123"], ["ends_at", "2019-05-19 23:23:39.126123"], ["average_time", "2019-05-19 23:23:39.126123"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.130894"], ["updated_at", "2019-05-19 23:23:39.130894"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.139079"], ["updated_at", "2019-05-19 23:23:39.139079"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.141472"], ["ends_at", "2019-05-19 23:23:39.141472"], ["average_time", "2019-05-19 23:23:39.141472"]] +  (0.7ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.145703"], ["updated_at", "2019-05-19 23:23:39.145703"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.147756"], ["ends_at", "2019-05-19 23:23:39.147756"], ["average_time", "2019-05-19 23:23:39.147756"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:23:39.155260"], ["updated_at", "2019-05-19 23:23:39.155260"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.157021"], ["ends_at", "2019-05-19 23:23:39.157021"], ["average_time", "2019-05-19 23:23:39.157021"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.163447"], ["updated_at", "2019-05-19 23:23:39.163447"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.170100"], ["updated_at", "2019-05-19 23:23:39.170100"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.174288"], ["updated_at", "2019-05-19 23:23:39.174288"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (9.4ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.188506"], ["updated_at", "2019-05-19 23:23:39.188506"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.191062"], ["updated_at", "2019-05-19 23:23:39.191062"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.193336"], ["updated_at", "2019-05-19 23:23:39.193336"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.195885"], ["updated_at", "2019-05-19 23:23:39.195885"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (1.0ms) 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", "2019-05-19 23:23:39.199007"], ["updated_at", "2019-05-19 23:23:39.199007"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.3ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.204005"], ["updated_at", "2019-05-19 23:23:39.204005"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.206230"], ["updated_at", "2019-05-19 23:23:39.206230"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.208414"], ["updated_at", "2019-05-19 23:23:39.208414"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.210669"], ["updated_at", "2019-05-19 23:23:39.210669"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.222320"], ["updated_at", "2019-05-19 23:23:39.222320"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.225279"], ["updated_at", "2019-05-19 23:23:39.225279"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.228024"], ["updated_at", "2019-05-19 23:23:39.228024"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.230486"], ["updated_at", "2019-05-19 23:23:39.230486"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.234449"], ["updated_at", "2019-05-19 23:23:39.234449"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:23:39.239836"], ["updated_at", "2019-05-19 23:23:39.239836"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.243984"], ["updated_at", "2019-05-19 23:23:39.243984"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:23:39.247280"], ["updated_at", "2019-05-19 23:23:39.247280"]] +  (2.4ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.254566"], ["updated_at", "2019-05-19 23:23:39.254566"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.257834"], ["updated_at", "2019-05-19 23:23:39.257834"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.262398"], ["updated_at", "2019-05-19 23:23:39.262398"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.5ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.264733"], ["ends_at", "2019-05-19 23:23:39.264733"], ["average_time", "2019-05-19 23:23:39.264733"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.307696"], ["updated_at", "2019-05-19 23:23:39.307696"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.322871"], ["updated_at", "2019-05-19 23:23:39.322871"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.333612"], ["updated_at", "2019-05-19 23:23:39.333612"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.343442"], ["updated_at", "2019-05-19 23:23:39.343442"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.356523"], ["updated_at", "2019-05-19 23:23:39.356523"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.368509"], ["updated_at", "2019-05-19 23:23:39.368509"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:23:39.378865"], ["updated_at", "2019-05-19 23:23:39.378865"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:23:39.382313"], ["updated_at", "2019-05-19 23:23:39.382313"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.384372"], ["ends_at", "2019-05-19 23:23:39.384372"], ["average_time", "2019-05-19 23:23:39.384372"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:23:39.388583"], ["updated_at", "2019-05-19 23:23:39.388583"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.390920"], ["ends_at", "2019-05-19 23:23:39.390920"], ["average_time", "2019-05-19 23:23:39.390920"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.393536"], ["updated_at", "2019-05-19 23:23:39.393536"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.395284"], ["ends_at", "2019-05-19 23:23:39.395284"], ["average_time", "2019-05-19 23:23:39.395284"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:23:39.397666"], ["updated_at", "2019-05-19 23:23:39.397666"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.399706"], ["ends_at", "2019-05-19 23:23:39.399706"], ["average_time", "2019-05-19 23:23:39.399706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.402027"], ["ends_at", "2019-05-19 23:23:39.402027"], ["average_time", "2019-05-19 23:23:39.402027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.402870"], ["updated_at", "2019-05-19 23:23:39.402870"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.403790"], ["ends_at", "2019-05-19 23:23:39.403790"], ["average_time", "2019-05-19 23:23:39.403790"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:23:39.407032"], ["updated_at", "2019-05-19 23:23:39.407032"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.408168"], ["ends_at", "2019-05-19 23:23:39.408168"], ["average_time", "2019-05-19 23:23:39.408168"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.409140"], ["ends_at", "2019-05-19 23:23:39.409140"], ["average_time", "2019-05-19 23:23:39.409140"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.409882"], ["updated_at", "2019-05-19 23:23:39.409882"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.410880"], ["ends_at", "2019-05-19 23:23:39.410880"], ["average_time", "2019-05-19 23:23:39.410880"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:23:39.415805"], ["updated_at", "2019-05-19 23:23:39.415805"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.418498"], ["ends_at", "2019-05-19 23:23:39.418498"], ["average_time", "2019-05-19 23:23:39.418498"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.419699"], ["ends_at", "2019-05-19 23:23:39.419699"], ["average_time", "2019-05-19 23:23:39.419699"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.421079"], ["updated_at", "2019-05-19 23:23:39.421079"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.422118"], ["ends_at", "2019-05-19 23:23:39.422118"], ["average_time", "2019-05-19 23:23:39.422118"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:23:39.423144"], ["updated_at", "2019-05-19 23:23:39.423144"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:23:39.426191"], ["updated_at", "2019-05-19 23:23:39.426191"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.427249"], ["ends_at", "2019-05-19 23:23:39.427249"], ["average_time", "2019-05-19 23:23:39.427249"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.428658"], ["ends_at", "2019-05-19 23:23:39.428658"], ["average_time", "2019-05-19 23:23:39.428658"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.429991"], ["updated_at", "2019-05-19 23:23:39.429991"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.431063"], ["ends_at", "2019-05-19 23:23:39.431063"], ["average_time", "2019-05-19 23:23:39.431063"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.435533"], ["updated_at", "2019-05-19 23:23:39.435533"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.437165"], ["ends_at", "2019-05-19 23:23:39.437165"], ["average_time", "2019-05-19 23:23:39.437165"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.438219"], ["ends_at", "2019-05-19 23:23:39.438219"], ["average_time", "2019-05-19 23:23:39.438219"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.439190"], ["updated_at", "2019-05-19 23:23:39.439190"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.439934"], ["ends_at", "2019-05-19 23:23:39.439934"], ["average_time", "2019-05-19 23:23:39.439934"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.442822"], ["updated_at", "2019-05-19 23:23:39.442822"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.443861"], ["ends_at", "2019-05-19 23:23:39.443861"], ["average_time", "2019-05-19 23:23:39.443861"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.445186"], ["ends_at", "2019-05-19 23:23:39.445186"], ["average_time", "2019-05-19 23:23:39.445186"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.446664"], ["updated_at", "2019-05-19 23:23:39.446664"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.448222"], ["ends_at", "2019-05-19 23:23:39.448222"], ["average_time", "2019-05-19 23:23:39.448222"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.4ms) 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:23:39.452950"], ["updated_at", "2019-05-19 23:23:39.452950"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.454499"], ["ends_at", "2019-05-19 23:23:39.454499"], ["average_time", "2019-05-19 23:23:39.454499"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.455706"], ["ends_at", "2019-05-19 23:23:39.455706"], ["average_time", "2019-05-19 23:23:39.455706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.456900"], ["updated_at", "2019-05-19 23:23:39.456900"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.457731"], ["ends_at", "2019-05-19 23:23:39.457731"], ["average_time", "2019-05-19 23:23:39.457731"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:23:39.458542"], ["updated_at", "2019-05-19 23:23:39.458542"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.472489"], ["updated_at", "2019-05-19 23:23:39.472489"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.473540"], ["ends_at", "2019-05-19 23:23:39.473540"], ["average_time", "2019-05-19 23:23:39.473540"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.474401"], ["ends_at", "2019-05-19 23:23:39.474401"], ["average_time", "2019-05-19 23:23:39.474401"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.475129"], ["updated_at", "2019-05-19 23:23:39.475129"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.475767"], ["ends_at", "2019-05-19 23:23:39.475767"], ["average_time", "2019-05-19 23:23:39.475767"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:23:39.478512"], ["updated_at", "2019-05-19 23:23:39.478512"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.479673"], ["ends_at", "2019-05-19 23:23:39.479673"], ["average_time", "2019-05-19 23:23:39.479673"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.480573"], ["ends_at", "2019-05-19 23:23:39.480573"], ["average_time", "2019-05-19 23:23:39.480573"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.481673"], ["updated_at", "2019-05-19 23:23:39.481673"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.484019"], ["ends_at", "2019-05-19 23:23:39.484019"], ["average_time", "2019-05-19 23:23:39.484019"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.487473"], ["updated_at", "2019-05-19 23:23:39.487473"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.488520"], ["ends_at", "2019-05-19 23:23:39.488520"], ["average_time", "2019-05-19 23:23:39.488520"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.489412"], ["ends_at", "2019-05-19 23:23:39.489412"], ["average_time", "2019-05-19 23:23:39.489412"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:23:39.490140"], ["updated_at", "2019-05-19 23:23:39.490140"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:23:39.490778"], ["ends_at", "2019-05-19 23:23:39.490778"], ["average_time", "2019-05-19 23:23:39.490778"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (2.0ms) SELECT sqlite_version(*) +  (1.8ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.2ms) DROP TABLE IF EXISTS "punches" +  (1.3ms) 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) +  (0.8ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:30:59.018565"], ["updated_at", "2019-05-19 23:30:59.018565"]] +  (0.7ms) commit transaction +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (1.1ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (1.3ms) 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) +  (1.0ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.4ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:31:01.784821"], ["updated_at", "2019-05-19 23:31:01.784821"]] +  (0.6ms) commit transaction +  (1.3ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:01.985425"], ["updated_at", "2019-05-19 23:31:01.985425"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:01.995571"], ["ends_at", "2019-05-19 23:31:01.995571"], ["average_time", "2019-05-19 23:31:01.995571"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:01.996704"], ["updated_at", "2019-05-19 23:31:01.996704"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:01.997827"], ["ends_at", "2019-05-19 23:31:01.997827"], ["average_time", "2019-05-19 23:31:01.997827"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:01.998804"], ["ends_at", "2019-05-19 23:31:01.998804"], ["average_time", "2019-05-19 23:31:01.998804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.012730"], ["updated_at", "2019-05-19 23:31:02.012730"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.014995"], ["ends_at", "2019-05-19 23:31:02.014995"], ["average_time", "2019-05-19 23:31:02.014995"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.016545"], ["updated_at", "2019-05-19 23:31:02.016545"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.017901"], ["ends_at", "2019-05-19 23:31:02.017901"], ["average_time", "2019-05-19 23:31:02.017901"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.019354"], ["ends_at", "2019-05-19 23:31:02.019354"], ["average_time", "2019-05-19 23:31:02.019354"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.023035"], ["updated_at", "2019-05-19 23:31:02.023035"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.024232"], ["ends_at", "2019-05-19 23:31:02.024232"], ["average_time", "2019-05-19 23:31:02.024232"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.025130"], ["updated_at", "2019-05-19 23:31:02.025130"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.025862"], ["ends_at", "2019-05-19 23:31:02.025862"], ["average_time", "2019-05-19 23:31:02.025862"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.026789"], ["ends_at", "2019-05-19 23:31:02.026789"], ["average_time", "2019-05-19 23:31:02.026789"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.028916"], ["updated_at", "2019-05-19 23:31:02.028916"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.034970"], ["updated_at", "2019-05-19 23:31:02.034970"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.036181"], ["ends_at", "2019-05-19 23:31:02.036181"], ["average_time", "2019-05-19 23:31:02.036181"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.040094"], ["updated_at", "2019-05-19 23:31:02.040094"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.041962"], ["ends_at", "2019-05-19 23:31:02.041962"], ["average_time", "2019-05-19 23:31:02.041962"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:31:02.044458"], ["updated_at", "2019-05-19 23:31:02.044458"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.045386"], ["ends_at", "2019-05-19 23:31:02.045386"], ["average_time", "2019-05-19 23:31:02.045386"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:31:02.050341"], ["updated_at", "2019-05-19 23:31:02.050341"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:31:02.053902"], ["updated_at", "2019-05-19 23:31:02.053902"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.057948"], ["updated_at", "2019-05-19 23:31:02.057948"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.060681"], ["updated_at", "2019-05-19 23:31:02.060681"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.063471"], ["updated_at", "2019-05-19 23:31:02.063471"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:31:02.066206"], ["updated_at", "2019-05-19 23:31:02.066206"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:31:02.071012"], ["updated_at", "2019-05-19 23:31:02.071012"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.074485"], ["updated_at", "2019-05-19 23:31:02.074485"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.084618"], ["updated_at", "2019-05-19 23:31:02.084618"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.087266"], ["updated_at", "2019-05-19 23:31:02.087266"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.091073"], ["updated_at", "2019-05-19 23:31:02.091073"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.093311"], ["updated_at", "2019-05-19 23:31:02.093311"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.103061"], ["updated_at", "2019-05-19 23:31:02.103061"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.106691"], ["updated_at", "2019-05-19 23:31:02.106691"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.110261"], ["updated_at", "2019-05-19 23:31:02.110261"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:31:02.113719"], ["updated_at", "2019-05-19 23:31:02.113719"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:31:02.117132"], ["updated_at", "2019-05-19 23:31:02.117132"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:31:02.121860"], ["updated_at", "2019-05-19 23:31:02.121860"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.125401"], ["updated_at", "2019-05-19 23:31:02.125401"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.127659"], ["updated_at", "2019-05-19 23:31:02.127659"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.129903"], ["updated_at", "2019-05-19 23:31:02.129903"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.132010"], ["updated_at", "2019-05-19 23:31:02.132010"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.5ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:31:02.136740"], ["updated_at", "2019-05-19 23:31:02.136740"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.138460"], ["ends_at", "2019-05-19 23:31:02.138460"], ["average_time", "2019-05-19 23:31:02.138460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.174721"], ["updated_at", "2019-05-19 23:31:02.174721"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.180710"], ["updated_at", "2019-05-19 23:31:02.180710"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:31:02.186701"], ["updated_at", "2019-05-19 23:31:02.186701"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.8ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.199612"], ["updated_at", "2019-05-19 23:31:02.199612"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.214587"], ["updated_at", "2019-05-19 23:31:02.214587"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.229232"], ["updated_at", "2019-05-19 23:31:02.229232"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:31:02.242640"], ["updated_at", "2019-05-19 23:31:02.242640"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:31:02.246946"], ["updated_at", "2019-05-19 23:31:02.246946"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.248724"], ["ends_at", "2019-05-19 23:31:02.248724"], ["average_time", "2019-05-19 23:31:02.248724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.3ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:31:02.254717"], ["updated_at", "2019-05-19 23:31:02.254717"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.259706"], ["ends_at", "2019-05-19 23:31:02.259706"], ["average_time", "2019-05-19 23:31:02.259706"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:31:02.265006"], ["updated_at", "2019-05-19 23:31:02.265006"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.277953"], ["ends_at", "2019-05-19 23:31:02.277953"], ["average_time", "2019-05-19 23:31:02.277953"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.280538"], ["updated_at", "2019-05-19 23:31:02.280538"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.281546"], ["ends_at", "2019-05-19 23:31:02.281546"], ["average_time", "2019-05-19 23:31:02.281546"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.282503"], ["ends_at", "2019-05-19 23:31:02.282503"], ["average_time", "2019-05-19 23:31:02.282503"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.283398"], ["updated_at", "2019-05-19 23:31:02.283398"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.284622"], ["ends_at", "2019-05-19 23:31:02.284622"], ["average_time", "2019-05-19 23:31:02.284622"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.288110"], ["updated_at", "2019-05-19 23:31:02.288110"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.289963"], ["ends_at", "2019-05-19 23:31:02.289963"], ["average_time", "2019-05-19 23:31:02.289963"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.291498"], ["ends_at", "2019-05-19 23:31:02.291498"], ["average_time", "2019-05-19 23:31:02.291498"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.292307"], ["updated_at", "2019-05-19 23:31:02.292307"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.292967"], ["ends_at", "2019-05-19 23:31:02.292967"], ["average_time", "2019-05-19 23:31:02.292967"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:31:02.295542"], ["updated_at", "2019-05-19 23:31:02.295542"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.296551"], ["ends_at", "2019-05-19 23:31:02.296551"], ["average_time", "2019-05-19 23:31:02.296551"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.297430"], ["ends_at", "2019-05-19 23:31:02.297430"], ["average_time", "2019-05-19 23:31:02.297430"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.298100"], ["updated_at", "2019-05-19 23:31:02.298100"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.298861"], ["ends_at", "2019-05-19 23:31:02.298861"], ["average_time", "2019-05-19 23:31:02.298861"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:31:02.299962"], ["updated_at", "2019-05-19 23:31:02.299962"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.303089"], ["updated_at", "2019-05-19 23:31:02.303089"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.304767"], ["ends_at", "2019-05-19 23:31:02.304767"], ["average_time", "2019-05-19 23:31:02.304767"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.307175"], ["ends_at", "2019-05-19 23:31:02.307175"], ["average_time", "2019-05-19 23:31:02.307175"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.308405"], ["updated_at", "2019-05-19 23:31:02.308405"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.309453"], ["ends_at", "2019-05-19 23:31:02.309453"], ["average_time", "2019-05-19 23:31:02.309453"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:31:02.313704"], ["updated_at", "2019-05-19 23:31:02.313704"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.315533"], ["ends_at", "2019-05-19 23:31:02.315533"], ["average_time", "2019-05-19 23:31:02.315533"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.317173"], ["ends_at", "2019-05-19 23:31:02.317173"], ["average_time", "2019-05-19 23:31:02.317173"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.318926"], ["updated_at", "2019-05-19 23:31:02.318926"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.320540"], ["ends_at", "2019-05-19 23:31:02.320540"], ["average_time", "2019-05-19 23:31:02.320540"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.325174"], ["updated_at", "2019-05-19 23:31:02.325174"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.326184"], ["ends_at", "2019-05-19 23:31:02.326184"], ["average_time", "2019-05-19 23:31:02.326184"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.327072"], ["ends_at", "2019-05-19 23:31:02.327072"], ["average_time", "2019-05-19 23:31:02.327072"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.327769"], ["updated_at", "2019-05-19 23:31:02.327769"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.328859"], ["ends_at", "2019-05-19 23:31:02.328859"], ["average_time", "2019-05-19 23:31:02.328859"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.331494"], ["updated_at", "2019-05-19 23:31:02.331494"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.332500"], ["ends_at", "2019-05-19 23:31:02.332500"], ["average_time", "2019-05-19 23:31:02.332500"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.333586"], ["ends_at", "2019-05-19 23:31:02.333586"], ["average_time", "2019-05-19 23:31:02.333586"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.334917"], ["updated_at", "2019-05-19 23:31:02.334917"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.335694"], ["ends_at", "2019-05-19 23:31:02.335694"], ["average_time", "2019-05-19 23:31:02.335694"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:31:02.336454"], ["updated_at", "2019-05-19 23:31:02.336454"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.340148"], ["updated_at", "2019-05-19 23:31:02.340148"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.341800"], ["ends_at", "2019-05-19 23:31:02.341800"], ["average_time", "2019-05-19 23:31:02.341800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.342755"], ["ends_at", "2019-05-19 23:31:02.342755"], ["average_time", "2019-05-19 23:31:02.342755"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.343467"], ["updated_at", "2019-05-19 23:31:02.343467"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.344182"], ["ends_at", "2019-05-19 23:31:02.344182"], ["average_time", "2019-05-19 23:31:02.344182"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.346759"], ["updated_at", "2019-05-19 23:31:02.346759"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.347864"], ["ends_at", "2019-05-19 23:31:02.347864"], ["average_time", "2019-05-19 23:31:02.347864"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.348761"], ["ends_at", "2019-05-19 23:31:02.348761"], ["average_time", "2019-05-19 23:31:02.348761"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.349728"], ["updated_at", "2019-05-19 23:31:02.349728"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.350806"], ["ends_at", "2019-05-19 23:31:02.350806"], ["average_time", "2019-05-19 23:31:02.350806"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.355019"], ["updated_at", "2019-05-19 23:31:02.355019"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.357155"], ["ends_at", "2019-05-19 23:31:02.357155"], ["average_time", "2019-05-19 23:31:02.357155"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.358728"], ["ends_at", "2019-05-19 23:31:02.358728"], ["average_time", "2019-05-19 23:31:02.358728"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:31:02.359955"], ["updated_at", "2019-05-19 23:31:02.359955"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:31:02.361189"], ["ends_at", "2019-05-19 23:31:02.361189"], ["average_time", "2019-05-19 23:31:02.361189"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.5ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (1.0ms) SELECT sqlite_version(*) +  (1.6ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (0.8ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:36:35.632367"], ["updated_at", "2019-05-19 23:36:35.632367"]] +  (1.0ms) commit transaction +  (1.1ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.851758"], ["updated_at", "2019-05-19 23:36:35.851758"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.878969"], ["ends_at", "2019-05-19 23:36:35.878969"], ["average_time", "2019-05-19 23:36:35.878969"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.880337"], ["updated_at", "2019-05-19 23:36:35.880337"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.881287"], ["ends_at", "2019-05-19 23:36:35.881287"], ["average_time", "2019-05-19 23:36:35.881287"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.882123"], ["ends_at", "2019-05-19 23:36:35.882123"], ["average_time", "2019-05-19 23:36:35.882123"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.892777"], ["updated_at", "2019-05-19 23:36:35.892777"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.894165"], ["ends_at", "2019-05-19 23:36:35.894165"], ["average_time", "2019-05-19 23:36:35.894165"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.895096"], ["updated_at", "2019-05-19 23:36:35.895096"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.895846"], ["ends_at", "2019-05-19 23:36:35.895846"], ["average_time", "2019-05-19 23:36:35.895846"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.896694"], ["ends_at", "2019-05-19 23:36:35.896694"], ["average_time", "2019-05-19 23:36:35.896694"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.899714"], ["updated_at", "2019-05-19 23:36:35.899714"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.900900"], ["ends_at", "2019-05-19 23:36:35.900900"], ["average_time", "2019-05-19 23:36:35.900900"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.901917"], ["updated_at", "2019-05-19 23:36:35.901917"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.902809"], ["ends_at", "2019-05-19 23:36:35.902809"], ["average_time", "2019-05-19 23:36:35.902809"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.904014"], ["ends_at", "2019-05-19 23:36:35.904014"], ["average_time", "2019-05-19 23:36:35.904014"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.906339"], ["updated_at", "2019-05-19 23:36:35.906339"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.912786"], ["updated_at", "2019-05-19 23:36:35.912786"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.913975"], ["ends_at", "2019-05-19 23:36:35.913975"], ["average_time", "2019-05-19 23:36:35.913975"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.916998"], ["updated_at", "2019-05-19 23:36:35.916998"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.918647"], ["ends_at", "2019-05-19 23:36:35.918647"], ["average_time", "2019-05-19 23:36:35.918647"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:35.922259"], ["updated_at", "2019-05-19 23:36:35.922259"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:35.923683"], ["ends_at", "2019-05-19 23:36:35.923683"], ["average_time", "2019-05-19 23:36:35.923683"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.930551"], ["updated_at", "2019-05-19 23:36:35.930551"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.933679"], ["updated_at", "2019-05-19 23:36:35.933679"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.935860"], ["updated_at", "2019-05-19 23:36:35.935860"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.938069"], ["updated_at", "2019-05-19 23:36:35.938069"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:35.941003"], ["updated_at", "2019-05-19 23:36:35.941003"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.946446"], ["updated_at", "2019-05-19 23:36:35.946446"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.948685"], ["updated_at", "2019-05-19 23:36:35.948685"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.950953"], ["updated_at", "2019-05-19 23:36:35.950953"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.953074"], ["updated_at", "2019-05-19 23:36:35.953074"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.955245"], ["updated_at", "2019-05-19 23:36:35.955245"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:35.959484"], ["updated_at", "2019-05-19 23:36:35.959484"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:36:35.962988"], ["updated_at", "2019-05-19 23:36:35.962988"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.972271"], ["updated_at", "2019-05-19 23:36:35.972271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.975800"], ["updated_at", "2019-05-19 23:36:35.975800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.979692"], ["updated_at", "2019-05-19 23:36:35.979692"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.982425"], ["updated_at", "2019-05-19 23:36:35.982425"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.985158"], ["updated_at", "2019-05-19 23:36:35.985158"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.988286"], ["updated_at", "2019-05-19 23:36:35.988286"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.991722"], ["updated_at", "2019-05-19 23:36:35.991722"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.995504"], ["updated_at", "2019-05-19 23:36:35.995504"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:35.998701"], ["updated_at", "2019-05-19 23:36:35.998701"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.000889"], ["updated_at", "2019-05-19 23:36:36.000889"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.003985"], ["updated_at", "2019-05-19 23:36:36.003985"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.005410"], ["ends_at", "2019-05-19 23:36:36.005410"], ["average_time", "2019-05-19 23:36:36.005410"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.033034"], ["updated_at", "2019-05-19 23:36:36.033034"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.039324"], ["updated_at", "2019-05-19 23:36:36.039324"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.3ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.047375"], ["updated_at", "2019-05-19 23:36:36.047375"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.053340"], ["updated_at", "2019-05-19 23:36:36.053340"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:36:36.062727"], ["updated_at", "2019-05-19 23:36:36.062727"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.070700"], ["updated_at", "2019-05-19 23:36:36.070700"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.080144"], ["updated_at", "2019-05-19 23:36:36.080144"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.082775"], ["updated_at", "2019-05-19 23:36:36.082775"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.083971"], ["ends_at", "2019-05-19 23:36:36.083971"], ["average_time", "2019-05-19 23:36:36.083971"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.097669"], ["updated_at", "2019-05-19 23:36:36.097669"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.099289"], ["ends_at", "2019-05-19 23:36:36.099289"], ["average_time", "2019-05-19 23:36:36.099289"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.101571"], ["updated_at", "2019-05-19 23:36:36.101571"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.103123"], ["ends_at", "2019-05-19 23:36:36.103123"], ["average_time", "2019-05-19 23:36:36.103123"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:36.105314"], ["updated_at", "2019-05-19 23:36:36.105314"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.107186"], ["ends_at", "2019-05-19 23:36:36.107186"], ["average_time", "2019-05-19 23:36:36.107186"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.109725"], ["ends_at", "2019-05-19 23:36:36.109725"], ["average_time", "2019-05-19 23:36:36.109725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.110809"], ["updated_at", "2019-05-19 23:36:36.110809"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.111604"], ["ends_at", "2019-05-19 23:36:36.111604"], ["average_time", "2019-05-19 23:36:36.111604"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:36.115894"], ["updated_at", "2019-05-19 23:36:36.115894"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.117080"], ["ends_at", "2019-05-19 23:36:36.117080"], ["average_time", "2019-05-19 23:36:36.117080"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.118294"], ["ends_at", "2019-05-19 23:36:36.118294"], ["average_time", "2019-05-19 23:36:36.118294"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.119332"], ["updated_at", "2019-05-19 23:36:36.119332"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.120263"], ["ends_at", "2019-05-19 23:36:36.120263"], ["average_time", "2019-05-19 23:36:36.120263"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:36:36.123571"], ["updated_at", "2019-05-19 23:36:36.123571"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.125926"], ["ends_at", "2019-05-19 23:36:36.125926"], ["average_time", "2019-05-19 23:36:36.125926"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.127705"], ["ends_at", "2019-05-19 23:36:36.127705"], ["average_time", "2019-05-19 23:36:36.127705"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.128670"], ["updated_at", "2019-05-19 23:36:36.128670"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.129990"], ["ends_at", "2019-05-19 23:36:36.129990"], ["average_time", "2019-05-19 23:36:36.129990"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:36:36.130902"], ["updated_at", "2019-05-19 23:36:36.130902"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.133543"], ["updated_at", "2019-05-19 23:36:36.133543"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.134479"], ["ends_at", "2019-05-19 23:36:36.134479"], ["average_time", "2019-05-19 23:36:36.134479"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.135379"], ["ends_at", "2019-05-19 23:36:36.135379"], ["average_time", "2019-05-19 23:36:36.135379"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.136134"], ["updated_at", "2019-05-19 23:36:36.136134"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.136774"], ["ends_at", "2019-05-19 23:36:36.136774"], ["average_time", "2019-05-19 23:36:36.136774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:36.139364"], ["updated_at", "2019-05-19 23:36:36.139364"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.141039"], ["ends_at", "2019-05-19 23:36:36.141039"], ["average_time", "2019-05-19 23:36:36.141039"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.142380"], ["ends_at", "2019-05-19 23:36:36.142380"], ["average_time", "2019-05-19 23:36:36.142380"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.144164"], ["updated_at", "2019-05-19 23:36:36.144164"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.145610"], ["ends_at", "2019-05-19 23:36:36.145610"], ["average_time", "2019-05-19 23:36:36.145610"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:36.148600"], ["updated_at", "2019-05-19 23:36:36.148600"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.149706"], ["ends_at", "2019-05-19 23:36:36.149706"], ["average_time", "2019-05-19 23:36:36.149706"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.150643"], ["ends_at", "2019-05-19 23:36:36.150643"], ["average_time", "2019-05-19 23:36:36.150643"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.151385"], ["updated_at", "2019-05-19 23:36:36.151385"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.152081"], ["ends_at", "2019-05-19 23:36:36.152081"], ["average_time", "2019-05-19 23:36:36.152081"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.154532"], ["updated_at", "2019-05-19 23:36:36.154532"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.155674"], ["ends_at", "2019-05-19 23:36:36.155674"], ["average_time", "2019-05-19 23:36:36.155674"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.157397"], ["ends_at", "2019-05-19 23:36:36.157397"], ["average_time", "2019-05-19 23:36:36.157397"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.159598"], ["updated_at", "2019-05-19 23:36:36.159598"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.160988"], ["ends_at", "2019-05-19 23:36:36.160988"], ["average_time", "2019-05-19 23:36:36.160988"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:36:36.162839"], ["updated_at", "2019-05-19 23:36:36.162839"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:36.166119"], ["updated_at", "2019-05-19 23:36:36.166119"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.167291"], ["ends_at", "2019-05-19 23:36:36.167291"], ["average_time", "2019-05-19 23:36:36.167291"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.168401"], ["ends_at", "2019-05-19 23:36:36.168401"], ["average_time", "2019-05-19 23:36:36.168401"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.169253"], ["updated_at", "2019-05-19 23:36:36.169253"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.170012"], ["ends_at", "2019-05-19 23:36:36.170012"], ["average_time", "2019-05-19 23:36:36.170012"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.172409"], ["updated_at", "2019-05-19 23:36:36.172409"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.173744"], ["ends_at", "2019-05-19 23:36:36.173744"], ["average_time", "2019-05-19 23:36:36.173744"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.175785"], ["ends_at", "2019-05-19 23:36:36.175785"], ["average_time", "2019-05-19 23:36:36.175785"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.177532"], ["updated_at", "2019-05-19 23:36:36.177532"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.178620"], ["ends_at", "2019-05-19 23:36:36.178620"], ["average_time", "2019-05-19 23:36:36.178620"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.181840"], ["updated_at", "2019-05-19 23:36:36.181840"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.182854"], ["ends_at", "2019-05-19 23:36:36.182854"], ["average_time", "2019-05-19 23:36:36.182854"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.183723"], ["ends_at", "2019-05-19 23:36:36.183723"], ["average_time", "2019-05-19 23:36:36.183723"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:36.184487"], ["updated_at", "2019-05-19 23:36:36.184487"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:36.185125"], ["ends_at", "2019-05-19 23:36:36.185125"], ["average_time", "2019-05-19 23:36:36.185125"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.4ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (1.8ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (0.9ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.8ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.2ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:36:49.036856"], ["updated_at", "2019-05-19 23:36:49.036856"]] +  (0.9ms) commit transaction +  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.239130"], ["updated_at", "2019-05-19 23:36:49.239130"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.246761"], ["ends_at", "2019-05-19 23:36:49.246761"], ["average_time", "2019-05-19 23:36:49.246761"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.247836"], ["updated_at", "2019-05-19 23:36:49.247836"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.248549"], ["ends_at", "2019-05-19 23:36:49.248549"], ["average_time", "2019-05-19 23:36:49.248549"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.249335"], ["ends_at", "2019-05-19 23:36:49.249335"], ["average_time", "2019-05-19 23:36:49.249335"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.256575"], ["updated_at", "2019-05-19 23:36:49.256575"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.258444"], ["ends_at", "2019-05-19 23:36:49.258444"], ["average_time", "2019-05-19 23:36:49.258444"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.261030"], ["updated_at", "2019-05-19 23:36:49.261030"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.263122"], ["ends_at", "2019-05-19 23:36:49.263122"], ["average_time", "2019-05-19 23:36:49.263122"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.265387"], ["ends_at", "2019-05-19 23:36:49.265387"], ["average_time", "2019-05-19 23:36:49.265387"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (1.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.271154"], ["updated_at", "2019-05-19 23:36:49.271154"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.273685"], ["ends_at", "2019-05-19 23:36:49.273685"], ["average_time", "2019-05-19 23:36:49.273685"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.8ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.275283"], ["updated_at", "2019-05-19 23:36:49.275283"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.276913"], ["ends_at", "2019-05-19 23:36:49.276913"], ["average_time", "2019-05-19 23:36:49.276913"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.279175"], ["ends_at", "2019-05-19 23:36:49.279175"], ["average_time", "2019-05-19 23:36:49.279175"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.284428"], ["updated_at", "2019-05-19 23:36:49.284428"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.293725"], ["updated_at", "2019-05-19 23:36:49.293725"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.296273"], ["ends_at", "2019-05-19 23:36:49.296273"], ["average_time", "2019-05-19 23:36:49.296273"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.4ms) SELECT COUNT(*) FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.303333"], ["updated_at", "2019-05-19 23:36:49.303333"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.304424"], ["ends_at", "2019-05-19 23:36:49.304424"], ["average_time", "2019-05-19 23:36:49.304424"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.3ms) begin transaction +  (0.2ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:36:49.311961"], ["updated_at", "2019-05-19 23:36:49.311961"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.5ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.314231"], ["ends_at", "2019-05-19 23:36:49.314231"], ["average_time", "2019-05-19 23:36:49.314231"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.324587"], ["updated_at", "2019-05-19 23:36:49.324587"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.329308"], ["updated_at", "2019-05-19 23:36:49.329308"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (1.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (1.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", "2019-05-19 23:36:49.334257"], ["updated_at", "2019-05-19 23:36:49.334257"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.346507"], ["updated_at", "2019-05-19 23:36:49.346507"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:49.350105"], ["updated_at", "2019-05-19 23:36:49.350105"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.353077"], ["updated_at", "2019-05-19 23:36:49.353077"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.355347"], ["updated_at", "2019-05-19 23:36:49.355347"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:49.358086"], ["updated_at", "2019-05-19 23:36:49.358086"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.361813"], ["updated_at", "2019-05-19 23:36:49.361813"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:36:49.365228"], ["updated_at", "2019-05-19 23:36:49.365228"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:49.370216"], ["updated_at", "2019-05-19 23:36:49.370216"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.373413"], ["updated_at", "2019-05-19 23:36:49.373413"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:36:49.381043"], ["updated_at", "2019-05-19 23:36:49.381043"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.385235"], ["updated_at", "2019-05-19 23:36:49.385235"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.387715"], ["updated_at", "2019-05-19 23:36:49.387715"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:49.390051"], ["updated_at", "2019-05-19 23:36:49.390051"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.393707"], ["updated_at", "2019-05-19 23:36:49.393707"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.396779"], ["updated_at", "2019-05-19 23:36:49.396779"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:49.399878"], ["updated_at", "2019-05-19 23:36:49.399878"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.403622"], ["updated_at", "2019-05-19 23:36:49.403622"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.406062"], ["updated_at", "2019-05-19 23:36:49.406062"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.409537"], ["updated_at", "2019-05-19 23:36:49.409537"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.413975"], ["updated_at", "2019-05-19 23:36:49.413975"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.415666"], ["ends_at", "2019-05-19 23:36:49.415666"], ["average_time", "2019-05-19 23:36:49.415666"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.440854"], ["updated_at", "2019-05-19 23:36:49.440854"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.447729"], ["updated_at", "2019-05-19 23:36:49.447729"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:36:49.457501"], ["updated_at", "2019-05-19 23:36:49.457501"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.0ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:36:49.464966"], ["updated_at", "2019-05-19 23:36:49.464966"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.472949"], ["updated_at", "2019-05-19 23:36:49.472949"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.479925"], ["updated_at", "2019-05-19 23:36:49.479925"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.5ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.488390"], ["updated_at", "2019-05-19 23:36:49.488390"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.491663"], ["updated_at", "2019-05-19 23:36:49.491663"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.492831"], ["ends_at", "2019-05-19 23:36:49.492831"], ["average_time", "2019-05-19 23:36:49.492831"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.495445"], ["updated_at", "2019-05-19 23:36:49.495445"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.497007"], ["ends_at", "2019-05-19 23:36:49.497007"], ["average_time", "2019-05-19 23:36:49.497007"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.501404"], ["updated_at", "2019-05-19 23:36:49.501404"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.503317"], ["ends_at", "2019-05-19 23:36:49.503317"], ["average_time", "2019-05-19 23:36:49.503317"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.505673"], ["updated_at", "2019-05-19 23:36:49.505673"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.506791"], ["ends_at", "2019-05-19 23:36:49.506791"], ["average_time", "2019-05-19 23:36:49.506791"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.508240"], ["ends_at", "2019-05-19 23:36:49.508240"], ["average_time", "2019-05-19 23:36:49.508240"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.509265"], ["updated_at", "2019-05-19 23:36:49.509265"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.510107"], ["ends_at", "2019-05-19 23:36:49.510107"], ["average_time", "2019-05-19 23:36:49.510107"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.514372"], ["updated_at", "2019-05-19 23:36:49.514372"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.516230"], ["ends_at", "2019-05-19 23:36:49.516230"], ["average_time", "2019-05-19 23:36:49.516230"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.518181"], ["ends_at", "2019-05-19 23:36:49.518181"], ["average_time", "2019-05-19 23:36:49.518181"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.519266"], ["updated_at", "2019-05-19 23:36:49.519266"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.520087"], ["ends_at", "2019-05-19 23:36:49.520087"], ["average_time", "2019-05-19 23:36:49.520087"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.523302"], ["updated_at", "2019-05-19 23:36:49.523302"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.524618"], ["ends_at", "2019-05-19 23:36:49.524618"], ["average_time", "2019-05-19 23:36:49.524618"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.525627"], ["ends_at", "2019-05-19 23:36:49.525627"], ["average_time", "2019-05-19 23:36:49.525627"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.526423"], ["updated_at", "2019-05-19 23:36:49.526423"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.527154"], ["ends_at", "2019-05-19 23:36:49.527154"], ["average_time", "2019-05-19 23:36:49.527154"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:36:49.527978"], ["updated_at", "2019-05-19 23:36:49.527978"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.530477"], ["updated_at", "2019-05-19 23:36:49.530477"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.531675"], ["ends_at", "2019-05-19 23:36:49.531675"], ["average_time", "2019-05-19 23:36:49.531675"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.533152"], ["ends_at", "2019-05-19 23:36:49.533152"], ["average_time", "2019-05-19 23:36:49.533152"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.533936"], ["updated_at", "2019-05-19 23:36:49.533936"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.534635"], ["ends_at", "2019-05-19 23:36:49.534635"], ["average_time", "2019-05-19 23:36:49.534635"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.537680"], ["updated_at", "2019-05-19 23:36:49.537680"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.538721"], ["ends_at", "2019-05-19 23:36:49.538721"], ["average_time", "2019-05-19 23:36:49.538721"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.539601"], ["ends_at", "2019-05-19 23:36:49.539601"], ["average_time", "2019-05-19 23:36:49.539601"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.540579"], ["updated_at", "2019-05-19 23:36:49.540579"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.541405"], ["ends_at", "2019-05-19 23:36:49.541405"], ["average_time", "2019-05-19 23:36:49.541405"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:36:49.544089"], ["updated_at", "2019-05-19 23:36:49.544089"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.545123"], ["ends_at", "2019-05-19 23:36:49.545123"], ["average_time", "2019-05-19 23:36:49.545123"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.546054"], ["ends_at", "2019-05-19 23:36:49.546054"], ["average_time", "2019-05-19 23:36:49.546054"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.546761"], ["updated_at", "2019-05-19 23:36:49.546761"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.547445"], ["ends_at", "2019-05-19 23:36:49.547445"], ["average_time", "2019-05-19 23:36:49.547445"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.4ms) 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 +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.552611"], ["updated_at", "2019-05-19 23:36:49.552611"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.553727"], ["ends_at", "2019-05-19 23:36:49.553727"], ["average_time", "2019-05-19 23:36:49.553727"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.554645"], ["ends_at", "2019-05-19 23:36:49.554645"], ["average_time", "2019-05-19 23:36:49.554645"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.555940"], ["updated_at", "2019-05-19 23:36:49.555940"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.556763"], ["ends_at", "2019-05-19 23:36:49.556763"], ["average_time", "2019-05-19 23:36:49.556763"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:36:49.557677"], ["updated_at", "2019-05-19 23:36:49.557677"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.9ms) 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", "2019-05-19 23:36:49.571015"], ["updated_at", "2019-05-19 23:36:49.571015"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.573014"], ["ends_at", "2019-05-19 23:36:49.573014"], ["average_time", "2019-05-19 23:36:49.573014"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.573992"], ["ends_at", "2019-05-19 23:36:49.573992"], ["average_time", "2019-05-19 23:36:49.573992"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.574724"], ["updated_at", "2019-05-19 23:36:49.574724"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.575407"], ["ends_at", "2019-05-19 23:36:49.575407"], ["average_time", "2019-05-19 23:36:49.575407"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.577853"], ["updated_at", "2019-05-19 23:36:49.577853"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.578899"], ["ends_at", "2019-05-19 23:36:49.578899"], ["average_time", "2019-05-19 23:36:49.578899"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.579765"], ["ends_at", "2019-05-19 23:36:49.579765"], ["average_time", "2019-05-19 23:36:49.579765"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.580460"], ["updated_at", "2019-05-19 23:36:49.580460"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.581672"], ["ends_at", "2019-05-19 23:36:49.581672"], ["average_time", "2019-05-19 23:36:49.581672"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.586225"], ["updated_at", "2019-05-19 23:36:49.586225"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.587278"], ["ends_at", "2019-05-19 23:36:49.587278"], ["average_time", "2019-05-19 23:36:49.587278"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.588757"], ["ends_at", "2019-05-19 23:36:49.588757"], ["average_time", "2019-05-19 23:36:49.588757"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:36:49.589507"], ["updated_at", "2019-05-19 23:36:49.589507"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:36:49.590142"], ["ends_at", "2019-05-19 23:36:49.590142"], ["average_time", "2019-05-19 23:36:49.590142"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.3ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (1.8ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (1.1ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (0.9ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.1ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:41:11.684261"], ["updated_at", "2019-05-19 23:41:11.684261"]] +  (1.0ms) commit transaction +  (0.9ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.886582"], ["updated_at", "2019-05-19 23:41:11.886582"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.894198"], ["ends_at", "2019-05-19 23:41:11.894198"], ["average_time", "2019-05-19 23:41:11.894198"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.895355"], ["updated_at", "2019-05-19 23:41:11.895355"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.896210"], ["ends_at", "2019-05-19 23:41:11.896210"], ["average_time", "2019-05-19 23:41:11.896210"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.897057"], ["ends_at", "2019-05-19 23:41:11.897057"], ["average_time", "2019-05-19 23:41:11.897057"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.904185"], ["updated_at", "2019-05-19 23:41:11.904185"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.8ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.905286"], ["ends_at", "2019-05-19 23:41:11.905286"], ["average_time", "2019-05-19 23:41:11.905286"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.906998"], ["updated_at", "2019-05-19 23:41:11.906998"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.909407"], ["ends_at", "2019-05-19 23:41:11.909407"], ["average_time", "2019-05-19 23:41:11.909407"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.911928"], ["ends_at", "2019-05-19 23:41:11.911928"], ["average_time", "2019-05-19 23:41:11.911928"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (1.3ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.919544"], ["updated_at", "2019-05-19 23:41:11.919544"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.922402"], ["ends_at", "2019-05-19 23:41:11.922402"], ["average_time", "2019-05-19 23:41:11.922402"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.924674"], ["updated_at", "2019-05-19 23:41:11.924674"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.926158"], ["ends_at", "2019-05-19 23:41:11.926158"], ["average_time", "2019-05-19 23:41:11.926158"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.927848"], ["ends_at", "2019-05-19 23:41:11.927848"], ["average_time", "2019-05-19 23:41:11.927848"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.932273"], ["updated_at", "2019-05-19 23:41:11.932273"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.942015"], ["updated_at", "2019-05-19 23:41:11.942015"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.944712"], ["ends_at", "2019-05-19 23:41:11.944712"], ["average_time", "2019-05-19 23:41:11.944712"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.949704"], ["updated_at", "2019-05-19 23:41:11.949704"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.953089"], ["ends_at", "2019-05-19 23:41:11.953089"], ["average_time", "2019-05-19 23:41:11.953089"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:41:11.959380"], ["updated_at", "2019-05-19 23:41:11.959380"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (1.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:11.962078"], ["ends_at", "2019-05-19 23:41:11.962078"], ["average_time", "2019-05-19 23:41:11.962078"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.972682"], ["updated_at", "2019-05-19 23:41:11.972682"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.977717"], ["updated_at", "2019-05-19 23:41:11.977717"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:41:11.981210"], ["updated_at", "2019-05-19 23:41:11.981210"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (8.3ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.994350"], ["updated_at", "2019-05-19 23:41:11.994350"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:11.996718"], ["updated_at", "2019-05-19 23:41:11.996718"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:11.999749"], ["updated_at", "2019-05-19 23:41:11.999749"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.003386"], ["updated_at", "2019-05-19 23:41:12.003386"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.005628"], ["updated_at", "2019-05-19 23:41:12.005628"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.009740"], ["updated_at", "2019-05-19 23:41:12.009740"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:41:12.013271"], ["updated_at", "2019-05-19 23:41:12.013271"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.018696"], ["updated_at", "2019-05-19 23:41:12.018696"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.023151"], ["updated_at", "2019-05-19 23:41:12.023151"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.030769"], ["updated_at", "2019-05-19 23:41:12.030769"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.034972"], ["updated_at", "2019-05-19 23:41:12.034972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.037685"], ["updated_at", "2019-05-19 23:41:12.037685"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.040025"], ["updated_at", "2019-05-19 23:41:12.040025"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.043894"], ["updated_at", "2019-05-19 23:41:12.043894"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.047683"], ["updated_at", "2019-05-19 23:41:12.047683"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.051972"], ["updated_at", "2019-05-19 23:41:12.051972"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.054976"], ["updated_at", "2019-05-19 23:41:12.054976"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.057712"], ["updated_at", "2019-05-19 23:41:12.057712"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.061783"], ["updated_at", "2019-05-19 23:41:12.061783"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.067942"], ["updated_at", "2019-05-19 23:41:12.067942"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.069700"], ["ends_at", "2019-05-19 23:41:12.069700"], ["average_time", "2019-05-19 23:41:12.069700"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.095428"], ["updated_at", "2019-05-19 23:41:12.095428"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.101576"], ["updated_at", "2019-05-19 23:41:12.101576"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.110273"], ["updated_at", "2019-05-19 23:41:12.110273"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Update (0.2ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:41:12.121919"], ["updated_at", "2019-05-19 23:41:12.121919"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.3ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.129156"], ["updated_at", "2019-05-19 23:41:12.129156"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.137713"], ["updated_at", "2019-05-19 23:41:12.137713"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.144736"], ["updated_at", "2019-05-19 23:41:12.144736"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:41:12.147730"], ["updated_at", "2019-05-19 23:41:12.147730"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.149592"], ["ends_at", "2019-05-19 23:41:12.149592"], ["average_time", "2019-05-19 23:41:12.149592"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.153800"], ["updated_at", "2019-05-19 23:41:12.153800"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.155456"], ["ends_at", "2019-05-19 23:41:12.155456"], ["average_time", "2019-05-19 23:41:12.155456"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:41:12.158486"], ["updated_at", "2019-05-19 23:41:12.158486"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.161790"], ["ends_at", "2019-05-19 23:41:12.161790"], ["average_time", "2019-05-19 23:41:12.161790"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:41:12.165731"], ["updated_at", "2019-05-19 23:41:12.165731"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.168687"], ["ends_at", "2019-05-19 23:41:12.168687"], ["average_time", "2019-05-19 23:41:12.168687"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.170192"], ["ends_at", "2019-05-19 23:41:12.170192"], ["average_time", "2019-05-19 23:41:12.170192"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.171778"], ["updated_at", "2019-05-19 23:41:12.171778"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.173644"], ["ends_at", "2019-05-19 23:41:12.173644"], ["average_time", "2019-05-19 23:41:12.173644"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.176568"], ["updated_at", "2019-05-19 23:41:12.176568"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.177602"], ["ends_at", "2019-05-19 23:41:12.177602"], ["average_time", "2019-05-19 23:41:12.177602"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.178540"], ["ends_at", "2019-05-19 23:41:12.178540"], ["average_time", "2019-05-19 23:41:12.178540"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.179332"], ["updated_at", "2019-05-19 23:41:12.179332"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.180050"], ["ends_at", "2019-05-19 23:41:12.180050"], ["average_time", "2019-05-19 23:41:12.180050"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:41:12.184581"], ["updated_at", "2019-05-19 23:41:12.184581"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.185841"], ["ends_at", "2019-05-19 23:41:12.185841"], ["average_time", "2019-05-19 23:41:12.185841"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.186774"], ["ends_at", "2019-05-19 23:41:12.186774"], ["average_time", "2019-05-19 23:41:12.186774"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.187488"], ["updated_at", "2019-05-19 23:41:12.187488"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.188190"], ["ends_at", "2019-05-19 23:41:12.188190"], ["average_time", "2019-05-19 23:41:12.188190"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:41:12.189193"], ["updated_at", "2019-05-19 23:41:12.189193"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.192590"], ["updated_at", "2019-05-19 23:41:12.192590"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.193595"], ["ends_at", "2019-05-19 23:41:12.193595"], ["average_time", "2019-05-19 23:41:12.193595"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.194854"], ["ends_at", "2019-05-19 23:41:12.194854"], ["average_time", "2019-05-19 23:41:12.194854"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.195662"], ["updated_at", "2019-05-19 23:41:12.195662"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.196544"], ["ends_at", "2019-05-19 23:41:12.196544"], ["average_time", "2019-05-19 23:41:12.196544"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.200483"], ["updated_at", "2019-05-19 23:41:12.200483"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.202015"], ["ends_at", "2019-05-19 23:41:12.202015"], ["average_time", "2019-05-19 23:41:12.202015"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.202971"], ["ends_at", "2019-05-19 23:41:12.202971"], ["average_time", "2019-05-19 23:41:12.202971"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.203726"], ["updated_at", "2019-05-19 23:41:12.203726"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.204532"], ["ends_at", "2019-05-19 23:41:12.204532"], ["average_time", "2019-05-19 23:41:12.204532"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.6ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.209036"], ["updated_at", "2019-05-19 23:41:12.209036"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.210915"], ["ends_at", "2019-05-19 23:41:12.210915"], ["average_time", "2019-05-19 23:41:12.210915"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.212555"], ["ends_at", "2019-05-19 23:41:12.212555"], ["average_time", "2019-05-19 23:41:12.212555"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.213981"], ["updated_at", "2019-05-19 23:41:12.213981"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.215835"], ["ends_at", "2019-05-19 23:41:12.215835"], ["average_time", "2019-05-19 23:41:12.215835"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.221454"], ["updated_at", "2019-05-19 23:41:12.221454"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.223665"], ["ends_at", "2019-05-19 23:41:12.223665"], ["average_time", "2019-05-19 23:41:12.223665"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.224722"], ["ends_at", "2019-05-19 23:41:12.224722"], ["average_time", "2019-05-19 23:41:12.224722"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.225655"], ["updated_at", "2019-05-19 23:41:12.225655"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.226364"], ["ends_at", "2019-05-19 23:41:12.226364"], ["average_time", "2019-05-19 23:41:12.226364"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.0ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:41:12.227121"], ["updated_at", "2019-05-19 23:41:12.227121"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:41:12.238716"], ["updated_at", "2019-05-19 23:41:12.238716"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.239751"], ["ends_at", "2019-05-19 23:41:12.239751"], ["average_time", "2019-05-19 23:41:12.239751"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.240644"], ["ends_at", "2019-05-19 23:41:12.240644"], ["average_time", "2019-05-19 23:41:12.240644"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.241325"], ["updated_at", "2019-05-19 23:41:12.241325"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.241985"], ["ends_at", "2019-05-19 23:41:12.241985"], ["average_time", "2019-05-19 23:41:12.241985"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.244261"], ["updated_at", "2019-05-19 23:41:12.244261"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.245277"], ["ends_at", "2019-05-19 23:41:12.245277"], ["average_time", "2019-05-19 23:41:12.245277"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.246184"], ["ends_at", "2019-05-19 23:41:12.246184"], ["average_time", "2019-05-19 23:41:12.246184"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.246864"], ["updated_at", "2019-05-19 23:41:12.246864"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.247529"], ["ends_at", "2019-05-19 23:41:12.247529"], ["average_time", "2019-05-19 23:41:12.247529"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.250111"], ["updated_at", "2019-05-19 23:41:12.250111"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.251230"], ["ends_at", "2019-05-19 23:41:12.251230"], ["average_time", "2019-05-19 23:41:12.251230"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.252498"], ["ends_at", "2019-05-19 23:41:12.252498"], ["average_time", "2019-05-19 23:41:12.252498"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:41:12.253544"], ["updated_at", "2019-05-19 23:41:12.253544"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:41:12.254307"], ["ends_at", "2019-05-19 23:41:12.254307"], ["average_time", "2019-05-19 23:41:12.254307"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.7ms) rollback transaction +  (0.1ms) DROP TABLE IF EXISTS "articles" +  (0.6ms) SELECT sqlite_version(*) +  (1.9ms) CREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) +  (0.1ms) DROP TABLE IF EXISTS "punches" +  (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) +  (1.0ms) CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time") +  (1.0ms) CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id") +  (1.3ms) CREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction + ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:44:12.340800"], ["updated_at", "2019-05-19 23:44:12.340800"]] +  (0.7ms) commit transaction +  (1.2ms) CREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY) + ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ? [["key", "environment"], ["LIMIT", 1]] +  (0.0ms) begin transaction +  (0.0ms) commit transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 1"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:44:12.571065"], ["updated_at", "2019-05-19 23:44:12.571065"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.579878"], ["ends_at", "2019-05-19 23:44:12.579878"], ["average_time", "2019-05-19 23:44:12.579878"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.580987"], ["updated_at", "2019-05-19 23:44:12.580987"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.581734"], ["ends_at", "2019-05-19 23:44:12.581734"], ["average_time", "2019-05-19 23:44:12.581734"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.582545"], ["ends_at", "2019-05-19 23:44:12.582545"], ["average_time", "2019-05-19 23:44:12.582545"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.589795"], ["updated_at", "2019-05-19 23:44:12.589795"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.590914"], ["ends_at", "2019-05-19 23:44:12.590914"], ["average_time", "2019-05-19 23:44:12.590914"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.591750"], ["updated_at", "2019-05-19 23:44:12.591750"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.592441"], ["ends_at", "2019-05-19 23:44:12.592441"], ["average_time", "2019-05-19 23:44:12.592441"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.593194"], ["ends_at", "2019-05-19 23:44:12.593194"], ["average_time", "2019-05-19 23:44:12.593194"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.595646"], ["updated_at", "2019-05-19 23:44:12.595646"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.596783"], ["ends_at", "2019-05-19 23:44:12.596783"], ["average_time", "2019-05-19 23:44:12.596783"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Article 2"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:44:12.597621"], ["updated_at", "2019-05-19 23:44:12.597621"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.598434"], ["ends_at", "2019-05-19 23:44:12.598434"], ["average_time", "2019-05-19 23:44:12.598434"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.599239"], ["ends_at", "2019-05-19 23:44:12.599239"], ["average_time", "2019-05-19 23:44:12.599239"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.2ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:44:12.601822"], ["updated_at", "2019-05-19 23:44:12.601822"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:44:12.616547"], ["updated_at", "2019-05-19 23:44:12.616547"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.618575"], ["ends_at", "2019-05-19 23:44:12.618575"], ["average_time", "2019-05-19 23:44:12.618575"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:44:12.622874"], ["updated_at", "2019-05-19 23:44:12.622874"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.624127"], ["ends_at", "2019-05-19 23:44:12.624127"], ["average_time", "2019-05-19 23:44:12.624127"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT COUNT(*) FROM "punches" +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hector"], ["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2019-05-19 23:44:12.626974"], ["updated_at", "2019-05-19 23:44:12.626974"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.628649"], ["ends_at", "2019-05-19 23:44:12.628649"], ["average_time", "2019-05-19 23:44:12.628649"], ["hits", 2]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" +  (0.7ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.634548"], ["updated_at", "2019-05-19 23:44:12.634548"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.637886"], ["updated_at", "2019-05-19 23:44:12.637886"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.640287"], ["updated_at", "2019-05-19 23:44:12.640287"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.643753"], ["updated_at", "2019-05-19 23:44:12.643753"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.647746"], ["updated_at", "2019-05-19 23:44:12.647746"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.650516"], ["updated_at", "2019-05-19 23:44:12.650516"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.652759"], ["updated_at", "2019-05-19 23:44:12.652759"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.654865"], ["updated_at", "2019-05-19 23:44:12.654865"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.657118"], ["updated_at", "2019-05-19 23:44:12.657118"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.8ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.661917"], ["updated_at", "2019-05-19 23:44:12.661917"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.666534"], ["updated_at", "2019-05-19 23:44:12.666534"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.670515"], ["updated_at", "2019-05-19 23:44:12.670515"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.680840"], ["updated_at", "2019-05-19 23:44:12.680840"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.683064"], ["updated_at", "2019-05-19 23:44:12.683064"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.685364"], ["updated_at", "2019-05-19 23:44:12.685364"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.687517"], ["updated_at", "2019-05-19 23:44:12.687517"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.689673"], ["updated_at", "2019-05-19 23:44:12.689673"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-05-01 00:00:00' AND punches.ends_at <= '2019-05-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.7ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:44:12.695138"], ["updated_at", "2019-05-19 23:44:12.695138"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.698065"], ["updated_at", "2019-05-19 23:44:12.698065"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.700410"], ["updated_at", "2019-05-19 23:44:12.700410"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.702804"], ["updated_at", "2019-05-19 23:44:12.702804"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.705320"], ["updated_at", "2019-05-19 23:44:12.705320"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2019-01-01 00:00:00' AND punches.ends_at <= '2019-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.2ms) SAVEPOINT active_record_1 + Article Create (0.6ms) 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", "2019-05-19 23:44:12.709989"], ["updated_at", "2019-05-19 23:44:12.709989"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.712515"], ["ends_at", "2019-05-19 23:44:12.712515"], ["average_time", "2019-05-19 23:44:12.712515"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.751108"], ["updated_at", "2019-05-19 23:44:12.751108"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (1.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", "2019-05-19 23:44:12.762236"], ["updated_at", "2019-05-19 23:44:12.762236"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:44:12.777667"], ["updated_at", "2019-05-19 23:44:12.777667"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.787512"], ["updated_at", "2019-05-19 23:44:12.787512"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Update (0.1ms) UPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ? [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Destroy (0.0ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.8ms) 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", "2019-05-19 23:44:12.799569"], ["updated_at", "2019-05-19 23:44:12.799569"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.5ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.5ms) rollback transaction +  (0.2ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.4ms) 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", "2019-05-19 23:44:12.811888"], ["updated_at", "2019-05-19 23:44:12.811888"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.4ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 09:00:00"], ["ends_at", "2019-05-19 09:00:00"], ["average_time", "2019-05-19 09:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-26 07:00:00"], ["ends_at", "2019-05-26 07:00:00"], ["average_time", "2019-05-26 07:00:00"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 08:00:00"], ["ends_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:00:00"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2019-05-19 00:00:00' AND punches.ends_at <= '2019-05-19 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT ? [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]] +  (0.8ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:44:12.835099"], ["updated_at", "2019-05-19 23:44:12.835099"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.838559"], ["updated_at", "2019-05-19 23:44:12.838559"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.839597"], ["ends_at", "2019-05-19 23:44:12.839597"], ["average_time", "2019-05-19 23:44:12.839597"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.7ms) 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", "2019-05-19 23:44:12.842845"], ["updated_at", "2019-05-19 23:44:12.842845"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.847128"], ["ends_at", "2019-05-19 23:44:12.847128"], ["average_time", "2019-05-19 23:44:12.847128"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.849468"], ["updated_at", "2019-05-19 23:44:12.849468"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.851009"], ["ends_at", "2019-05-19 23:44:12.851009"], ["average_time", "2019-05-19 23:44:12.851009"], ["hits", 2]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.853191"], ["updated_at", "2019-05-19 23:44:12.853191"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.854191"], ["ends_at", "2019-05-19 23:44:12.854191"], ["average_time", "2019-05-19 23:44:12.854191"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.855079"], ["ends_at", "2019-05-19 23:44:12.855079"], ["average_time", "2019-05-19 23:44:12.855079"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.856186"], ["updated_at", "2019-05-19 23:44:12.856186"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.857106"], ["ends_at", "2019-05-19 23:44:12.857106"], ["average_time", "2019-05-19 23:44:12.857106"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.5ms) 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:44:12.863500"], ["updated_at", "2019-05-19 23:44:12.863500"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.3ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.865180"], ["ends_at", "2019-05-19 23:44:12.865180"], ["average_time", "2019-05-19 23:44:12.865180"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.866906"], ["ends_at", "2019-05-19 23:44:12.866906"], ["average_time", "2019-05-19 23:44:12.866906"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.868266"], ["updated_at", "2019-05-19 23:44:12.868266"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.869570"], ["ends_at", "2019-05-19 23:44:12.869570"], ["average_time", "2019-05-19 23:44:12.869570"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:44:12.873580"], ["updated_at", "2019-05-19 23:44:12.873580"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.874715"], ["ends_at", "2019-05-19 23:44:12.874715"], ["average_time", "2019-05-19 23:44:12.874715"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.875978"], ["ends_at", "2019-05-19 23:44:12.875978"], ["average_time", "2019-05-19 23:44:12.875978"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.877520"], ["updated_at", "2019-05-19 23:44:12.877520"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.878868"], ["ends_at", "2019-05-19 23:44:12.878868"], ["average_time", "2019-05-19 23:44:12.878868"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:44:12.880117"], ["updated_at", "2019-05-19 23:44:12.880117"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 5]] +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.883453"], ["updated_at", "2019-05-19 23:44:12.883453"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.884436"], ["ends_at", "2019-05-19 23:44:12.884436"], ["average_time", "2019-05-19 23:44:12.884436"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.885346"], ["ends_at", "2019-05-19 23:44:12.885346"], ["average_time", "2019-05-19 23:44:12.885346"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.886079"], ["updated_at", "2019-05-19 23:44:12.886079"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.0ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.886736"], ["ends_at", "2019-05-19 23:44:12.886736"], ["average_time", "2019-05-19 23:44:12.886736"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["punchable_type", "Article"], ["LIMIT", 1]] +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:44:12.889301"], ["updated_at", "2019-05-19 23:44:12.889301"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.890334"], ["ends_at", "2019-05-19 23:44:12.890334"], ["average_time", "2019-05-19 23:44:12.890334"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.891213"], ["ends_at", "2019-05-19 23:44:12.891213"], ["average_time", "2019-05-19 23:44:12.891213"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.892201"], ["updated_at", "2019-05-19 23:44:12.892201"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.896125"], ["ends_at", "2019-05-19 23:44:12.896125"], ["average_time", "2019-05-19 23:44:12.896125"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]] +  (0.5ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:44:12.899247"], ["updated_at", "2019-05-19 23:44:12.899247"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.900353"], ["ends_at", "2019-05-19 23:44:12.900353"], ["average_time", "2019-05-19 23:44:12.900353"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.901310"], ["ends_at", "2019-05-19 23:44:12.901310"], ["average_time", "2019-05-19 23:44:12.901310"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.902027"], ["updated_at", "2019-05-19 23:44:12.902027"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.902722"], ["ends_at", "2019-05-19 23:44:12.902722"], ["average_time", "2019-05-19 23:44:12.902722"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.3ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.905046"], ["updated_at", "2019-05-19 23:44:12.905046"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.906029"], ["ends_at", "2019-05-19 23:44:12.906029"], ["average_time", "2019-05-19 23:44:12.906029"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.907212"], ["ends_at", "2019-05-19 23:44:12.907212"], ["average_time", "2019-05-19 23:44:12.907212"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.908949"], ["updated_at", "2019-05-19 23:44:12.908949"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.912122"], ["ends_at", "2019-05-19 23:44:12.912122"], ["average_time", "2019-05-19 23:44:12.912122"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.1ms) INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Hipsters"], ["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2019-05-19 23:44:12.913921"], ["updated_at", "2019-05-19 23:44:12.913921"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.918161"], ["updated_at", "2019-05-19 23:44:12.918161"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.2ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.919895"], ["ends_at", "2019-05-19 23:44:12.919895"], ["average_time", "2019-05-19 23:44:12.919895"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.921638"], ["ends_at", "2019-05-19 23:44:12.921638"], ["average_time", "2019-05-19 23:44:12.921638"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.923130"], ["updated_at", "2019-05-19 23:44:12.923130"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.923946"], ["ends_at", "2019-05-19 23:44:12.923946"], ["average_time", "2019-05-19 23:44:12.923946"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 +  (0.6ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + Article Create (0.5ms) 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", "2019-05-19 23:44:12.927946"], ["updated_at", "2019-05-19 23:44:12.927946"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.929647"], ["ends_at", "2019-05-19 23:44:12.929647"], ["average_time", "2019-05-19 23:44:12.929647"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.930608"], ["ends_at", "2019-05-19 23:44:12.930608"], ["average_time", "2019-05-19 23:44:12.930608"]] +  (0.4ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.931917"], ["updated_at", "2019-05-19 23:44:12.931917"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.932680"], ["ends_at", "2019-05-19 23:44:12.932680"], ["average_time", "2019-05-19 23:44:12.932680"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? [["LIMIT", 1]] +  (0.4ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + Article Create (0.3ms) 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", "2019-05-19 23:44:12.937369"], ["updated_at", "2019-05-19 23:44:12.937369"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.938481"], ["ends_at", "2019-05-19 23:44:12.938481"], ["average_time", "2019-05-19 23:44:12.938481"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.939461"], ["ends_at", "2019-05-19 23:44:12.939461"], ["average_time", "2019-05-19 23:44:12.939461"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Article Create (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", "2019-05-19 23:44:12.940166"], ["updated_at", "2019-05-19 23:44:12.940166"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + Punch Create (0.1ms) INSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?) [["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2019-05-19 23:44:12.940847"], ["ends_at", "2019-05-19 23:44:12.940847"], ["average_time", "2019-05-19 23:44:12.940847"]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 + 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 ? OFFSET ? [["LIMIT", 1], ["OFFSET", 1]] +  (0.8ms) rollback transaction