timeful 0.0.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f3483ad41973a14436a441189dc9ae9f6ad6a40
4
- data.tar.gz: 008af65f6a63f6dd6e8ffead55c67330e0d303b8
3
+ metadata.gz: 7c555ab86512061afa72116a2d3c6592ff20301f
4
+ data.tar.gz: de977270d049f3d14e4642848d0ff4da36fe3eab
5
5
  SHA512:
6
- metadata.gz: f2044cb33f76b7e6db9fb08cc25a62eff75c48d54eb4aece32a2abb9d3c720a924316659ee76021639999d4723478b039715a0caae8905794e179f55e5d2b201
7
- data.tar.gz: 7fd5b9e367d372efb26d57f568579e16ff6457473a1d28b0fb158f9354f68bb0b50aff0dec3eb7b35edb22d0612d864698bae9e7396e66baf3923a9fc1668f52
6
+ metadata.gz: edb2c6b1c162b8e08b23dd2fafdd2651e9af2bd42751d6d3e4ab06ae584e31343feab39172513c0f52fd2f589a508badfc279fbae47f630865086857fcd92c4c
7
+ data.tar.gz: 812e1dfd057b5cae6cf8a366b7c3b7ccb5f46980096a14c03a6c7ca8c15d115f64fd6f2919046b16b007a693b2b47d7b19232d93c24315295b3e47d846b1b4a8
@@ -7,7 +7,7 @@ module Timeful
7
7
  #
8
8
  # @author Alessandro Desantis
9
9
  class FeedItem < ApplicationRecord
10
- belongs_to :feedable, polymorphic: true
10
+ belongs_to :subscriber, polymorphic: true
11
11
  belongs_to :activity
12
12
  end
13
13
  end
@@ -0,0 +1,6 @@
1
+ class RenameFeedableToSubscriberInFeedItems < ActiveRecord::Migration[5.0]
2
+ def change
3
+ rename_column :timeful_feed_items, :feedable_type, :subscriber_type
4
+ rename_column :timeful_feed_items, :feedable_id, :subscriber_id
5
+ end
6
+ end
@@ -12,7 +12,7 @@ module Timeful
12
12
  def self.included(klass)
13
13
  klass.class_eval do
14
14
  has_many :feed_items, -> { order(created_at: :desc) },
15
- as: :feedable,
15
+ as: :subscriber,
16
16
  class_name: 'Timeful::FeedItem'
17
17
  end
18
18
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Timeful
3
- VERSION = '0.0.1'
3
+ VERSION = '1.0.0'
4
4
  end
@@ -0,0 +1,7 @@
1
+ # This migration comes from timeful (originally 20160928104602)
2
+ class RenameFeedableToSubscriberInFeedItems < ActiveRecord::Migration[5.0]
3
+ def change
4
+ rename_column :timeful_feed_items, :feedable_type, :subscriber_type
5
+ rename_column :timeful_feed_items, :feedable_id, :subscriber_id
6
+ end
7
+ end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 20160927160031) do
13
+ ActiveRecord::Schema.define(version: 20160928104634) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -33,12 +33,12 @@ ActiveRecord::Schema.define(version: 20160927160031) do
33
33
  end
34
34
 
35
35
  create_table "timeful_feed_items", force: :cascade do |t|
36
- t.string "feedable_type", null: false
37
- t.integer "feedable_id", null: false
38
- t.integer "activity_id", null: false
39
- t.datetime "created_at", null: false
40
- t.datetime "updated_at", null: false
41
- t.index ["feedable_type", "feedable_id"], name: "index_timeful_feed_items_on_feedable_type_and_feedable_id", using: :btree
36
+ t.string "subscriber_type", null: false
37
+ t.integer "subscriber_id", null: false
38
+ t.integer "activity_id", null: false
39
+ t.datetime "created_at", null: false
40
+ t.datetime "updated_at", null: false
41
+ t.index ["subscriber_type", "subscriber_id"], name: "index_timeful_feed_items_on_subscriber_type_and_subscriber_id", using: :btree
42
42
  end
43
43
 
44
44
  create_table "users", force: :cascade do |t|
@@ -359,3 +359,66 @@ ORDER BY c.conname
359
359
  SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-27 21:06:53 UTC], ["updated_at", 2016-09-27 21:06:53 UTC]]
360
360
   (1.2ms) COMMIT
361
361
  Timeful::FeedItem Load (0.8ms) SELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."feedable_id" = $1 AND "timeful_feed_items"."feedable_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC [["feedable_id", 1], ["feedable_type", "User"]]
362
+  (0.5ms) SELECT pg_try_advisory_lock(339456620476877820);
363
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
364
+ Migrating to RenameFeedableToSubscriberInFeedItems (20160928104634)
365
+  (0.4ms) BEGIN
366
+  (0.6ms) ALTER TABLE "timeful_feed_items" RENAME COLUMN "feedable_type" TO "subscriber_type"
367
+  (0.6ms) ALTER INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" RENAME TO "index_timeful_feed_items_on_subscriber_type_and_feedable_id"
368
+  (0.5ms) ALTER TABLE "timeful_feed_items" RENAME COLUMN "feedable_id" TO "subscriber_id"
369
+  (0.4ms) ALTER INDEX "index_timeful_feed_items_on_subscriber_type_and_feedable_id" RENAME TO "index_timeful_feed_items_on_subscriber_type_and_subscriber_id"
370
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160928104634"]]
371
+  (193.9ms) COMMIT
372
+ ActiveRecord::InternalMetadata Load (0.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
373
+  (1.3ms) BEGIN
374
+  (0.3ms) COMMIT
375
+  (0.4ms) SELECT pg_advisory_unlock(339456620476877820)
376
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
377
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
378
+ FROM pg_constraint c
379
+ JOIN pg_class t1 ON c.conrelid = t1.oid
380
+ JOIN pg_class t2 ON c.confrelid = t2.oid
381
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
382
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
383
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
384
+ WHERE c.contype = 'f'
385
+ AND t1.relname = 'posts'
386
+ AND t3.nspname = ANY (current_schemas(false))
387
+ ORDER BY c.conname
388
+ 
389
+  (2.1ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
390
+ FROM pg_constraint c
391
+ JOIN pg_class t1 ON c.conrelid = t1.oid
392
+ JOIN pg_class t2 ON c.confrelid = t2.oid
393
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
394
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
395
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
396
+ WHERE c.contype = 'f'
397
+ AND t1.relname = 'timeful_activities'
398
+ AND t3.nspname = ANY (current_schemas(false))
399
+ ORDER BY c.conname
400
+ 
401
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
402
+ FROM pg_constraint c
403
+ JOIN pg_class t1 ON c.conrelid = t1.oid
404
+ JOIN pg_class t2 ON c.confrelid = t2.oid
405
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
406
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
407
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
408
+ WHERE c.contype = 'f'
409
+ AND t1.relname = 'timeful_feed_items'
410
+ AND t3.nspname = ANY (current_schemas(false))
411
+ ORDER BY c.conname
412
+ 
413
+  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
414
+ FROM pg_constraint c
415
+ JOIN pg_class t1 ON c.conrelid = t1.oid
416
+ JOIN pg_class t2 ON c.confrelid = t2.oid
417
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
418
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
419
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
420
+ WHERE c.contype = 'f'
421
+ AND t1.relname = 'users'
422
+ AND t3.nspname = ANY (current_schemas(false))
423
+ ORDER BY c.conname
424
+ 
@@ -3552,3 +3552,536 @@ FOREIGN KEY ("activity_id")
3552
3552
   (0.4ms) BEGIN
3553
3553
   (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3554
3554
   (1.3ms) COMMIT
3555
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
3556
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3557
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
3558
+ ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
3559
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3560
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
3561
+ ActiveRecord::InternalMetadata Load (0.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
3562
+  (0.3ms) BEGIN
3563
+ SQL (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-09-28 10:47:21 UTC], ["updated_at", 2016-09-28 10:47:21 UTC]]
3564
+  (189.6ms) COMMIT
3565
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
3566
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3567
+  (0.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
3568
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3569
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
3570
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3571
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", :environment]]
3572
+  (123.6ms) DROP DATABASE IF EXISTS "timeful_test"
3573
+  (362.7ms) CREATE DATABASE "timeful_test" ENCODING = 'utf8'
3574
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
3575
+  (9.1ms) CREATE TABLE "posts" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3576
+  (9.5ms) CREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" integer NOT NULL, "actor_type" character varying NOT NULL, "actor_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3577
+  (5.6ms) CREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" USING btree ("actor_type", "actor_id")
3578
+  (4.9ms) CREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" USING btree ("object_type", "object_id")
3579
+  (7.2ms) CREATE TABLE "timeful_feed_items" ("id" serial primary key, "subscriber_type" character varying NOT NULL, "subscriber_id" integer NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3580
+  (3.5ms) CREATE INDEX "index_timeful_feed_items_on_subscriber_type_and_subscriber_id" ON "timeful_feed_items" USING btree ("subscriber_type", "subscriber_id")
3581
+  (4.3ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3582
+  (2.8ms) ALTER TABLE "timeful_feed_items" ADD CONSTRAINT "fk_rails_9bc442415c"
3583
+ FOREIGN KEY ("activity_id")
3584
+ REFERENCES "timeful_activities" ("id")
3585
+ ON DELETE CASCADE
3586
+  (5.3ms) CREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)
3587
+  (0.4ms) SELECT version FROM "schema_migrations"
3588
+  (1.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160928104634')
3589
+  (0.9ms) INSERT INTO schema_migrations (version) VALUES ('20160927160031'), ('20160927141815'), ('20160927155215'), ('20160927160026');
3590
+
3591
+ 
3592
+  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
3593
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
3594
+  (0.2ms) BEGIN
3595
+ SQL (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
3596
+  (1.1ms) COMMIT
3597
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", :environment], ["LIMIT", 1]]
3598
+  (0.1ms) BEGIN
3599
+  (0.1ms) COMMIT
3600
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3601
+  (0.4ms) BEGIN
3602
+  (0.8ms) ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3603
+  (2.8ms) COMMIT
3604
+  (1.6ms)  SELECT schemaname || '.' || tablename
3605
+ FROM pg_tables
3606
+ WHERE
3607
+ tablename !~ '_prt_' AND
3608
+ tablename <> 'schema_migrations' AND
3609
+ schemaname = ANY (current_schemas(false))
3610
+ 
3611
+  (6.4ms) select table_name from information_schema.views where table_schema = 'timeful_test'
3612
+  (28.4ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3613
+  (0.4ms) BEGIN
3614
+  (0.6ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3615
+  (1.0ms) COMMIT
3616
+  (0.3ms) BEGIN
3617
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3618
+  (1.4ms) COMMIT
3619
+  (22.0ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3620
+  (0.3ms) BEGIN
3621
+  (0.6ms) ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3622
+  (1.0ms) COMMIT
3623
+  (0.3ms) BEGIN
3624
+  (0.6ms) ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3625
+  (1.4ms) COMMIT
3626
+  (23.2ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3627
+  (4.8ms) BEGIN
3628
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3629
+  (1.4ms) COMMIT
3630
+  (2.3ms) BEGIN
3631
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3632
+  (1.2ms) COMMIT
3633
+  (42.0ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3634
+  (0.4ms) BEGIN
3635
+  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3636
+  (1.3ms) COMMIT
3637
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [4992152f-a3d0-4985-9107-3320890f51d0] Performing Timeful::DeliverActivityToSubscribersJob from Test(timeful) with arguments: #<GlobalID:0x000000038fc980 @uri=#<URI::GID gid://dummy/Timeful::Activity/1009>>
3638
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [4992152f-a3d0-4985-9107-3320890f51d0] Performed Timeful::DeliverActivityToSubscribersJob from Test(timeful) in 0.4ms
3639
+  (0.1ms) BEGIN
3640
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3641
+  (2.3ms) COMMIT
3642
+  (21.7ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3643
+  (0.2ms) BEGIN
3644
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3645
+  (0.9ms) COMMIT
3646
+  (0.2ms) BEGIN
3647
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
3648
+  (1.1ms) COMMIT
3649
+  (0.1ms) BEGIN
3650
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
3651
+  (1.2ms) COMMIT
3652
+  (0.2ms) BEGIN
3653
+ SQL (0.6ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
3654
+  (1.0ms) COMMIT
3655
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 03ab73ab-c7fe-41bb-b0ca-98502f72ddc1) to Test(timeful) with arguments: #<GlobalID:0x00000003c935f8 @uri=#<URI::GID gid://dummy/PostActivity/1>>
3656
+ PostActivity Load (0.7ms) SELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
3657
+  (0.3ms) BEGIN
3658
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3659
+  (1.0ms) COMMIT
3660
+  (19.2ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3661
+  (0.3ms) BEGIN
3662
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3663
+  (1.0ms) COMMIT
3664
+  (2.3ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
3665
+  (0.1ms) BEGIN
3666
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
3667
+  (1.0ms) COMMIT
3668
+  (0.7ms) BEGIN
3669
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
3670
+  (0.9ms) COMMIT
3671
+  (0.2ms) BEGIN
3672
+ SQL (0.6ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
3673
+  (0.9ms) COMMIT
3674
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 6448823d-c140-420a-b07c-02b2110dd3b5) to Test(timeful) with arguments: #<GlobalID:0x00000003c77a38 @uri=#<URI::GID gid://dummy/PostActivity/1>>
3675
+  (0.4ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
3676
+  (0.1ms) BEGIN
3677
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3678
+  (1.0ms) COMMIT
3679
+  (32.2ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3680
+  (0.3ms) BEGIN
3681
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3682
+  (1.0ms) COMMIT
3683
+  (0.2ms) BEGIN
3684
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
3685
+  (0.9ms) COMMIT
3686
+  (0.2ms) BEGIN
3687
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3688
+  (1.1ms) COMMIT
3689
+  (29.3ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3690
+  (0.4ms) BEGIN
3691
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3692
+  (1.1ms) COMMIT
3693
+  (0.3ms) BEGIN
3694
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
3695
+  (1.3ms) COMMIT
3696
+  (0.3ms) BEGIN
3697
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3698
+  (1.2ms) COMMIT
3699
+  (40.1ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3700
+  (0.1ms) BEGIN
3701
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3702
+  (1.0ms) COMMIT
3703
+  (0.2ms) BEGIN
3704
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3705
+  (5.8ms) COMMIT
3706
+  (32.6ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3707
+  (0.3ms) BEGIN
3708
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3709
+  (4.8ms) COMMIT
3710
+  (0.2ms) BEGIN
3711
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3712
+  (6.3ms) COMMIT
3713
+  (46.5ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3714
+  (0.3ms) BEGIN
3715
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3716
+  (1.1ms) COMMIT
3717
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
3718
+  (0.2ms) BEGIN
3719
+  (3.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3720
+  (6.6ms) COMMIT
3721
+  (2.5ms)  SELECT schemaname || '.' || tablename
3722
+ FROM pg_tables
3723
+ WHERE
3724
+ tablename !~ '_prt_' AND
3725
+ tablename <> 'schema_migrations' AND
3726
+ schemaname = ANY (current_schemas(false))
3727
+ 
3728
+  (1.1ms) select table_name from information_schema.views where table_schema = 'timeful_test'
3729
+  (21.7ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3730
+  (0.2ms) BEGIN
3731
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3732
+  (0.8ms) COMMIT
3733
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [66003015-ab88-4ce4-b46e-baf17254f23c] Performing Timeful::DeliverActivityToSubscribersJob from Test(default) with arguments: #<GlobalID:0x000000047b2380 @uri=#<URI::GID gid://dummy/Timeful::Activity/1003>>
3734
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [66003015-ab88-4ce4-b46e-baf17254f23c] Performed Timeful::DeliverActivityToSubscribersJob from Test(default) in 0.16ms
3735
+  (0.2ms) BEGIN
3736
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3737
+  (2.3ms) COMMIT
3738
+  (20.2ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3739
+  (0.2ms) BEGIN
3740
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3741
+  (0.9ms) COMMIT
3742
+  (0.2ms) BEGIN
3743
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3744
+  (0.9ms) COMMIT
3745
+  (20.4ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3746
+  (0.6ms) BEGIN
3747
+  (1.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3748
+  (4.0ms) COMMIT
3749
+  (0.3ms) BEGIN
3750
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3751
+  (2.2ms) COMMIT
3752
+  (51.4ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3753
+  (0.3ms) BEGIN
3754
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3755
+  (2.2ms) COMMIT
3756
+  (0.3ms) BEGIN
3757
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3758
+  (1.1ms) COMMIT
3759
+  (21.9ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3760
+  (0.3ms) BEGIN
3761
+  (4.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3762
+  (5.7ms) COMMIT
3763
+  (0.2ms) BEGIN
3764
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3765
+  (1.1ms) COMMIT
3766
+  (36.1ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3767
+  (0.3ms) BEGIN
3768
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL
3769
+  (1.1ms) COMMIT
3770
+  (0.3ms) BEGIN
3771
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:44 UTC], ["updated_at", 2016-09-28 10:47:44 UTC]]
3772
+  (1.4ms) COMMIT
3773
+  (0.5ms) BEGIN
3774
+ SQL (0.6ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3775
+  (1.4ms) COMMIT
3776
+  (1.0ms) BEGIN
3777
+ SQL (0.7ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3778
+  (0.9ms) COMMIT
3779
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: a799b2b8-3e51-4c15-9a55-990b46fe0ace) to Test(timeful) with arguments: #<GlobalID:0x000000042e3048 @uri=#<URI::GID gid://dummy/PostActivity/1>>
3780
+ PostActivity Load (0.6ms) SELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
3781
+  (0.1ms) BEGIN
3782
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL
3783
+  (0.9ms) COMMIT
3784
+  (19.8ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3785
+  (0.2ms) BEGIN
3786
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3787
+  (1.0ms) COMMIT
3788
+  (0.6ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
3789
+  (0.2ms) BEGIN
3790
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3791
+  (1.0ms) COMMIT
3792
+  (0.1ms) BEGIN
3793
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3794
+  (1.0ms) COMMIT
3795
+  (0.1ms) BEGIN
3796
+ SQL (0.5ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3797
+  (1.0ms) COMMIT
3798
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 37621776-24ff-410f-8d98-28fb17c910f4) to Test(timeful) with arguments: #<GlobalID:0x00000004d2f768 @uri=#<URI::GID gid://dummy/PostActivity/1>>
3799
+  (0.4ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
3800
+  (0.2ms) BEGIN
3801
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3802
+  (0.8ms) COMMIT
3803
+  (32.1ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3804
+  (0.2ms) BEGIN
3805
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3806
+  (1.6ms) COMMIT
3807
+  (0.2ms) BEGIN
3808
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3809
+  (2.0ms) COMMIT
3810
+  (1.3ms) BEGIN
3811
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3812
+  (1.4ms) COMMIT
3813
+  (25.7ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3814
+  (0.3ms) BEGIN
3815
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3816
+  (1.1ms) COMMIT
3817
+  (0.3ms) BEGIN
3818
+ SQL (1.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
3819
+  (4.8ms) COMMIT
3820
+  (0.2ms) BEGIN
3821
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3822
+  (1.2ms) COMMIT
3823
+  (37.2ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3824
+  (0.2ms) BEGIN
3825
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3826
+  (1.0ms) COMMIT
3827
+  (0.1ms) BEGIN
3828
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3829
+  (1.1ms) COMMIT
3830
+  (39.0ms) TRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;
3831
+  (0.4ms) BEGIN
3832
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3833
+  (4.7ms) COMMIT
3834
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
3835
+  (0.4ms) BEGIN
3836
+  (1.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3837
+  (195.2ms) COMMIT
3838
+  (4.4ms)  SELECT schemaname || '.' || tablename
3839
+ FROM pg_tables
3840
+ WHERE
3841
+ tablename !~ '_prt_' AND
3842
+ tablename <> 'schema_migrations' AND
3843
+ schemaname = ANY (current_schemas(false))
3844
+ 
3845
+  (3.7ms) select table_name from information_schema.views where table_schema = 'timeful_test'
3846
+  (75.4ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3847
+  (0.7ms) BEGIN
3848
+  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3849
+  (3.0ms) COMMIT
3850
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [f84a457c-9a3b-40aa-97b5-e08dcdd900ba] Performing Timeful::DeliverActivityToSubscribersJob from Test(default) with arguments: #<GlobalID:0x00000004ad3f78 @uri=#<URI::GID gid://dummy/Timeful::Activity/1003>>
3851
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [f84a457c-9a3b-40aa-97b5-e08dcdd900ba] Performed Timeful::DeliverActivityToSubscribersJob from Test(default) in 0.2ms
3852
+  (0.4ms) BEGIN
3853
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3854
+  (2.5ms) COMMIT
3855
+  (19.5ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3856
+  (0.3ms) BEGIN
3857
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3858
+  (1.3ms) COMMIT
3859
+  (0.3ms) BEGIN
3860
+  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3861
+  (1.5ms) COMMIT
3862
+  (23.1ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3863
+  (0.3ms) BEGIN
3864
+  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3865
+  (3.5ms) COMMIT
3866
+  (0.2ms) BEGIN
3867
+  (2.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3868
+  (1.4ms) COMMIT
3869
+  (34.9ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3870
+  (0.2ms) BEGIN
3871
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3872
+  (1.8ms) COMMIT
3873
+  (0.5ms) BEGIN
3874
+ SQL (1.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
3875
+  (3.6ms) COMMIT
3876
+  (0.2ms) BEGIN
3877
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3878
+  (1.2ms) COMMIT
3879
+  (21.1ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3880
+  (0.5ms) BEGIN
3881
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3882
+  (1.2ms) COMMIT
3883
+  (0.1ms) BEGIN
3884
+ SQL (2.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
3885
+  (2.5ms) COMMIT
3886
+  (0.1ms) BEGIN
3887
+  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3888
+  (1.3ms) COMMIT
3889
+  (37.9ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3890
+  (0.2ms) BEGIN
3891
+  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3892
+  (1.2ms) COMMIT
3893
+  (0.1ms) BEGIN
3894
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3895
+  (0.9ms) COMMIT
3896
+  (22.7ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3897
+  (0.5ms) BEGIN
3898
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3899
+  (1.3ms) COMMIT
3900
+  (4.3ms) BEGIN
3901
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3902
+  (1.1ms) COMMIT
3903
+  (34.9ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3904
+  (0.4ms) BEGIN
3905
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3906
+  (1.3ms) COMMIT
3907
+  (0.2ms) BEGIN
3908
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
3909
+  (1.0ms) COMMIT
3910
+  (0.2ms) BEGIN
3911
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
3912
+  (1.5ms) COMMIT
3913
+  (0.2ms) BEGIN
3914
+ SQL (0.8ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
3915
+  (3.8ms) COMMIT
3916
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 58e90c59-d267-4cfb-b698-75d12f6eb28b) to Test(default) with arguments: #<GlobalID:0x00000006463b50 @uri=#<URI::GID gid://dummy/PostActivity/1>>
3917
+ PostActivity Load (0.8ms) SELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
3918
+  (0.3ms) BEGIN
3919
+  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3920
+  (1.2ms) COMMIT
3921
+  (20.1ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3922
+  (0.3ms) BEGIN
3923
+  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3924
+  (1.0ms) COMMIT
3925
+  (0.7ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
3926
+  (0.3ms) BEGIN
3927
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:11 UTC], ["updated_at", 2016-09-28 10:48:11 UTC]]
3928
+  (1.1ms) COMMIT
3929
+  (0.3ms) BEGIN
3930
+ SQL (0.8ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:11 UTC], ["updated_at", 2016-09-28 10:48:11 UTC]]
3931
+  (1.2ms) COMMIT
3932
+  (0.4ms) BEGIN
3933
+ SQL (0.7ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:48:11 UTC], ["updated_at", 2016-09-28 10:48:11 UTC]]
3934
+  (1.2ms) COMMIT
3935
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 6c5ef001-f64d-4680-9f38-416e37b7d721) to Test(default) with arguments: #<GlobalID:0x000000064cbdb8 @uri=#<URI::GID gid://dummy/PostActivity/1>>
3936
+  (0.5ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
3937
+  (0.3ms) BEGIN
3938
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3939
+  (1.3ms) COMMIT
3940
+  (50.2ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3941
+  (1.1ms) BEGIN
3942
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3943
+  (4.7ms) COMMIT
3944
+  (0.2ms) BEGIN
3945
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3946
+  (1.2ms) COMMIT
3947
+  (55.1ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3948
+  (0.3ms) BEGIN
3949
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3950
+  (1.3ms) COMMIT
3951
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
3952
+  (0.4ms) BEGIN
3953
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3954
+  (113.8ms) COMMIT
3955
+  (4.4ms)  SELECT schemaname || '.' || tablename
3956
+ FROM pg_tables
3957
+ WHERE
3958
+ tablename !~ '_prt_' AND
3959
+ tablename <> 'schema_migrations' AND
3960
+ schemaname = ANY (current_schemas(false))
3961
+ 
3962
+  (4.0ms) select table_name from information_schema.views where table_schema = 'timeful_test'
3963
+  (72.6ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3964
+  (0.5ms) BEGIN
3965
+  (1.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3966
+  (2.3ms) COMMIT
3967
+  (0.2ms) BEGIN
3968
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3969
+  (1.1ms) COMMIT
3970
+  (0.4ms) BEGIN
3971
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3972
+ SQL (0.7ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3973
+ SQL (0.8ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3974
+ SQL (1.0ms) INSERT INTO "timeful_feed_items" ("subscriber_type", "subscriber_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["subscriber_type", "User"], ["subscriber_id", 1], ["activity_id", 1], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3975
+  (2.5ms) COMMIT
3976
+  (0.4ms) BEGIN
3977
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3978
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3979
+ SQL (0.6ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 2], ["actor_type", "User"], ["actor_id", 3], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3980
+ SQL (0.6ms) INSERT INTO "timeful_feed_items" ("subscriber_type", "subscriber_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["subscriber_type", "User"], ["subscriber_id", 1], ["activity_id", 2], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3981
+  (1.2ms) COMMIT
3982
+ Timeful::FeedItem Load (0.6ms) SELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."subscriber_id" = $1 AND "timeful_feed_items"."subscriber_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC [["subscriber_id", 1], ["subscriber_type", "User"]]
3983
+  (0.3ms) BEGIN
3984
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
3985
+  (1.1ms) COMMIT
3986
+  (19.6ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
3987
+  (0.3ms) BEGIN
3988
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
3989
+  (1.1ms) COMMIT
3990
+  (0.3ms) BEGIN
3991
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3992
+  (1.2ms) COMMIT
3993
+  (0.4ms) BEGIN
3994
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3995
+ SQL (1.6ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3996
+ SQL (0.8ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 2], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3997
+ SQL (0.9ms) INSERT INTO "timeful_feed_items" ("subscriber_type", "subscriber_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["subscriber_type", "User"], ["subscriber_id", 1], ["activity_id", 1], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
3998
+  (1.1ms) COMMIT
3999
+ Timeful::FeedItem Load (0.8ms) SELECT "timeful_feed_items".* FROM "timeful_feed_items" WHERE "timeful_feed_items"."subscriber_id" = $1 AND "timeful_feed_items"."subscriber_type" = $2 ORDER BY "timeful_feed_items"."created_at" DESC [["subscriber_id", 1], ["subscriber_type", "User"]]
4000
+  (0.3ms) BEGIN
4001
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4002
+  (1.5ms) COMMIT
4003
+  (45.9ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4004
+  (0.3ms) BEGIN
4005
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4006
+  (1.1ms) COMMIT
4007
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [fbe36479-8ac0-44d0-90e2-5d790133c6f3] Performing Timeful::DeliverActivityToSubscribersJob from Test(default) with arguments: #<GlobalID:0x00000003353808 @uri=#<URI::GID gid://dummy/Timeful::Activity/1003>>
4008
+ [ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [fbe36479-8ac0-44d0-90e2-5d790133c6f3] Performed Timeful::DeliverActivityToSubscribersJob from Test(default) in 0.2ms
4009
+  (0.3ms) BEGIN
4010
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4011
+  (1.7ms) COMMIT
4012
+  (36.5ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4013
+  (0.2ms) BEGIN
4014
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4015
+  (1.1ms) COMMIT
4016
+  (0.2ms) BEGIN
4017
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4018
+  (1.1ms) COMMIT
4019
+  (20.0ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4020
+  (0.2ms) BEGIN
4021
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4022
+  (1.0ms) COMMIT
4023
+  (2.8ms) BEGIN
4024
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4025
+  (1.5ms) COMMIT
4026
+  (42.0ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4027
+  (1.1ms) BEGIN
4028
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4029
+  (1.2ms) COMMIT
4030
+  (0.1ms) BEGIN
4031
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4032
+  (1.0ms) COMMIT
4033
+  (20.5ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4034
+  (0.3ms) BEGIN
4035
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4036
+  (1.1ms) COMMIT
4037
+  (0.2ms) BEGIN
4038
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4039
+  (6.2ms) COMMIT
4040
+  (42.3ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4041
+  (0.2ms) BEGIN
4042
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4043
+  (1.1ms) COMMIT
4044
+  (0.5ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
4045
+  (0.1ms) BEGIN
4046
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
4047
+  (1.0ms) COMMIT
4048
+  (0.2ms) BEGIN
4049
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
4050
+  (1.0ms) COMMIT
4051
+  (0.2ms) BEGIN
4052
+ SQL (0.5ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
4053
+  (1.1ms) COMMIT
4054
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 42087621-fb09-47ae-a6e2-cdef3c0de89e) to Test(default) with arguments: #<GlobalID:0x00000003a96fe8 @uri=#<URI::GID gid://dummy/PostActivity/1>>
4055
+  (0.6ms) SELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')
4056
+  (0.2ms) BEGIN
4057
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4058
+  (5.0ms) COMMIT
4059
+  (31.8ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4060
+  (0.2ms) BEGIN
4061
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4062
+  (0.9ms) COMMIT
4063
+  (0.2ms) BEGIN
4064
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
4065
+  (1.0ms) COMMIT
4066
+  (0.2ms) BEGIN
4067
+ SQL (0.5ms) INSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
4068
+  (1.0ms) COMMIT
4069
+  (0.1ms) BEGIN
4070
+ SQL (0.7ms) INSERT INTO "timeful_activities" ("type", "object_type", "object_id", "actor_type", "actor_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["type", "PostActivity"], ["object_type", "Post"], ["object_id", 1], ["actor_type", "User"], ["actor_id", 1], ["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
4071
+  (1.1ms) COMMIT
4072
+ [ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 9c06a479-ec35-4252-aeb1-1c1e533571f5) to Test(default) with arguments: #<GlobalID:0x000000039fcf10 @uri=#<URI::GID gid://dummy/PostActivity/1>>
4073
+ PostActivity Load (0.5ms) SELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
4074
+  (0.1ms) BEGIN
4075
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4076
+  (1.0ms) COMMIT
4077
+  (33.8ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4078
+  (0.2ms) BEGIN
4079
+  (1.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4080
+  (0.9ms) COMMIT
4081
+  (0.2ms) BEGIN
4082
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "posts" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "timeful_activities" DISABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" DISABLE TRIGGER ALL
4083
+  (0.9ms) COMMIT
4084
+  (17.4ms) TRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;
4085
+  (0.2ms) BEGIN
4086
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "posts" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "timeful_activities" ENABLE TRIGGER ALL;ALTER TABLE "timeful_feed_items" ENABLE TRIGGER ALL
4087
+  (0.9ms) COMMIT
@@ -1,12 +1,12 @@
1
1
  example_id | status | run_time |
2
2
  -------------------------------------------------------------------- | ------ | --------------- |
3
- ./spec/jobs/timeful/deliver_activity_to_subscribers_job_spec.rb[1:1] | passed | 0.17214 seconds |
4
- ./spec/models/timeful/activity_spec.rb[1:1] | passed | 0.05282 seconds |
5
- ./spec/models/timeful/feed_item_spec.rb[1:1] | passed | 0.059 seconds |
6
- ./spec/timeful/model/actor_spec.rb[1:1:1] | passed | 0.15867 seconds |
7
- ./spec/timeful/model/actor_spec.rb[1:1:2] | passed | 0.19333 seconds |
8
- ./spec/timeful/model/subscriber_spec.rb[1:1:1] | passed | 0.08428 seconds |
9
- ./spec/timeful/model/subscriber_spec.rb[1:1:2] | passed | 0.15669 seconds |
10
- ./spec/timeful/relation_proxy_spec.rb[1:1:1:1] | passed | 0.03896 seconds |
11
- ./spec/timeful/relation_proxy_spec.rb[1:1:2:1] | passed | 0.05187 seconds |
12
- ./spec/timeful/timeful_spec.rb[1:1:1] | passed | 0.16554 seconds |
3
+ ./spec/jobs/timeful/deliver_activity_to_subscribers_job_spec.rb[1:1] | passed | 0.0694 seconds |
4
+ ./spec/models/timeful/activity_spec.rb[1:1] | passed | 0.06165 seconds |
5
+ ./spec/models/timeful/feed_item_spec.rb[1:1] | passed | 0.03044 seconds |
6
+ ./spec/timeful/model/actor_spec.rb[1:1:1] | passed | 0.07158 seconds |
7
+ ./spec/timeful/model/actor_spec.rb[1:1:2] | passed | 0.06022 seconds |
8
+ ./spec/timeful/model/subscriber_spec.rb[1:1:1] | passed | 0.07702 seconds |
9
+ ./spec/timeful/model/subscriber_spec.rb[1:1:2] | passed | 0.16866 seconds |
10
+ ./spec/timeful/relation_proxy_spec.rb[1:1:1:1] | passed | 0.02756 seconds |
11
+ ./spec/timeful/relation_proxy_spec.rb[1:1:2:1] | passed | 0.05994 seconds |
12
+ ./spec/timeful/timeful_spec.rb[1:1:1] | passed | 0.02453 seconds |
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
  FactoryGirl.define do
3
3
  factory :feed_item, class: 'Timeful::FeedItem' do
4
- association :feedable, strategy: :build, factory: :user
4
+ association :subscriber, strategy: :build, factory: :user
5
5
  association :activity, strategy: :build
6
6
  end
7
7
  end
@@ -4,13 +4,13 @@ RSpec.describe Timeful::Model::Subscriber do
4
4
 
5
5
  describe '#feed_items' do
6
6
  it "returns the items in the user's feeds" do
7
- feed_item = create(:feed_item, feedable: subject)
7
+ feed_item = create(:feed_item, subscriber: subject)
8
8
  expect(subject.feed_items).to match_array([feed_item])
9
9
  end
10
10
 
11
11
  it 'orders items by newest to oldest' do
12
- oldest_item = create(:feed_item, feedable: subject)
13
- newest_item = create(:feed_item, feedable: subject)
12
+ oldest_item = create(:feed_item, subscriber: subject)
13
+ newest_item = create(:feed_item, subscriber: subject)
14
14
  expect(subject.feed_items).to eq([newest_item, oldest_item])
15
15
  end
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: timeful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Desantis
@@ -173,6 +173,7 @@ files:
173
173
  - config/routes.rb
174
174
  - db/migrate/20160927141608_create_timeful_activities.rb
175
175
  - db/migrate/20160927154912_create_timeful_feed_items.rb
176
+ - db/migrate/20160928104602_rename_feedable_to_subscriber_in_feed_items.rb
176
177
  - lib/generators/timeful/install_generator.rb
177
178
  - lib/timeful.rb
178
179
  - lib/timeful/engine.rb
@@ -219,6 +220,7 @@ files:
219
220
  - spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
220
221
  - spec/dummy/db/migrate/20160927160026_create_users.rb
221
222
  - spec/dummy/db/migrate/20160927160031_create_posts.rb
223
+ - spec/dummy/db/migrate/20160928104634_rename_feedable_to_subscriber_in_feed_items.timeful.rb
222
224
  - spec/dummy/db/schema.rb
223
225
  - spec/dummy/log/development.log
224
226
  - spec/dummy/log/test.log
@@ -290,6 +292,7 @@ test_files:
290
292
  - spec/examples.txt
291
293
  - spec/rails_helper.rb
292
294
  - spec/dummy/db/migrate/20160927160031_create_posts.rb
295
+ - spec/dummy/db/migrate/20160928104634_rename_feedable_to_subscriber_in_feed_items.timeful.rb
293
296
  - spec/dummy/db/migrate/20160927141815_create_timeful_activities.timeful.rb
294
297
  - spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
295
298
  - spec/dummy/db/migrate/20160927160026_create_users.rb