timeful 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/db/migrate/20160928113515_change_foreign_ids_to_string.rb +13 -0
- data/lib/timeful/version.rb +1 -1
- data/spec/dummy/db/migrate/20160928113645_change_foreign_ids_to_string.timeful.rb +14 -0
- data/spec/dummy/db/schema.rb +4 -4
- data/spec/dummy/log/development.log +75 -0
- data/spec/dummy/log/test.log +182 -0
- data/spec/examples.txt +10 -10
- 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: 20755247404f8c6000c30698ed23a7feb91c3813
|
4
|
+
data.tar.gz: 7ecce79736008b10d33f9e597c5f991b8094441a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14f7ad8b622872f9090ecc5edbe59e70d11a4d5033fe6e55b5d7abfc5459542944dc1e8383aee8577f27ba56e4219c625d1e83041271f261f16c05e87cb15360
|
7
|
+
data.tar.gz: cf6a524b2cb7579be3a168f1b1ad43aab8af66aeaa75417ef4691d4b9c87cf22007cbb97809a949e7b10bb098ac03385fc8c24bce1e265c5e681e2ba6f87f9f5
|
@@ -0,0 +1,13 @@
|
|
1
|
+
class ChangeForeignIdsToString < ActiveRecord::Migration
|
2
|
+
def up
|
3
|
+
change_column :timeful_feed_items, :subscriber_id, :string
|
4
|
+
change_column :timeful_activities, :actor_id, :string
|
5
|
+
change_column :timeful_activities, :object_id, :string
|
6
|
+
end
|
7
|
+
|
8
|
+
def down
|
9
|
+
change_column :timeful_feed_items, :subscriber_id, :integer
|
10
|
+
change_column :timeful_activities, :actor_id, :integer
|
11
|
+
change_column :timeful_activities, :object_id, :integer
|
12
|
+
end
|
13
|
+
end
|
data/lib/timeful/version.rb
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
# This migration comes from timeful (originally 20160928113515)
|
2
|
+
class ChangeForeignIdsToString < ActiveRecord::Migration
|
3
|
+
def up
|
4
|
+
change_column :timeful_feed_items, :subscriber_id, :string
|
5
|
+
change_column :timeful_activities, :actor_id, :string
|
6
|
+
change_column :timeful_activities, :object_id, :string
|
7
|
+
end
|
8
|
+
|
9
|
+
def down
|
10
|
+
change_column :timeful_feed_items, :subscriber_id, :integer
|
11
|
+
change_column :timeful_activities, :actor_id, :integer
|
12
|
+
change_column :timeful_activities, :object_id, :integer
|
13
|
+
end
|
14
|
+
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: 20160928113645) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
16
|
enable_extension "plpgsql"
|
@@ -23,9 +23,9 @@ ActiveRecord::Schema.define(version: 20160928104634) do
|
|
23
23
|
create_table "timeful_activities", force: :cascade do |t|
|
24
24
|
t.string "type", null: false
|
25
25
|
t.string "object_type", null: false
|
26
|
-
t.
|
26
|
+
t.string "object_id", null: false
|
27
27
|
t.string "actor_type", null: false
|
28
|
-
t.
|
28
|
+
t.string "actor_id", null: false
|
29
29
|
t.datetime "created_at", null: false
|
30
30
|
t.datetime "updated_at", null: false
|
31
31
|
t.index ["actor_type", "actor_id"], name: "index_timeful_activities_on_actor_type_and_actor_id", using: :btree
|
@@ -34,7 +34,7 @@ ActiveRecord::Schema.define(version: 20160928104634) do
|
|
34
34
|
|
35
35
|
create_table "timeful_feed_items", force: :cascade do |t|
|
36
36
|
t.string "subscriber_type", null: false
|
37
|
-
t.
|
37
|
+
t.string "subscriber_id", null: false
|
38
38
|
t.integer "activity_id", null: false
|
39
39
|
t.datetime "created_at", null: false
|
40
40
|
t.datetime "updated_at", null: false
|
@@ -421,4 +421,79 @@ WHERE c.contype = 'f'
|
|
421
421
|
AND t1.relname = 'users'
|
422
422
|
AND t3.nspname = ANY (current_schemas(false))
|
423
423
|
ORDER BY c.conname
|
424
|
+
[0m
|
425
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
426
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
427
|
+
Migrating to ChangeForeignIdsToString (20160928113645)
|
428
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
429
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
430
|
+
|
431
|
+
class ChangeForeignIdsToString < ActiveRecord::Migration[4.2] (called from load at /home/alessandro/.rvm/gems/ruby-2.3.1@timeful/bin/rake:23)
|
432
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "feed_items" ALTER COLUMN "subscriber_id" TYPE character varying[0m
|
433
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
434
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
435
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(339456620476877820);[0m
|
436
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
437
|
+
Migrating to ChangeForeignIdsToString (20160928113645)
|
438
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
439
|
+
DEPRECATION WARNING: Directly inheriting from ActiveRecord::Migration is deprecated. Please specify the Rails release the migration was written for:
|
440
|
+
|
441
|
+
class ChangeForeignIdsToString < ActiveRecord::Migration[4.2] (called from load at /home/alessandro/.rvm/gems/ruby-2.3.1@timeful/bin/rake:23)
|
442
|
+
[1m[35m (50.1ms)[0m [1m[35mALTER TABLE "timeful_feed_items" ALTER COLUMN "subscriber_id" TYPE character varying[0m
|
443
|
+
[1m[35m (30.0ms)[0m [1m[35mALTER TABLE "timeful_activities" ALTER COLUMN "actor_id" TYPE character varying[0m
|
444
|
+
[1m[35m (18.5ms)[0m [1m[35mALTER TABLE "timeful_activities" ALTER COLUMN "object_id" TYPE character varying[0m
|
445
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20160928113645"]]
|
446
|
+
[1m[35m (6.1ms)[0m [1m[35mCOMMIT[0m
|
447
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", :environment], ["LIMIT", 1]]
|
448
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
449
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
450
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT pg_advisory_unlock(339456620476877820)[0m
|
451
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
452
|
+
[1m[35m (2.5ms)[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
|
453
|
+
FROM pg_constraint c
|
454
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
455
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
456
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
457
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
458
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
459
|
+
WHERE c.contype = 'f'
|
460
|
+
AND t1.relname = 'posts'
|
461
|
+
AND t3.nspname = ANY (current_schemas(false))
|
462
|
+
ORDER BY c.conname
|
463
|
+
[0m
|
464
|
+
[1m[35m (2.3ms)[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
|
465
|
+
FROM pg_constraint c
|
466
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
467
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
468
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
469
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
470
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
471
|
+
WHERE c.contype = 'f'
|
472
|
+
AND t1.relname = 'timeful_activities'
|
473
|
+
AND t3.nspname = ANY (current_schemas(false))
|
474
|
+
ORDER BY c.conname
|
475
|
+
[0m
|
476
|
+
[1m[35m (2.4ms)[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
|
477
|
+
FROM pg_constraint c
|
478
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
479
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
480
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
481
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
482
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
483
|
+
WHERE c.contype = 'f'
|
484
|
+
AND t1.relname = 'timeful_feed_items'
|
485
|
+
AND t3.nspname = ANY (current_schemas(false))
|
486
|
+
ORDER BY c.conname
|
487
|
+
[0m
|
488
|
+
[1m[35m (2.3ms)[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
|
489
|
+
FROM pg_constraint c
|
490
|
+
JOIN pg_class t1 ON c.conrelid = t1.oid
|
491
|
+
JOIN pg_class t2 ON c.confrelid = t2.oid
|
492
|
+
JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
|
493
|
+
JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
|
494
|
+
JOIN pg_namespace t3 ON c.connamespace = t3.oid
|
495
|
+
WHERE c.contype = 'f'
|
496
|
+
AND t1.relname = 'users'
|
497
|
+
AND t3.nspname = ANY (current_schemas(false))
|
498
|
+
ORDER BY c.conname
|
424
499
|
[0m
|
data/spec/dummy/log/test.log
CHANGED
@@ -4085,3 +4085,185 @@ FOREIGN KEY ("activity_id")
|
|
4085
4085
|
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4086
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
4087
|
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4088
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4089
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4090
|
+
[1m[35m (5.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
4091
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4092
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.7ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4093
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
4094
|
+
[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]]
|
4095
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4096
|
+
[1m[35mSQL (0.7ms)[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 11:39:09 UTC], ["updated_at", 2016-09-28 11:39:09 UTC]]
|
4097
|
+
[1m[35m (2.7ms)[0m [1m[35mCOMMIT[0m
|
4098
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4099
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4100
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
4101
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4102
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
4103
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4104
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", :environment]]
|
4105
|
+
[1m[35m (122.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "timeful_test"[0m
|
4106
|
+
[1m[35m (455.5ms)[0m [1m[35mCREATE DATABASE "timeful_test" ENCODING = 'utf8'[0m
|
4107
|
+
[1m[35mSQL (0.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
4108
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE TABLE "posts" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4109
|
+
[1m[35m (11.4ms)[0m [1m[35mCREATE TABLE "timeful_activities" ("id" serial primary key, "type" character varying NOT NULL, "object_type" character varying NOT NULL, "object_id" character varying NOT NULL, "actor_type" character varying NOT NULL, "actor_id" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4110
|
+
[1m[35m (6.0ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_actor_type_and_actor_id" ON "timeful_activities" USING btree ("actor_type", "actor_id")[0m
|
4111
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE INDEX "index_timeful_activities_on_object_type_and_object_id" ON "timeful_activities" USING btree ("object_type", "object_id")[0m
|
4112
|
+
[1m[35m (11.2ms)[0m [1m[35mCREATE TABLE "timeful_feed_items" ("id" serial primary key, "subscriber_type" character varying NOT NULL, "subscriber_id" character varying NOT NULL, "activity_id" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4113
|
+
[1m[35m (3.4ms)[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
|
4114
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
4115
|
+
[1m[35m (2.8ms)[0m [1m[35mALTER TABLE "timeful_feed_items" ADD CONSTRAINT "fk_rails_9bc442415c"
|
4116
|
+
FOREIGN KEY ("activity_id")
|
4117
|
+
REFERENCES "timeful_activities" ("id")
|
4118
|
+
ON DELETE CASCADE[0m
|
4119
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying PRIMARY KEY)[0m
|
4120
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
4121
|
+
[1m[35m (1.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20160928113645')[0m
|
4122
|
+
[1m[35m (0.9ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES ('20160927160031'), ('20160928104634'), ('20160927141815'), ('20160927155215'), ('20160927160026');
|
4123
|
+
|
4124
|
+
[0m
|
4125
|
+
[1m[35m (6.8ms)[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
|
4126
|
+
[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]]
|
4127
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
4128
|
+
[1m[35mSQL (0.7ms)[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 11:39:36 UTC], ["updated_at", 2016-09-28 11:39:36 UTC]]
|
4129
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
4130
|
+
[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]]
|
4131
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4132
|
+
[1m[35m (0.3ms)[0m [1m[35mCOMMIT[0m
|
4133
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
4134
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4135
|
+
[1m[35m (0.7ms)[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
|
4136
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4137
|
+
[1m[35m (1.8ms)[0m [1m[34m SELECT schemaname || '.' || tablename
|
4138
|
+
FROM pg_tables
|
4139
|
+
WHERE
|
4140
|
+
tablename !~ '_prt_' AND
|
4141
|
+
tablename <> 'schema_migrations' AND
|
4142
|
+
schemaname = ANY (current_schemas(false))
|
4143
|
+
[0m
|
4144
|
+
[1m[35m (1.1ms)[0m [1m[34mselect table_name from information_schema.views where table_schema = 'timeful_test'[0m
|
4145
|
+
[1m[35m (28.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4146
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4147
|
+
[1m[35m (0.4ms)[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
|
4148
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4149
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4150
|
+
[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
|
4151
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
4152
|
+
[1m[35m (20.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4153
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4154
|
+
[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
|
4155
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
4156
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
4157
|
+
[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
|
4158
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
4159
|
+
[1m[35m (21.6ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4160
|
+
[1m[35m (0.5ms)[0m [1m[35mBEGIN[0m
|
4161
|
+
[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
|
4162
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
4163
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4164
|
+
[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
|
4165
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
4166
|
+
[1m[35m (45.8ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4167
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4168
|
+
[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
|
4169
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
4170
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4171
|
+
[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
|
4172
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4173
|
+
[1m[35m (17.2ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4174
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
4175
|
+
[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
|
4176
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4177
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4178
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4179
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4180
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4181
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4182
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4183
|
+
[1m[35mSQL (0.9ms)[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 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4184
|
+
[1m[35mSQL (0.8ms)[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 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4185
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4186
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4187
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4188
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4189
|
+
[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", "2"], ["actor_type", "User"], ["actor_id", "3"], ["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4190
|
+
[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 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4191
|
+
[1m[35m (3.8ms)[0m [1m[35mCOMMIT[0m
|
4192
|
+
[1m[36mTimeful::FeedItem Load (0.4ms)[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"]]
|
4193
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4194
|
+
[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
|
4195
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4196
|
+
[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
|
4197
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4198
|
+
[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
|
4199
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4200
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4201
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4202
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4203
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4204
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4205
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4206
|
+
[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", "2"], ["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4207
|
+
[1m[35mSQL (0.7ms)[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 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4208
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4209
|
+
[1m[36mTimeful::FeedItem Load (0.5ms)[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"]]
|
4210
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4211
|
+
[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
|
4212
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4213
|
+
[1m[35m (28.9ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4214
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4215
|
+
[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
|
4216
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4217
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
4218
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4219
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4220
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
4221
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4222
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4223
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
4224
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
4225
|
+
[1m[35mSQL (1.0ms)[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 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4226
|
+
[1m[35m (3.3ms)[0m [1m[35mCOMMIT[0m
|
4227
|
+
[ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: b805c268-6789-4ecc-939f-df6ede930486) to Test(timeful) with arguments: #<GlobalID:0x00000003c8aa48 @uri=#<URI::GID gid://dummy/PostActivity/1>>
|
4228
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT COUNT(*) FROM "timeful_activities" WHERE "timeful_activities"."type" IN ('PostActivity')[0m
|
4229
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4230
|
+
[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
|
4231
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4232
|
+
[1m[35m (17.1ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4233
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4234
|
+
[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
|
4235
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4236
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4237
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4238
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4239
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4240
|
+
[1m[35mSQL (0.7ms)[0m [1m[32mINSERT INTO "posts" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id"[0m [["created_at", 2016-09-28 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4241
|
+
[1m[35m (1.0ms)[0m [1m[35mCOMMIT[0m
|
4242
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4243
|
+
[1m[35mSQL (0.9ms)[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 11:39:37 UTC], ["updated_at", 2016-09-28 11:39:37 UTC]]
|
4244
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
4245
|
+
[ActiveJob] Enqueued Timeful::DeliverActivityToSubscribersJob (Job ID: 7a434b41-82f7-40b2-8783-32f1bb7aa816) to Test(timeful) with arguments: #<GlobalID:0x00000003bfb690 @uri=#<URI::GID gid://dummy/PostActivity/1>>
|
4246
|
+
[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]]
|
4247
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
4248
|
+
[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
|
4249
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4250
|
+
[1m[35m (27.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4251
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
4252
|
+
[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
|
4253
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4254
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
4255
|
+
[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
|
4256
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
4257
|
+
[1m[35m (26.7ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4258
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4259
|
+
[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
|
4260
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
4261
|
+
[ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [4ec9c90d-415a-456e-9af8-2fa782eff639] Performing Timeful::DeliverActivityToSubscribersJob from Test(timeful) with arguments: #<GlobalID:0x000000039dc378 @uri=#<URI::GID gid://dummy/Timeful::Activity/1009>>
|
4262
|
+
[ActiveJob] [Timeful::DeliverActivityToSubscribersJob] [4ec9c90d-415a-456e-9af8-2fa782eff639] Performed Timeful::DeliverActivityToSubscribersJob from Test(timeful) in 0.2ms
|
4263
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
4264
|
+
[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
|
4265
|
+
[1m[35m (0.7ms)[0m [1m[35mCOMMIT[0m
|
4266
|
+
[1m[35m (24.5ms)[0m [1m[35mTRUNCATE TABLE "public"."posts", "public"."users", "public"."timeful_activities", "public"."timeful_feed_items", "public"."ar_internal_metadata" RESTART IDENTITY CASCADE;[0m
|
4267
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
4268
|
+
[1m[35m (0.9ms)[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
|
4269
|
+
[1m[35m (3.6ms)[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.04836 seconds |
|
4
|
+
./spec/models/timeful/activity_spec.rb[1:1] | passed | 0.09059 seconds |
|
5
|
+
./spec/models/timeful/feed_item_spec.rb[1:1] | passed | 0.03481 seconds |
|
6
|
+
./spec/timeful/model/actor_spec.rb[1:1:1] | passed | 0.07676 seconds |
|
7
|
+
./spec/timeful/model/actor_spec.rb[1:1:2] | passed | 0.05446 seconds |
|
8
|
+
./spec/timeful/model/subscriber_spec.rb[1:1:1] | passed | 0.06242 seconds |
|
9
|
+
./spec/timeful/model/subscriber_spec.rb[1:1:2] | passed | 0.08846 seconds |
|
10
|
+
./spec/timeful/relation_proxy_spec.rb[1:1:1:1] | passed | 0.03358 seconds |
|
11
|
+
./spec/timeful/relation_proxy_spec.rb[1:1:2:1] | passed | 0.03147 seconds |
|
12
|
+
./spec/timeful/timeful_spec.rb[1:1:1] | passed | 0.05844 seconds |
|
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: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- db/migrate/20160927141608_create_timeful_activities.rb
|
175
175
|
- db/migrate/20160927154912_create_timeful_feed_items.rb
|
176
176
|
- db/migrate/20160928104602_rename_feedable_to_subscriber_in_feed_items.rb
|
177
|
+
- db/migrate/20160928113515_change_foreign_ids_to_string.rb
|
177
178
|
- lib/generators/timeful/install_generator.rb
|
178
179
|
- lib/timeful.rb
|
179
180
|
- lib/timeful/engine.rb
|
@@ -221,6 +222,7 @@ files:
|
|
221
222
|
- spec/dummy/db/migrate/20160927160026_create_users.rb
|
222
223
|
- spec/dummy/db/migrate/20160927160031_create_posts.rb
|
223
224
|
- spec/dummy/db/migrate/20160928104634_rename_feedable_to_subscriber_in_feed_items.timeful.rb
|
225
|
+
- spec/dummy/db/migrate/20160928113645_change_foreign_ids_to_string.timeful.rb
|
224
226
|
- spec/dummy/db/schema.rb
|
225
227
|
- spec/dummy/log/development.log
|
226
228
|
- spec/dummy/log/test.log
|
@@ -292,6 +294,7 @@ test_files:
|
|
292
294
|
- spec/examples.txt
|
293
295
|
- spec/rails_helper.rb
|
294
296
|
- spec/dummy/db/migrate/20160927160031_create_posts.rb
|
297
|
+
- spec/dummy/db/migrate/20160928113645_change_foreign_ids_to_string.timeful.rb
|
295
298
|
- spec/dummy/db/migrate/20160928104634_rename_feedable_to_subscriber_in_feed_items.timeful.rb
|
296
299
|
- spec/dummy/db/migrate/20160927141815_create_timeful_activities.timeful.rb
|
297
300
|
- spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
|