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 @@
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
[1m[35mSQL (0.0ms)[0m 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"]]
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
[1m[35mArticle Load (0.1ms)[0m 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
[1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[36m (1.5ms)[0m [1mCREATE TABLE "articles" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime, "updated_at" datetime) [0m
+ [1m[35m (6.5ms)[0m 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)
+ [1m[36m (0.1ms)[0m [1mselect sqlite_version(*)[0m
+ [1m[35m (1.0ms)[0m CREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")
+ [1m[36m (0.1ms)[0m [1m 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'
+[0m
+ [1m[35m (0.9ms)[0m CREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")
+ [1m[36m (0.8ms)[0m [1mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL) [0m
+ [1m[35m (0.6ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "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[0m [["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "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[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "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[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "punches"
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "punches"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT SUM("punches"."hits") FROM "punches"
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.1ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (1.7ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.6ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.8ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPunch Load (0.2ms)[0m [1mSELECT "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[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.2ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.5ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPunch Load (0.1ms)[0m [1mSELECT "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[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.7ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.4ms)[0m INSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mPunch Load (0.2ms)[0m [1mSELECT "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[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "punches"
+ [1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00.000000"], ["average_time", "2019-05-19 08:30:00.000000"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPunch Load (0.1ms)[0m 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"]]
+ [1m[36mPunch Load (0.1ms)[0m [1mSELECT "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[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.4ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mPunch Load (0.1ms)[0m 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"]]
+ [1m[36mPunch Load (0.0ms)[0m [1mSELECT "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[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "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"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[36m (0.5ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "articles" ("title", "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mArticle Load (0.2ms)[0m 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"]]
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mArticle Load (0.1ms)[0m 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"]]
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.3ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (1.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "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[0m [["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.7ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("title", "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"]]
+ [1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.1ms)[0m [1mSELECT "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[0m [["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m rollback transaction
+ [1m[36m (0.0ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.2ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("title", "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.3ms)[0m [1mSELECT "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[0m [["punchable_type", "Article"]]
+ [1m[35m (2.2ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("title", "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (1.3ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36mArticle Load (0.2ms)[0m [1mSELECT "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[0m
+ [1m[35m (0.5ms)[0m rollback transaction
+ [1m[36m (0.1ms)[0m [1mbegin transaction[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.3ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "articles" ("title", "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mArticle Load (0.3ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.5ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mArticle Load (0.1ms)[0m 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
+ [1m[36m (0.3ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.1ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mArticle Load (0.1ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.0ms)[0m begin transaction
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.2ms)[0m 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.1ms)[0m [1mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT INTO "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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m SAVEPOINT active_record_1
+ [1m[36mSQL (0.0ms)[0m [1mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
+ [1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
+ [1m[35mSQL (0.0ms)[0m INSERT 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"]]
+ [1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35mArticle Load (0.1ms)[0m 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
+ [1m[36m (0.4ms)[0m [1mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.8ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:41:17.357765"], ["updated_at", "2019-05-19 22:41:17.357765"]]
+ [1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.8ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.8ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (4.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.4ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.5ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.4ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:41:49.654440"], ["updated_at", "2019-05-19 22:41:49.654440"]]
+ [1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.7ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (1.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (1.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (1.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (2.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (2.4ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (15.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:43:40.898858"], ["updated_at", "2019-05-19 22:43:40.898858"]]
+ [1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.8ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (1.5ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (1.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.2ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (2.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:46:52.835081"], ["updated_at", "2019-05-19 22:46:52.835081"]]
+ [1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.4ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (1.2ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:49:18.065994"], ["updated_at", "2019-05-19 22:49:18.065994"]]
+ [1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.9ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (1.5ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.2ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.5ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (1.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.5ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (2.5ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:50:12.864285"], ["updated_at", "2019-05-19 22:50:12.864285"]]
+ [1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (1.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (2.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (3.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (1.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (3.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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) [0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (1.1ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:53:00.076599"], ["updated_at", "2019-05-19 22:53:00.076599"]]
+ [1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (4.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (1.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (9.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (2.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (2.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (2.7ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.9ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:53:16.539604"], ["updated_at", "2019-05-19 22:53:16.539604"]]
+ [1m[35m (1.1ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (2.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (8.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.8ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.9ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (2.8ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 22:56:58.134427"], ["updated_at", "2019-05-19 22:56:58.134427"]]
+ [1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (6.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (10.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.5ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (8.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (7.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.9ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (1.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.8ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.9ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (1.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.9ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (3.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:04:06.152075"], ["updated_at", "2019-05-19 23:04:06.152075"]]
+ [1m[35m (0.5ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.2ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (2.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:04:17.972352"], ["updated_at", "2019-05-19 23:04:17.972352"]]
+ [1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.9ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.8ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (2.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.9ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.9ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.9ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.4ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.7ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:04:45.610242"], ["updated_at", "2019-05-19 23:04:45.610242"]]
+ [1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.6ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (8.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.7ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (1.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.4ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.4ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:23:38.832016"], ["updated_at", "2019-05-19 23:23:38.832016"]]
+ [1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.6ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.7ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.7ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.7ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (9.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (2.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.5ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.4ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (2.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:30:59.018565"], ["updated_at", "2019-05-19 23:30:59.018565"]]
+ [1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:31:01.784821"], ["updated_at", "2019-05-19 23:31:01.784821"]]
+ [1m[35m (0.6ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.5ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.8ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (1.0ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:36:35.632367"], ["updated_at", "2019-05-19 23:36:35.632367"]]
+ [1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.3ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.8ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:36:49.036856"], ["updated_at", "2019-05-19 23:36:49.036856"]]
+ [1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.3ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.5ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.0ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.5ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.4ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.9ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:41:11.684261"], ["updated_at", "2019-05-19 23:41:11.684261"]]
+ [1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.8ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (1.3ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (1.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (8.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.2ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "articles"[0m
+ [1m[35m (0.6ms)[0m [1m[34mSELECT sqlite_version(*)[0m
+ [1m[35m (1.9ms)[0m [1m[35mCREATE TABLE "articles" ("id" integer PRIMARY KEY AUTOINCREMENT NOT NULL, "title" varchar, "content" text, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "punches"[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_punches_on_average_time" ON "punches" ("average_time")[0m
+ [1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "punchable_index" ON "punches" ("punchable_type", "punchable_id")[0m
+ [1m[35m (1.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", "2019-05-19 23:44:12.340800"], ["updated_at", "2019-05-19 23:44:12.340800"]]
+ [1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
+ [1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", "environment"], ["LIMIT", 1]]
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches"[0m
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.3ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.6ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "punches"[0m
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.1ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (1.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Update (0.1ms)[0m [1m[33mUPDATE "punches" SET "starts_at" = ?, "average_time" = ?, "hits" = ? WHERE "punches"."id" = ?[0m [["starts_at", "2019-05-19 08:00:00"], ["average_time", "2019-05-19 08:30:00"], ["hits", 2], ["id", 1]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Destroy (0.0ms)[0m [1m[31mDELETE FROM "punches" WHERE "punches"."id" = ?[0m [["id", 3]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.8ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.5ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.2ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["title", "Bluths"], ["content", "I know, 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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.4ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mPunch Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[36mPunch Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_id", 1], ["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.7ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time", "hits") VALUES (?, ?, ?, ?, ?, ?)[0m [["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]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[34mSELECT SUM("punches"."hits") FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ?[0m [["punchable_id", 1], ["punchable_type", "Article"]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.5ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.3ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.2ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 5]]
+ [1m[35m (0.2ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.0ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1]]
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["punchable_type", "Article"], ["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.2ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.4ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.2ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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[0m
+ [1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.5ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.1ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1]]
+ [1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
+ [1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.3ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mArticle Create (0.0ms)[0m [1m[32mINSERT INTO "articles" ("title", "content", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
+ [1m[36mPunch Create (0.1ms)[0m [1m[32mINSERT INTO "punches" ("punchable_id", "punchable_type", "starts_at", "ends_at", "average_time") VALUES (?, ?, ?, ?, ?)[0m [["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"]]
+ [1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
+ [1m[36mArticle Load (0.1ms)[0m [1m[34mSELECT "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 ?[0m [["LIMIT", 1], ["OFFSET", 1]]
+ [1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m