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