spec/internal/log/test.log in punching_bag-0.3.9 vs spec/internal/log/test.log in punching_bag-0.4.0

- old
+ new

@@ -19243,5 +19243,478 @@  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.1ms) SAVEPOINT active_record_1 SQL (0.5ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2014-07-25 15:30:13.942364"], ["ends_at", "2014-07-25 15:30:13.942364"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2014-07-25 15:30:13.942364"]]  (0.1ms) RELEASE SAVEPOINT active_record_1  (0.3ms) rollback transaction +  (0.4ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2015-01-05 21:10:12.791459"], ["title", "Hector"], ["updated_at", "2015-01-05 21:10:12.791459"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2015-01-05 21:10:12.801622"], ["title", "Hector"], ["updated_at", "2015-01-05 21:10:12.801622"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.5ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:12.812967"], ["ends_at", "2015-01-05 21:10:12.812967"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:12.812967"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Ding, ding ding... ding. Ding. DING. DING! "], ["created_at", "2015-01-05 21:10:12.819502"], ["title", "Hector"], ["updated_at", "2015-01-05 21:10:12.819502"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:12.821544"], ["ends_at", "2015-01-05 21:10:12.821544"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:12.821544"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.828594"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.828594"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.832196"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.832196"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.835631"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.835631"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.839421"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.839421"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.843784"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.843784"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.849548"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.849548"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.853911"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.853911"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.857650"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.857650"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.861064"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.861064"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.864527"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.864527"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.868230"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.868230"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.872305"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.872305"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2015-01-05 00:00:00.000000' AND punches.ends_at <= '2015-01-05 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.889074"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.889074"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.892747"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.892747"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.896610"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.896610"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.900226"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.900226"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.905685"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.905685"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2015-01-01 00:00:00.000000' AND punches.ends_at <= '2015-01-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.913121"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.913121"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.917172"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.917172"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.920777"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.920777"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) rollback transaction +  (0.0ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.924338"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.924338"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.928057"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.928057"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.3ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.hits > 1) AND (punches.starts_at >= '2015-01-01 00:00:00.000000' AND punches.ends_at <= '2015-12-31 23:59:59.999999') ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.935478"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.935478"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:12.937733"], ["ends_at", "2015-01-05 21:10:12.937733"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:12.937733"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT COUNT(*) FROM "punches" +  (0.1ms) SELECT COUNT(*) FROM "punches" +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.944040"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.944040"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 10:00:00.000000"], ["ends_at", "2015-01-05 10:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 10:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-12 08:00:00.000000"], ["ends_at", "2015-01-12 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-12 08:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 09:00:00.000000"], ["ends_at", "2015-01-05 09:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) UPDATE "punches" SET "average_time" = ?, "hits" = ?, "starts_at" = ? WHERE "punches"."id" = 1 [["average_time", "2015-01-05 09:30:00.000000"], ["hits", 2], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.956043"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.956043"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 10:00:00.000000"], ["ends_at", "2015-01-05 10:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 10:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-12 08:00:00.000000"], ["ends_at", "2015-01-12 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-12 08:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 09:00:00.000000"], ["ends_at", "2015-01-05 09:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "punches" SET "average_time" = ?, "hits" = ?, "starts_at" = ? WHERE "punches"."id" = 1 [["average_time", "2015-01-05 09:30:00.000000"], ["hits", 2], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.969076"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.969076"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 10:00:00.000000"], ["ends_at", "2015-01-05 10:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 10:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-12 08:00:00.000000"], ["ends_at", "2015-01-12 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-12 08:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 09:00:00.000000"], ["ends_at", "2015-01-05 09:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "punches" SET "average_time" = ?, "hits" = ?, "starts_at" = ? WHERE "punches"."id" = 1 [["average_time", "2015-01-05 09:30:00.000000"], ["hits", 2], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.980612"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.980612"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 10:00:00.000000"], ["ends_at", "2015-01-05 10:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 10:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-12 08:00:00.000000"], ["ends_at", "2015-01-12 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-12 08:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 09:00:00.000000"], ["ends_at", "2015-01-05 09:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) UPDATE "punches" SET "average_time" = ?, "hits" = ?, "starts_at" = ? WHERE "punches"."id" = 1 [["average_time", "2015-01-05 09:30:00.000000"], ["hits", 2], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) DELETE FROM "punches" WHERE "punches"."id" = ? [["id", 3]] +  (0.0ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:12.991110"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:12.991110"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 10:00:00.000000"], ["ends_at", "2015-01-05 10:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 10:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-12 08:00:00.000000"], ["ends_at", "2015-01-12 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-12 08:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 09:00:00.000000"], ["ends_at", "2015-01-05 09:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2015-01-05 00:00:00.000000' AND punches.ends_at <= '2015-01-05 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] + Punch Load (0.2ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2015-01-05 00:00:00.000000' AND punches.ends_at <= '2015-01-05 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "I know, I just call her Annabelle cause she's shaped like a... she's the belle of the ball!"], ["created_at", "2015-01-05 21:10:13.005534"], ["title", "Bluths"], ["updated_at", "2015-01-05 21:10:13.005534"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 10:00:00.000000"], ["ends_at", "2015-01-05 10:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 10:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-12 08:00:00.000000"], ["ends_at", "2015-01-12 08:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-12 08:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 09:00:00.000000"], ["ends_at", "2015-01-05 09:00:00.000000"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 09:00:00.000000"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2015-01-05 00:00:00.000000' AND punches.ends_at <= '2015-01-05 23:59:59.999999') AND (id != 3) AND (punches.hits > 1) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] + Punch Load (0.1ms) SELECT "punches".* FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? AND (punches.starts_at >= '2015-01-05 00:00:00.000000' AND punches.ends_at <= '2015-01-05 23:59:59.999999') AND (id != 3) ORDER BY punches.average_time DESC LIMIT 1 [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.018738"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.018738"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.2ms) SELECT SUM("punches"."hits") AS sum_id FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.025317"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.025317"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.4ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.028874"], ["ends_at", "2015-01-05 21:10:13.028874"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.028874"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") AS sum_id FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.035790"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.035790"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") AS sum_id FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.039769"], ["ends_at", "2015-01-05 21:10:13.039769"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.039769"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SELECT SUM("punches"."hits") AS sum_id FROM "punches" WHERE "punches"."punchable_id" = ? AND "punches"."punchable_type" = ? [["punchable_id", 1], ["punchable_type", "Article"]] +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.044801"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.044801"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.046990"], ["ends_at", "2015-01-05 21:10:13.046990"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.046990"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.049236"], ["ends_at", "2015-01-05 21:10:13.049236"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.049236"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.051092"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.051092"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.052775"], ["ends_at", "2015-01-05 21:10:13.052775"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.052775"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.4ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.068194"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.068194"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.070325"], ["ends_at", "2015-01-05 21:10:13.070325"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.070325"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.072563"], ["ends_at", "2015-01-05 21:10:13.072563"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.072563"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.074389"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.074389"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.076117"], ["ends_at", "2015-01-05 21:10:13.076117"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.076117"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.080702"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.080702"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.082907"], ["ends_at", "2015-01-05 21:10:13.082907"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.082907"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.085236"], ["ends_at", "2015-01-05 21:10:13.085236"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.085236"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.087614"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.087614"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.090420"], ["ends_at", "2015-01-05 21:10:13.090420"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.090420"]] +  (0.2ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2015-01-05 21:10:13.093130"], ["title", "Hipsters"], ["updated_at", "2015-01-05 21:10:13.093130"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 5 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.098019"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.098019"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.099855"], ["ends_at", "2015-01-05 21:10:13.099855"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.099855"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.101765"], ["ends_at", "2015-01-05 21:10:13.101765"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.101765"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.103346"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.103346"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.104908"], ["ends_at", "2015-01-05 21:10:13.104908"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.104908"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.2ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 +  (0.2ms) rollback transaction +  (0.0ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.109116"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.109116"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.111183"], ["ends_at", "2015-01-05 21:10:13.111183"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.111183"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.113068"], ["ends_at", "2015-01-05 21:10:13.113068"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.113068"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.114701"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.114701"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.116246"], ["ends_at", "2015-01-05 21:10:13.116246"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.116246"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) SELECT "articles".* FROM "articles" INNER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "punches"."punchable_type", "punches"."punchable_id", "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1 +  (0.3ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.123079"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.123079"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.125303"], ["ends_at", "2015-01-05 21:10:13.125303"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.125303"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.127636"], ["ends_at", "2015-01-05 21:10:13.127636"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.127636"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.129273"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.129273"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.130875"], ["ends_at", "2015-01-05 21:10:13.130875"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.130875"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.2ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.134779"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.134779"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.136632"], ["ends_at", "2015-01-05 21:10:13.136632"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.136632"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.139719"], ["ends_at", "2015-01-05 21:10:13.139719"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.139719"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.142356"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.142356"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.144794"], ["ends_at", "2015-01-05 21:10:13.144794"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.144794"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "American Apparel aute Banksy officia ugh."], ["created_at", "2015-01-05 21:10:13.147457"], ["title", "Hipsters"], ["updated_at", "2015-01-05 21:10:13.147457"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.3ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC +  (0.4ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.154052"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.154052"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.157095"], ["ends_at", "2015-01-05 21:10:13.157095"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.157095"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.159737"], ["ends_at", "2015-01-05 21:10:13.159737"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.159737"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.161826"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.161826"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.163549"], ["ends_at", "2015-01-05 21:10:13.163549"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.163549"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.2ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.167447"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.167447"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.169310"], ["ends_at", "2015-01-05 21:10:13.169310"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.169310"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.171292"], ["ends_at", "2015-01-05 21:10:13.171292"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.171292"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.0ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.172871"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.172871"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.174512"], ["ends_at", "2015-01-05 21:10:13.174512"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.174512"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.2ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 +  (0.2ms) rollback transaction +  (0.1ms) begin transaction +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Lebowski ipsum over the line! Dolor sit amet, consectetur adipiscing elit praesent ac."], ["created_at", "2015-01-05 21:10:13.178676"], ["title", "Lebowski"], ["updated_at", "2015-01-05 21:10:13.178676"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.3ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.181028"], ["ends_at", "2015-01-05 21:10:13.181028"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.181028"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.2ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.183769"], ["ends_at", "2015-01-05 21:10:13.183769"], ["punchable_id", 1], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.183769"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "articles" ("content", "created_at", "title", "updated_at") VALUES (?, ?, ?, ?) [["content", "Bacon ipsum dolor sit amet turkey short ribs tri-tip"], ["created_at", "2015-01-05 21:10:13.185866"], ["title", "Bacon"], ["updated_at", "2015-01-05 21:10:13.185866"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 +  (0.1ms) SAVEPOINT active_record_1 + SQL (0.1ms) INSERT INTO "punches" ("average_time", "ends_at", "punchable_id", "punchable_type", "starts_at") VALUES (?, ?, ?, ?, ?) [["average_time", "2015-01-05 21:10:13.188057"], ["ends_at", "2015-01-05 21:10:13.188057"], ["punchable_id", 2], ["punchable_type", "Article"], ["starts_at", "2015-01-05 21:10:13.188057"]] +  (0.1ms) RELEASE SAVEPOINT active_record_1 + Article Load (0.2ms) SELECT "articles".* FROM "articles" LEFT OUTER JOIN "punches" ON "punches"."punchable_id" = "articles"."id" AND "punches"."punchable_type" = 'Article' GROUP BY "articles"."id" ORDER BY SUM(punches.hits) DESC LIMIT 1 OFFSET 1 +  (0.2ms) rollback transaction