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 +4 -4
- data/app/models/timeful/feed_item.rb +1 -1
- data/db/migrate/20160928104602_rename_feedable_to_subscriber_in_feed_items.rb +6 -0
- data/lib/timeful/model/subscriber.rb +1 -1
- data/lib/timeful/version.rb +1 -1
- data/spec/dummy/db/migrate/20160928104634_rename_feedable_to_subscriber_in_feed_items.timeful.rb +7 -0
- data/spec/dummy/db/schema.rb +7 -7
- data/spec/dummy/log/development.log +63 -0
- data/spec/dummy/log/test.log +533 -0
- data/spec/examples.txt +10 -10
- data/spec/factories/timeful/feed_items.rb +1 -1
- data/spec/timeful/model/subscriber_spec.rb +3 -3
- metadata +4 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c555ab86512061afa72116a2d3c6592ff20301f
|
4
|
+
data.tar.gz: de977270d049f3d14e4642848d0ff4da36fe3eab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: edb2c6b1c162b8e08b23dd2fafdd2651e9af2bd42751d6d3e4ab06ae584e31343feab39172513c0f52fd2f589a508badfc279fbae47f630865086857fcd92c4c
|
7
|
+
data.tar.gz: 812e1dfd057b5cae6cf8a366b7c3b7ccb5f46980096a14c03a6c7ca8c15d115f64fd6f2919046b16b007a693b2b47d7b19232d93c24315295b3e47d846b1b4a8
|
data/lib/timeful/version.rb
CHANGED
data/spec/dummy/db/migrate/20160928104634_rename_feedable_to_subscriber_in_feed_items.timeful.rb
ADDED
@@ -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
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -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:
|
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 "
|
37
|
-
t.integer "
|
38
|
-
t.integer "activity_id",
|
39
|
-
t.datetime "created_at",
|
40
|
-
t.datetime "updated_at",
|
41
|
-
t.index ["
|
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
|
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-27 21:06:53 UTC], ["updated_at", 2016-09-27 21:06:53 UTC]]
|
360
360
|
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
361
361
|
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "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[0m [["feedable_id", 1], ["feedable_type", "User"]]
|
362
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
363
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
364
|
+
Migrating to RenameFeedableToSubscriberInFeedItems (20160928104634)
|
365
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
366
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "timeful_feed_items" RENAME COLUMN "feedable_type" TO "subscriber_type"[0m
|
367
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER INDEX "index_timeful_feed_items_on_feedable_type_and_feedable_id" RENAME TO "index_timeful_feed_items_on_subscriber_type_and_feedable_id"[0m
|
368
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "timeful_feed_items" RENAME COLUMN "feedable_id" TO "subscriber_id"[0m
|
369
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER INDEX "index_timeful_feed_items_on_subscriber_type_and_feedable_id" RENAME TO "index_timeful_feed_items_on_subscriber_type_and_subscriber_id"[0m
|
370
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160928104634"]]
|
371
|
+
[1m[35m (193.9ms)[0m [1m[35mCOMMIT[0m
|
372
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
373
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
374
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
375
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
376
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
377
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT 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
|
+
[0m
|
389
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT 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
|
+
[0m
|
401
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT 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
|
+
[0m
|
413
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT 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
|
+
[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -3552,3 +3552,536 @@ FOREIGN KEY ("activity_id")
|
|
3552
3552
|
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3553
3553
|
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3554
3554
|
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3555
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3556
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3557
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
3558
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3559
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3560
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
3561
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
3562
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3563
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-09-28 10:47:21 UTC], ["updated_at", 2016-09-28 10:47:21 UTC]]
|
3564
|
+
[1m[35m (189.6ms)[0m [1m[35mCOMMIT[0m
|
3565
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3566
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3567
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
3568
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3569
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
3570
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3571
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
3572
|
+
[1m[35m (123.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "timeful_test"[0m
|
3573
|
+
[1m[35m (362.7ms)[0m [1m[35mCREATE DATABASE "timeful_test" ENCODING = 'utf8'[0m
|
3574
|
+
[1m[35mSQL (0.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
3575
|
+
[1m[35m (9.1ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3576
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE 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)[0m
|
3577
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" USING btree ("actor_type", "actor_id")[0m
|
3578
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" USING btree ("object_type", "object_id")[0m
|
3579
|
+
[1m[35m (7.2ms)[0m [1m[35mCREATE 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)[0m
|
3580
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_timeful_feed_items_on_subscriber_type_and_subscriber_id" ON "timeful_feed_items" USING btree ("subscriber_type", "subscriber_id")[0m
|
3581
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3582
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "timeful_feed_items" ADD CONSTRAINT "fk_rails_9bc442415c"
|
3583
|
+
FOREIGN KEY ("activity_id")
|
3584
|
+
REFERENCES "timeful_activities" ("id")
|
3585
|
+
ON DELETE CASCADE[0m
|
3586
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
3587
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
3588
|
+
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20160928104634')[0m
|
3589
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('20160927160031'), ('20160927141815'), ('20160927155215'), ('20160927160026');
|
3590
|
+
|
3591
|
+
[0m
|
3592
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
3593
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
3594
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3595
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
|
3596
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3597
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
3598
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3599
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
3600
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3601
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3602
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER 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[0m
|
3603
|
+
[1m[35m (2.8ms)[0m [1m[35mCOMMIT[0m
|
3604
|
+
[1m[35m (1.6ms)[0m [1m[34m 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
|
+
[0m
|
3611
|
+
[1m[35m (6.4ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3612
|
+
[1m[35m (28.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3613
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3614
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3615
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3616
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3617
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3618
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3619
|
+
[1m[35m (22.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3620
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3621
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3622
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3623
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3624
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3625
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3626
|
+
[1m[35m (23.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3627
|
+
[1m[35m (4.8ms)[0m [1m[35mBEGIN[0m
|
3628
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3629
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3630
|
+
[1m[35m (2.3ms)[0m [1m[35mBEGIN[0m
|
3631
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3632
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3633
|
+
[1m[35m (42.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3634
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3635
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER 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[0m
|
3636
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3640
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER 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[0m
|
3641
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
3642
|
+
[1m[35m (21.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3643
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3644
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3645
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3646
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3647
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
|
3648
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3649
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3650
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:28 UTC], ["updated_at", 2016-09-28 10:47:28 UTC]]
|
3651
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3652
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3653
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[36mPostActivity Load (0.7ms)[0m [1m[34mSELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
|
3657
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3658
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3659
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3660
|
+
[1m[35m (19.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3661
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3662
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3663
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3664
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3665
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3666
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
|
3667
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3668
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
3669
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
|
3670
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3671
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3672
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3676
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3677
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3678
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3679
|
+
[1m[35m (32.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3680
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3681
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3682
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3683
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3684
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
|
3685
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3686
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3687
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3688
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3689
|
+
[1m[35m (29.3ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3690
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3691
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3692
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3693
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3694
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:29 UTC], ["updated_at", 2016-09-28 10:47:29 UTC]]
|
3695
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3696
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3697
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3698
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3699
|
+
[1m[35m (40.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3700
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3701
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3702
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3703
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3704
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3705
|
+
[1m[35m (5.8ms)[0m [1m[35mCOMMIT[0m
|
3706
|
+
[1m[35m (32.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3707
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3708
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3709
|
+
[1m[35m (4.8ms)[0m [1m[35mCOMMIT[0m
|
3710
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3711
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3712
|
+
[1m[35m (6.3ms)[0m [1m[35mCOMMIT[0m
|
3713
|
+
[1m[35m (46.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3714
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3715
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3716
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3717
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3718
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3719
|
+
[1m[35m (3.3ms)[0m [1m[35mALTER 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[0m
|
3720
|
+
[1m[35m (6.6ms)[0m [1m[35mCOMMIT[0m
|
3721
|
+
[1m[35m (2.5ms)[0m [1m[34m 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
|
+
[0m
|
3728
|
+
[1m[35m (1.1ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3729
|
+
[1m[35m (21.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3730
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3731
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3732
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3736
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER 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[0m
|
3737
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
3738
|
+
[1m[35m (20.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3739
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3740
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3741
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3742
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3743
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3744
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3745
|
+
[1m[35m (20.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3746
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
3747
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER 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[0m
|
3748
|
+
[1m[35m (4.0ms)[0m [1m[35mCOMMIT[0m
|
3749
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3750
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER 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[0m
|
3751
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
3752
|
+
[1m[35m (51.4ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3753
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3754
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3755
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
3756
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3757
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3758
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3759
|
+
[1m[35m (21.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3760
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3761
|
+
[1m[35m (4.4ms)[0m [1m[35mALTER 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[0m
|
3762
|
+
[1m[35m (5.7ms)[0m [1m[35mCOMMIT[0m
|
3763
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3764
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3765
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3766
|
+
[1m[35m (36.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3767
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3768
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER 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[0m
|
3769
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3770
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3771
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:44 UTC], ["updated_at", 2016-09-28 10:47:44 UTC]]
|
3772
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3773
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3774
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
|
3775
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3776
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
3777
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[36mPostActivity Load (0.6ms)[0m [1m[34mSELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
|
3781
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3782
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3783
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3784
|
+
[1m[35m (19.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3785
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3786
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3787
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3788
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3789
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3790
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
|
3791
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3792
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3793
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
|
3794
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3795
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3796
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3800
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3801
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER 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[0m
|
3802
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
3803
|
+
[1m[35m (32.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3804
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3805
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3806
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
3807
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3808
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
|
3809
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
3810
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
3811
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3812
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3813
|
+
[1m[35m (25.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3814
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3815
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3816
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3817
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3818
|
+
[1m[35mSQL (1.8ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:47:45 UTC], ["updated_at", 2016-09-28 10:47:45 UTC]]
|
3819
|
+
[1m[35m (4.8ms)[0m [1m[35mCOMMIT[0m
|
3820
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3821
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3822
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3823
|
+
[1m[35m (37.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3824
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3825
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3826
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3827
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3828
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3829
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3830
|
+
[1m[35m (39.0ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
3831
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3832
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER 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[0m
|
3833
|
+
[1m[35m (4.7ms)[0m [1m[35mCOMMIT[0m
|
3834
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3835
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3836
|
+
[1m[35m (1.3ms)[0m [1m[35mALTER 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[0m
|
3837
|
+
[1m[35m (195.2ms)[0m [1m[35mCOMMIT[0m
|
3838
|
+
[1m[35m (4.4ms)[0m [1m[34m 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
|
+
[0m
|
3845
|
+
[1m[35m (3.7ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3846
|
+
[1m[35m (75.4ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3847
|
+
[1m[35m (0.7ms)[0m [1m[35mBEGIN[0m
|
3848
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER 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[0m
|
3849
|
+
[1m[35m (3.0ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3853
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3854
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3855
|
+
[1m[35m (19.5ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3856
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3857
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3858
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3859
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3860
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3861
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3862
|
+
[1m[35m (23.1ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3863
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3864
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER 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[0m
|
3865
|
+
[1m[35m (3.5ms)[0m [1m[35mCOMMIT[0m
|
3866
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3867
|
+
[1m[35m (2.5ms)[0m [1m[35mALTER 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[0m
|
3868
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
3869
|
+
[1m[35m (34.9ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3870
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3871
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3872
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
3873
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3874
|
+
[1m[35mSQL (1.9ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
|
3875
|
+
[1m[35m (3.6ms)[0m [1m[35mCOMMIT[0m
|
3876
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3877
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3878
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3879
|
+
[1m[35m (21.1ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3880
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3881
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3882
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3883
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3884
|
+
[1m[35mSQL (2.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
|
3885
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3886
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3887
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3888
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3889
|
+
[1m[35m (37.9ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3890
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3891
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER 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[0m
|
3892
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3893
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
3894
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3895
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
3896
|
+
[1m[35m (22.7ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3897
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3898
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
3899
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3900
|
+
[1m[35m (4.3ms)[0m [1m[35mBEGIN[0m
|
3901
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3902
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3903
|
+
[1m[35m (34.9ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3904
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3905
|
+
[1m[35m (1.0ms)[0m [1m[35mALTER 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[0m
|
3906
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3907
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3908
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
|
3909
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3910
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3911
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:10 UTC], ["updated_at", 2016-09-28 10:48:10 UTC]]
|
3912
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
3913
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3914
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (3.8ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[36mPostActivity Load (0.8ms)[0m [1m[34mSELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
|
3918
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3919
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3920
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3921
|
+
[1m[35m (20.1ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3922
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3923
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER 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[0m
|
3924
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
3925
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3926
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3927
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:11 UTC], ["updated_at", 2016-09-28 10:48:11 UTC]]
|
3928
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3929
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3930
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:11 UTC], ["updated_at", 2016-09-28 10:48:11 UTC]]
|
3931
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3932
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3933
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
3937
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3938
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3939
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3940
|
+
[1m[35m (50.2ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3941
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
3942
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
3943
|
+
[1m[35m (4.7ms)[0m [1m[35mCOMMIT[0m
|
3944
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3945
|
+
[1m[35m (0.9ms)[0m [1m[35mALTER 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[0m
|
3946
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3947
|
+
[1m[35m (55.1ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3948
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3949
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3950
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
3951
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
3952
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3953
|
+
[1m[35m (0.8ms)[0m [1m[35mALTER 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[0m
|
3954
|
+
[1m[35m (113.8ms)[0m [1m[35mCOMMIT[0m
|
3955
|
+
[1m[35m (4.4ms)[0m [1m[34m 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
|
+
[0m
|
3962
|
+
[1m[35m (4.0ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
3963
|
+
[1m[35m (72.6ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3964
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
3965
|
+
[1m[35m (1.5ms)[0m [1m[35mALTER 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[0m
|
3966
|
+
[1m[35m (2.3ms)[0m [1m[35mCOMMIT[0m
|
3967
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
3968
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3969
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3970
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3971
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3972
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3973
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("subscriber_type", "subscriber_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
3976
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3977
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3978
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3979
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("subscriber_type", "subscriber_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3982
|
+
[1m[36mTimeful::FeedItem Load (0.6ms)[0m [1m[34mSELECT "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[0m [["subscriber_id", 1], ["subscriber_type", "User"]]
|
3983
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3984
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
3985
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3986
|
+
[1m[35m (19.6ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
3987
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3988
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
3989
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3990
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
3991
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3992
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
3993
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
3994
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3995
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
3996
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35mSQL (0.9ms)[0m [1m[32mINSERT INTO "timeful_feed_items" ("subscriber_type", "subscriber_id", "activity_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
3999
|
+
[1m[36mTimeful::FeedItem Load (0.8ms)[0m [1m[34mSELECT "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[0m [["subscriber_id", 1], ["subscriber_type", "User"]]
|
4000
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4001
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
4002
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
4003
|
+
[1m[35m (45.9ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4004
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4005
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
4006
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4010
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
4011
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
4012
|
+
[1m[35m (36.5ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4013
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4014
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
4015
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4016
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4017
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
4018
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4019
|
+
[1m[35m (20.0ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4020
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4021
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
4022
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4023
|
+
[1m[35m (2.8ms)[0m [1m[35mBEGIN[0m
|
4024
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER 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[0m
|
4025
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
4026
|
+
[1m[35m (42.0ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4027
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
4028
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
4029
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
4030
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4031
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER 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[0m
|
4032
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4033
|
+
[1m[35m (20.5ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4034
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4035
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
4036
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4037
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4038
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
4039
|
+
[1m[35m (6.2ms)[0m [1m[35mCOMMIT[0m
|
4040
|
+
[1m[35m (42.3ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4041
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4042
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER 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[0m
|
4043
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4044
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
4045
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4046
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
4047
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4048
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4049
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
4050
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4051
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4052
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
4056
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4057
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
4058
|
+
[1m[35m (5.0ms)[0m [1m[35mCOMMIT[0m
|
4059
|
+
[1m[35m (31.8ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4060
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4061
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
4062
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4063
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4064
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
4065
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4066
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4067
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 10:48:42 UTC], ["updated_at", 2016-09-28 10:48:42 UTC]]
|
4068
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4069
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4070
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
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
|
+
[1m[36mPostActivity Load (0.5ms)[0m [1m[34mSELECT "timeful_activities".* FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity') AND "timeful_activities"."id" = $1 LIMIT $2[0m [["id", 1], ["LIMIT", 1]]
|
4074
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4075
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER 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[0m
|
4076
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4077
|
+
[1m[35m (33.8ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4078
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4079
|
+
[1m[35m (1.8ms)[0m [1m[35mALTER 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[0m
|
4080
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4081
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4082
|
+
[1m[35m (0.3ms)[0m [1m[35mALTER 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[0m
|
4083
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4084
|
+
[1m[35m (17.4ms)[0m [1m[35mTRUNCATE TABLE "public"."ar_internal_metadata", "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items" RESTART IDENTITY CASCADE;[0m
|
4085
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4086
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER 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[0m
|
4087
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
data/spec/examples.txt
CHANGED
@@ -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.
|
4
|
-
./spec/models/timeful/activity_spec.rb[1:1] | passed | 0.
|
5
|
-
./spec/models/timeful/feed_item_spec.rb[1:1] | passed | 0.
|
6
|
-
./spec/timeful/model/actor_spec.rb[1:1:1] | passed | 0.
|
7
|
-
./spec/timeful/model/actor_spec.rb[1:1:2] | passed | 0.
|
8
|
-
./spec/timeful/model/subscriber_spec.rb[1:1:1] | passed | 0.
|
9
|
-
./spec/timeful/model/subscriber_spec.rb[1:1:2] | passed | 0.
|
10
|
-
./spec/timeful/relation_proxy_spec.rb[1:1:1:1] | passed | 0.
|
11
|
-
./spec/timeful/relation_proxy_spec.rb[1:1:2:1] | passed | 0.
|
12
|
-
./spec/timeful/timeful_spec.rb[1:1:1] | passed | 0.
|
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 :
|
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,
|
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,
|
13
|
-
newest_item = create(:feed_item,
|
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
|
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
|