nulogy_message_bus_producer 4.0.0.alpha → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -105
  3. data/lib/nulogy_message_bus_producer/subscription_event.rb +0 -3
  4. data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +6 -6
  5. data/lib/nulogy_message_bus_producer/version.rb +1 -1
  6. data/lib/nulogy_message_bus_producer.rb +1 -17
  7. data/spec/dummy/bin/setup +8 -9
  8. data/spec/dummy/bin/yarn +15 -7
  9. data/spec/dummy/config/application.rb +11 -6
  10. data/spec/dummy/config/boot.rb +2 -4
  11. data/spec/dummy/config/cable.yml +2 -2
  12. data/spec/dummy/config/environments/development.rb +29 -7
  13. data/spec/dummy/config/environments/production.rb +45 -15
  14. data/spec/dummy/config/environments/test.rb +24 -7
  15. data/spec/dummy/config/initializers/backtrace_silencers.rb +4 -3
  16. data/spec/dummy/config/initializers/content_security_policy.rb +30 -0
  17. data/spec/dummy/config/initializers/filter_parameter_logging.rb +3 -1
  18. data/spec/dummy/config/initializers/new_framework_defaults_6_1.rb +67 -0
  19. data/spec/dummy/config/initializers/permissions_policy.rb +11 -0
  20. data/spec/dummy/config/locales/en.yml +1 -1
  21. data/spec/dummy/config/storage.yml +34 -0
  22. data/spec/dummy/config.ru +1 -0
  23. data/spec/dummy/db/schema.rb +1 -4
  24. data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +1 -3
  25. data/spec/spec_helper.rb +1 -0
  26. data/spec/support/skip.rb +9 -0
  27. data/spec/support/test_graphql_schema.rb +0 -2
  28. metadata +96 -65
  29. data/db/migrate/20210330204121_add_event_type_to_subscription_events.rb +0 -9
  30. data/spec/dummy/log/development.log +0 -2553
  31. data/spec/dummy/log/test.log +0 -46636
  32. data/spec/integration/lib/nulogy_message_bus_producer_spec.rb +0 -25
@@ -1,2553 +0,0 @@
1
-  (336.2ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
2
-  (1.8ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
3
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
4
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
5
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
6
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
7
-  (12.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
8
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
9
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
10
-  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
11
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
12
-  (1.3ms) BEGIN
13
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-06 00:58:43.896232"], ["updated_at", "2020-06-06 00:58:43.896232"]]
14
-  (1.9ms) COMMIT
15
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
16
-  (1.3ms) BEGIN
17
-  (1.3ms) COMMIT
18
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
19
- SQL (41.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
20
- SQL (22.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
21
- SQL (16.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
22
-  (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
23
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
24
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (0)
25
-  (9.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
26
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
27
-  (1.8ms) BEGIN
28
- ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-06 00:58:44.070622"], ["updated_at", "2020-06-06 00:58:44.070622"]]
29
-  (2.2ms) COMMIT
30
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
31
-  (1.4ms) BEGIN
32
- ActiveRecord::InternalMetadata Update (1.7ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-06 00:58:44.080926"], ["key", "environment"]]
33
-  (2.0ms) COMMIT
34
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
35
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
36
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
37
-  (115.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
38
-  (325.3ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
39
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
40
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
41
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "citext"
42
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
43
-  (9.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
44
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
45
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (0)
46
-  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
47
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
48
-  (2.0ms) BEGIN
49
- ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-06 00:58:54.502133"], ["updated_at", "2020-06-06 00:58:54.502133"]]
50
-  (2.2ms) COMMIT
51
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
52
-  (2.0ms) BEGIN
53
- ActiveRecord::InternalMetadata Update (1.9ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-06 00:58:54.514732"], ["key", "environment"]]
54
-  (2.5ms) COMMIT
55
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
57
-  (216.8ms) DROP DATABASE IF EXISTS "graphql_api_test"
58
-  (400.7ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
59
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
60
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
61
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
62
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
63
-  (13.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
64
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
65
-  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES (0)
66
-  (7.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
67
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
68
-  (1.7ms) BEGIN
69
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:18:46.460431"], ["updated_at", "2020-06-07 23:18:46.460431"]]
70
-  (1.9ms) COMMIT
71
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
72
-  (1.2ms) BEGIN
73
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:18:46.470603"], ["key", "environment"]]
74
-  (1.9ms) COMMIT
75
-  (1.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
76
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
77
- Migrating to AddPublicSubscriptions (20200303193414)
78
-  (1.3ms) BEGIN
79
-  (2.0ms) ROLLBACK
80
-  (1.8ms) SELECT pg_advisory_unlock(3732957763885691250)
81
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
82
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
83
- ActiveRecord::InternalMetadata Load (2.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
84
-  (1.7ms) BEGIN
85
-  (2.4ms) COMMIT
86
-  (2.0ms) SELECT pg_advisory_unlock(3732957763885691250)
87
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
88
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
89
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
90
-  (114.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
91
-  (335.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
92
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
93
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
94
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
95
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
96
-  (10.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
97
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
98
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (0)
99
-  (7.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
100
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
101
-  (1.4ms) BEGIN
102
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:29:12.480181"], ["updated_at", "2020-06-07 23:29:12.480181"]]
103
-  (1.9ms) COMMIT
104
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
105
-  (1.3ms) BEGIN
106
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:29:12.490735"], ["key", "environment"]]
107
-  (2.1ms) COMMIT
108
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
109
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
110
-  (116.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
111
-  (328.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
112
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "citext"
113
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
114
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
115
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
116
-  (10.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
117
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
118
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (0)
119
-  (6.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
120
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
121
-  (1.3ms) BEGIN
122
- ActiveRecord::InternalMetadata Create (1.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:31:12.947047"], ["updated_at", "2020-06-07 23:31:12.947047"]]
123
-  (2.1ms) COMMIT
124
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
125
-  (1.4ms) BEGIN
126
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:31:12.957774"], ["key", "environment"]]
127
-  (2.1ms) COMMIT
128
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
129
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
130
-  (172.6ms) DROP DATABASE IF EXISTS "graphql_api_development"
131
-  (119.2ms) DROP DATABASE IF EXISTS "graphql_api_test"
132
-  (336.8ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
133
-  (335.8ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
134
-  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
135
-  (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
136
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
137
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
138
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
139
-  (1.2ms) BEGIN
140
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:31:42.032098"], ["updated_at", "2020-06-07 23:31:42.032098"]]
141
-  (2.0ms) COMMIT
142
-  (1.3ms) SELECT pg_advisory_unlock(3732957763885691250)
143
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
144
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
145
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
146
-  (112.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
147
-  (336.3ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
148
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
149
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
150
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
151
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
152
-  (12.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
153
-  (3.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
154
-  (2.6ms) INSERT INTO "schema_migrations" (version) VALUES (0)
155
-  (9.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
156
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
157
-  (1.6ms) BEGIN
158
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:32:20.589047"], ["updated_at", "2020-06-07 23:32:20.589047"]]
159
-  (2.1ms) COMMIT
160
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
161
-  (1.2ms) BEGIN
162
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:32:20.600065"], ["key", "environment"]]
163
-  (2.0ms) COMMIT
164
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
165
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
166
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
167
-  (1.6ms) BEGIN
168
-  (1.3ms) COMMIT
169
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
170
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
171
-  (1.1ms) SELECT pg_try_advisory_lock(3732957763885691250)
172
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
173
- Migrating to AddPublicSubscriptions (20200303193414)
174
-  (1.5ms) BEGIN
175
- ActiveRecord::SchemaMigration Create (2.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
176
-  (1.9ms) COMMIT
177
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
178
-  (1.3ms) BEGIN
179
-  (1.3ms) ROLLBACK
180
-  (2.3ms) SELECT pg_advisory_unlock(3732957763885691250)
181
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
182
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
183
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
184
-  (1.2ms) BEGIN
185
-  (1.5ms) ROLLBACK
186
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
187
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
188
-  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
189
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
190
-  (1.7ms) BEGIN
191
- ActiveRecord::SchemaMigration Create (2.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
192
-  (3.3ms) COMMIT
193
- ActiveRecord::InternalMetadata Load (2.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
194
-  (1.7ms) BEGIN
195
-  (1.6ms) COMMIT
196
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
197
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
198
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
199
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
200
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
201
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
202
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
203
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
204
-  (116.2ms) DROP DATABASE IF EXISTS "graphql_api_test"
205
-  (328.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
206
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "citext"
207
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
208
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
209
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
210
-  (8.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
211
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
212
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
213
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
214
- (20200303193414);
215
-
216
- 
217
-  (6.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
218
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
219
-  (1.7ms) BEGIN
220
- ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:43:30.529881"], ["updated_at", "2020-06-07 23:43:30.529881"]]
221
-  (2.4ms) COMMIT
222
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
223
-  (1.5ms) BEGIN
224
- ActiveRecord::InternalMetadata Update (2.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:43:30.542918"], ["key", "environment"]]
225
-  (2.1ms) COMMIT
226
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
227
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
228
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
229
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
230
-  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
231
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
232
-  (117.1ms) DROP DATABASE IF EXISTS "graphql_api_development"
233
-  (116.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
234
-  (325.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
235
-  (331.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
236
-  (9.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
237
-  (7.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
238
-  (1.7ms) SELECT pg_try_advisory_lock(3732957763885691250)
239
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
240
- Migrating to AddPublicSubscriptions (20200303193414)
241
-  (1.6ms) BEGIN
242
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
243
-  (2.0ms) COMMIT
244
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
245
-  (1.2ms) BEGIN
246
- ActiveRecord::SchemaMigration Create (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
247
-  (1.8ms) COMMIT
248
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
249
-  (2.6ms) BEGIN
250
- ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:45:01.815889"], ["updated_at", "2020-06-07 23:45:01.815889"]]
251
-  (2.6ms) COMMIT
252
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
253
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
254
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
255
-  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
256
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
257
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
258
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
259
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
260
-  (114.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
261
-  (328.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
262
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
263
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
264
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
265
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
266
-  (10.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
267
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
268
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
269
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
270
- (20200303193414);
271
-
272
- 
273
-  (6.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
274
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
275
-  (1.6ms) BEGIN
276
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:45:09.895516"], ["updated_at", "2020-06-07 23:45:09.895516"]]
277
-  (1.9ms) COMMIT
278
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
279
-  (1.3ms) BEGIN
280
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:45:09.906223"], ["key", "environment"]]
281
-  (2.0ms) COMMIT
282
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
283
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
284
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
285
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
286
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
287
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
288
-  (130.9ms) DROP DATABASE IF EXISTS "graphql_api_development"
289
-  (113.0ms) DROP DATABASE IF EXISTS "graphql_api_test"
290
-  (331.1ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
291
-  (327.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
292
-  (10.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
293
-  (7.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
294
-  (1.1ms) SELECT pg_try_advisory_lock(3732957763885691250)
295
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
296
- Migrating to AddPublicSubscriptions (20200303193414)
297
-  (1.2ms) BEGIN
298
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
299
-  (2.4ms) COMMIT
300
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
301
-  (1.6ms) BEGIN
302
- ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
303
-  (1.8ms) COMMIT
304
- ActiveRecord::InternalMetadata Load (4.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
305
-  (1.5ms) BEGIN
306
- ActiveRecord::InternalMetadata Create (2.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:49:09.877773"], ["updated_at", "2020-06-07 23:49:09.877773"]]
307
-  (3.1ms) COMMIT
308
-  (2.1ms) SELECT pg_advisory_unlock(3732957763885691250)
309
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
310
-  (1.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
311
-  (1.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
312
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
313
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
314
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
315
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
316
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
317
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
318
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "citext"
319
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
320
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
321
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
322
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
323
- ActiveRecord::InternalMetadata Load (2.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
324
-  (1.5ms) BEGIN
325
-  (1.6ms) COMMIT
326
- ActiveRecord::InternalMetadata Load (2.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
327
-  (2.1ms) BEGIN
328
-  (1.4ms) COMMIT
329
- SQL (2.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
330
- SQL (2.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
331
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
332
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
333
-  (14.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
334
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
335
-  (4.8ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
336
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES
337
- (20200303193414);
338
-
339
- 
340
-  (10.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
341
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
342
-  (1.4ms) BEGIN
343
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:01.327107"], ["updated_at", "2020-06-07 23:53:01.327107"]]
344
-  (3.2ms) COMMIT
345
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
346
-  (1.5ms) BEGIN
347
- ActiveRecord::InternalMetadata Update (2.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:53:01.340009"], ["key", "environment"]]
348
-  (2.5ms) COMMIT
349
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
350
-  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
351
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
352
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
353
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
354
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
355
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
356
-  (119.5ms) DROP DATABASE IF EXISTS "graphql_api_development"
357
-  (115.7ms) DROP DATABASE IF EXISTS "graphql_api_test"
358
-  (339.5ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
359
-  (330.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
360
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
361
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
362
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
363
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
364
-  (14.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
365
-  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
366
-  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
367
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES
368
- (20200303193414);
369
-
370
- 
371
-  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
372
- ActiveRecord::InternalMetadata Load (2.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
373
-  (1.8ms) BEGIN
374
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:18.403937"], ["updated_at", "2020-06-07 23:53:18.403937"]]
375
-  (2.1ms) COMMIT
376
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
377
-  (1.3ms) BEGIN
378
-  (1.4ms) COMMIT
379
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "citext"
380
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
381
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
382
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
383
-  (14.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
384
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
385
-  (5.6ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
386
-  (2.7ms) INSERT INTO "schema_migrations" (version) VALUES
387
- (20200303193414);
388
-
389
- 
390
-  (8.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
391
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
392
-  (1.7ms) BEGIN
393
- ActiveRecord::InternalMetadata Create (2.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:18.524408"], ["updated_at", "2020-06-07 23:53:18.524408"]]
394
-  (1.8ms) COMMIT
395
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
396
-  (1.3ms) BEGIN
397
- ActiveRecord::InternalMetadata Update (1.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:53:18.534070"], ["key", "environment"]]
398
-  (1.9ms) COMMIT
399
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
400
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
401
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
402
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
403
-  (1.7ms) BEGIN
404
-  (1.3ms) COMMIT
405
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
406
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
407
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
408
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
409
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
410
-  (2.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
411
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
412
-  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
413
-  (119.1ms) DROP DATABASE IF EXISTS "graphql_api_test"
414
-  (332.5ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
415
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "citext"
416
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
417
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
418
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
419
-  (10.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
420
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
421
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
422
-  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES
423
- (20200303193414);
424
-
425
- 
426
-  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
427
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
428
-  (1.4ms) BEGIN
429
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:53:40.331531"], ["updated_at", "2020-06-07 23:53:40.331531"]]
430
-  (2.4ms) COMMIT
431
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
432
-  (1.4ms) BEGIN
433
- ActiveRecord::InternalMetadata Update (1.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:53:40.343164"], ["key", "environment"]]
434
-  (2.1ms) COMMIT
435
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
436
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
437
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
438
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
439
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
440
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
441
-  (115.0ms) DROP DATABASE IF EXISTS "graphql_api_test"
442
-  (329.0ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
443
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
444
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
445
- SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
446
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
447
-  (9.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
448
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
449
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
450
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES
451
- (20200303193414);
452
-
453
- 
454
-  (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
455
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
456
-  (1.5ms) BEGIN
457
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-07 23:54:40.584786"], ["updated_at", "2020-06-07 23:54:40.584786"]]
458
-  (2.5ms) COMMIT
459
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
460
-  (1.3ms) BEGIN
461
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-07 23:54:40.596323"], ["key", "environment"]]
462
-  (1.8ms) COMMIT
463
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
464
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
465
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
466
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
467
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
468
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
469
-  (187.0ms) DROP DATABASE IF EXISTS "graphql_api_development"
470
-  (166.8ms) DROP DATABASE IF EXISTS "graphql_api_test"
471
-  (1.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
472
-  (1.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
473
-  (385.9ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
474
-  (345.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
475
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "citext"
476
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
477
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
478
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
479
-  (16.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
480
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
481
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
482
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
483
- (20200303193414);
484
-
485
- 
486
-  (7.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
487
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
488
-  (1.6ms) BEGIN
489
- ActiveRecord::InternalMetadata Create (2.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:00:15.484739"], ["updated_at", "2020-06-08 13:00:15.484739"]]
490
-  (2.3ms) COMMIT
491
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
492
-  (2.6ms) BEGIN
493
-  (1.5ms) COMMIT
494
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "citext"
495
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
496
- SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
497
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
498
-  (14.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
499
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
500
-  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
501
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES
502
- (20200303193414);
503
-
504
- 
505
-  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
506
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
507
-  (1.4ms) BEGIN
508
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:00:15.646758"], ["updated_at", "2020-06-08 13:00:15.646758"]]
509
-  (2.0ms) COMMIT
510
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
511
-  (1.2ms) BEGIN
512
- ActiveRecord::InternalMetadata Update (1.7ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-08 13:00:15.656464"], ["key", "environment"]]
513
-  (1.8ms) COMMIT
514
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
515
-  (2.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
516
-  (3.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
517
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
518
-  (2.6ms) BEGIN
519
-  (2.3ms) COMMIT
520
-  (2.2ms) SELECT pg_advisory_unlock(3732957763885691250)
521
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
522
-  (1.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
523
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
524
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
525
-  (1.2ms) BEGIN
526
-  (1.3ms) COMMIT
527
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
528
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
529
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
530
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
531
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
532
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
533
-  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
534
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
535
-  (116.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
536
-  (118.2ms) DROP DATABASE IF EXISTS "graphql_api_test"
537
-  (1.4ms) DROP DATABASE IF EXISTS "graphql_api_development"
538
-  (1.4ms) DROP DATABASE IF EXISTS "graphql_api_test"
539
-  (1.1ms) DROP DATABASE IF EXISTS "graphql_api_development"
540
-  (1.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
541
-  (340.3ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
542
-  (336.9ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
543
-  (12.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
544
-  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
545
-  (1.1ms) SELECT pg_try_advisory_lock(3732957763885691250)
546
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
547
- Migrating to AddPublicSubscriptions (20200303193414)
548
-  (2.2ms) BEGIN
549
-  (2.3ms) ROLLBACK
550
-  (1.8ms) SELECT pg_advisory_unlock(3732957763885691250)
551
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
552
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
553
-  (120.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
554
-  (114.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
555
-  (337.1ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
556
-  (335.0ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
557
-  (10.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
558
-  (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
559
-  (1.3ms) SELECT pg_try_advisory_lock(3732957763885691250)
560
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
561
- Migrating to AddPublicSubscriptions (20200303193414)
562
-  (1.5ms) BEGIN
563
-  (2.2ms) ROLLBACK
564
-  (1.9ms) SELECT pg_advisory_unlock(3732957763885691250)
565
-  (1.5ms) SELECT pg_try_advisory_lock(3732957763885691250)
566
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
567
- Migrating to AddPublicSubscriptions (20200303193414)
568
-  (1.9ms) BEGIN
569
- ActiveRecord::SchemaMigration Create (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
570
-  (2.4ms) COMMIT
571
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
572
-  (1.7ms) BEGIN
573
- ActiveRecord::SchemaMigration Create (2.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
574
-  (2.7ms) COMMIT
575
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
576
-  (2.1ms) BEGIN
577
- ActiveRecord::InternalMetadata Create (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:10:28.699876"], ["updated_at", "2020-06-08 13:10:28.699876"]]
578
-  (2.0ms) COMMIT
579
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
580
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
581
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
582
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
583
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
584
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
585
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
586
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
587
-  (112.4ms) DROP DATABASE IF EXISTS "graphql_api_development"
588
-  (114.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
589
-  (341.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
590
-  (340.4ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
591
-  (10.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
592
-  (8.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
593
-  (1.5ms) SELECT pg_try_advisory_lock(3732957763885691250)
594
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
595
- Migrating to AddPublicSubscriptions (20200303193414)
596
-  (1.6ms) BEGIN
597
-  (1.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
598
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
599
- Migrating to AddPublicSubscriptions (20200303193414)
600
-  (1.3ms) BEGIN
601
-  (1.2ms) SHOW statement_timeout
602
-  (1.3ms) SET statement_timeout TO '0ms'
603
-  (2.0ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
604
-  (14.0ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
605
-  (4.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
606
-  (1.5ms) SELECT current_schema
607
-  (2.3ms) SELECT a.attname AS column_name
608
- FROM pg_catalog.pg_attribute a
609
- WHERE a.attrelid = (
610
- SELECT c.oid
611
- FROM pg_catalog.pg_class c
612
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
613
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
614
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
615
- )
616
- AND a.attnum > 0 AND NOT a.attisdropped
617
- ORDER BY a.attnum;
618
- 
619
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
620
- 
621
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
622
- 
623
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
624
- 
625
-  (1.7ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
626
- 
627
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
628
- 
629
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
630
- 
631
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
632
- 
633
-  (5.7ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
634
-  (4.6ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
635
-  (1.3ms) SELECT current_schema
636
-  (1.8ms) SELECT a.attname AS column_name
637
- FROM pg_catalog.pg_attribute a
638
- WHERE a.attrelid = (
639
- SELECT c.oid
640
- FROM pg_catalog.pg_class c
641
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
642
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
643
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
644
- )
645
- AND a.attnum > 0 AND NOT a.attisdropped
646
- ORDER BY a.attnum;
647
- 
648
-  (1.0ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
649
- 
650
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
651
- 
652
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
653
- 
654
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
655
- 
656
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
657
- 
658
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
659
- 
660
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
661
- 
662
-  (1.3ms) SET statement_timeout TO '0'
663
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
664
-  (2.4ms) COMMIT
665
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
666
-  (1.2ms) BEGIN
667
-  (1.5ms) SHOW statement_timeout
668
-  (1.3ms) SET statement_timeout TO '0ms'
669
-  (1.7ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
670
-  (1.9ms)  UPDATE public_subscriptions
671
- SET query = REGEXP_REPLACE(query, '(W)uuid(W)', 'id', 'g')
672
- 
673
-  (1.3ms) SET statement_timeout TO '0'
674
- ActiveRecord::SchemaMigration Create (1.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
675
-  (2.0ms) COMMIT
676
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
677
-  (1.8ms) BEGIN
678
- ActiveRecord::InternalMetadata Create (2.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:20:52.569239"], ["updated_at", "2020-06-08 13:20:52.569239"]]
679
-  (3.0ms) COMMIT
680
-  (1.7ms) SELECT pg_advisory_unlock(3732957763885691250)
681
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
682
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
683
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
684
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
685
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
686
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
687
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
688
-  (115.4ms) DROP DATABASE IF EXISTS "graphql_api_test"
689
-  (349.8ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
690
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
691
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
692
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
693
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
694
-  (1.3ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
695
-  (10.1ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
696
-  (4.9ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
697
-  (1.2ms) SELECT current_schema
698
-  (2.3ms) SELECT a.attname AS column_name
699
- FROM pg_catalog.pg_attribute a
700
- WHERE a.attrelid = (
701
- SELECT c.oid
702
- FROM pg_catalog.pg_class c
703
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
704
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
705
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
706
- )
707
- AND a.attnum > 0 AND NOT a.attisdropped
708
- ORDER BY a.attnum;
709
- 
710
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
711
- 
712
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
713
- 
714
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
715
- 
716
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
717
- 
718
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
719
- 
720
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
721
- 
722
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
723
- 
724
-  (1.2ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
725
-  (7.0ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
726
-  (3.8ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
727
-  (1.3ms) SELECT current_schema
728
-  (1.8ms) SELECT a.attname AS column_name
729
- FROM pg_catalog.pg_attribute a
730
- WHERE a.attrelid = (
731
- SELECT c.oid
732
- FROM pg_catalog.pg_class c
733
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
734
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
735
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
736
- )
737
- AND a.attnum > 0 AND NOT a.attisdropped
738
- ORDER BY a.attnum;
739
- 
740
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
741
- 
742
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
743
- 
744
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
745
- 
746
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
747
- 
748
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
749
- 
750
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
751
- 
752
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
753
- 
754
-  (7.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
755
-  (1.4ms) SELECT current_schema
756
-  (1.8ms) SELECT a.attname AS column_name
757
- FROM pg_catalog.pg_attribute a
758
- WHERE a.attrelid = (
759
- SELECT c.oid
760
- FROM pg_catalog.pg_class c
761
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
762
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
763
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
764
- )
765
- AND a.attnum > 0 AND NOT a.attisdropped
766
- ORDER BY a.attnum;
767
- 
768
-  (1.3ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
769
- 
770
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
771
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
772
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES
773
- (20200303193414);
774
-
775
- 
776
-  (6.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
777
-  (1.4ms) SELECT current_schema
778
-  (1.7ms) SELECT a.attname AS column_name
779
- FROM pg_catalog.pg_attribute a
780
- WHERE a.attrelid = (
781
- SELECT c.oid
782
- FROM pg_catalog.pg_class c
783
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
784
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
785
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
786
- )
787
- AND a.attnum > 0 AND NOT a.attisdropped
788
- ORDER BY a.attnum;
789
- 
790
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
791
- 
792
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
793
- 
794
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
795
- 
796
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
797
- 
798
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
799
-  (1.3ms) BEGIN
800
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-08 13:22:42.487970"], ["updated_at", "2020-06-08 13:22:42.487970"]]
801
-  (1.7ms) COMMIT
802
- ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
803
-  (0.9ms) BEGIN
804
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-08 13:22:42.497315"], ["key", "environment"]]
805
-  (1.8ms) COMMIT
806
- SQL (4.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
807
- GraphqlApi::Models::PublicSubscription Load (3.6ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
808
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
809
-  (1.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
810
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
811
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
812
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
813
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
814
-  (164.3ms) DROP DATABASE IF EXISTS "graphql_api_development"
815
-  (163.3ms) DROP DATABASE IF EXISTS "graphql_api_test"
816
-  (375.6ms) CREATE DATABASE "graphql_api_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
817
-  (330.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
818
- SQL (3.0ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
819
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "citext"
820
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "hstore"
821
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
822
- SQL (2.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
823
-  (1.6ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
824
-  (16.5ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
825
-  (5.5ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
826
-  (1.5ms) SELECT current_schema
827
-  (2.6ms) SELECT a.attname AS column_name
828
- FROM pg_catalog.pg_attribute a
829
- WHERE a.attrelid = (
830
- SELECT c.oid
831
- FROM pg_catalog.pg_class c
832
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
833
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
834
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
835
- )
836
- AND a.attnum > 0 AND NOT a.attisdropped
837
- ORDER BY a.attnum;
838
- 
839
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
840
- 
841
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
842
- 
843
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
844
- 
845
-  (1.9ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
846
- 
847
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
848
- 
849
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
850
- 
851
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
852
- 
853
-  (1.8ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
854
-  (6.3ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
855
-  (4.1ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
856
-  (1.4ms) SELECT current_schema
857
-  (1.6ms) SELECT a.attname AS column_name
858
- FROM pg_catalog.pg_attribute a
859
- WHERE a.attrelid = (
860
- SELECT c.oid
861
- FROM pg_catalog.pg_class c
862
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
863
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
864
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
865
- )
866
- AND a.attnum > 0 AND NOT a.attisdropped
867
- ORDER BY a.attnum;
868
- 
869
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
870
- 
871
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
872
- 
873
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
874
- 
875
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
876
- 
877
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
878
- 
879
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
880
- 
881
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
882
- 
883
-  (6.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
884
-  (1.3ms) SELECT current_schema
885
-  (1.7ms) SELECT a.attname AS column_name
886
- FROM pg_catalog.pg_attribute a
887
- WHERE a.attrelid = (
888
- SELECT c.oid
889
- FROM pg_catalog.pg_class c
890
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
891
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
892
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
893
- )
894
- AND a.attnum > 0 AND NOT a.attisdropped
895
- ORDER BY a.attnum;
896
- 
897
-  (1.3ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
898
- 
899
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
900
-  (2.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
901
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
902
- (20200303193414);
903
-
904
- 
905
-  (7.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
906
-  (1.3ms) SELECT current_schema
907
-  (1.8ms) SELECT a.attname AS column_name
908
- FROM pg_catalog.pg_attribute a
909
- WHERE a.attrelid = (
910
- SELECT c.oid
911
- FROM pg_catalog.pg_class c
912
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
913
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
914
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
915
- )
916
- AND a.attnum > 0 AND NOT a.attisdropped
917
- ORDER BY a.attnum;
918
- 
919
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
920
- 
921
-  (1.1ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
922
- 
923
-  (1.1ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
924
- 
925
-  (1.1ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
926
- 
927
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
928
-  (1.7ms) BEGIN
929
- ActiveRecord::InternalMetadata Create (1.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-09 20:39:56.100478"], ["updated_at", "2020-06-09 20:39:56.100478"]]
930
-  (2.0ms) COMMIT
931
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
932
-  (1.6ms) BEGIN
933
-  (1.4ms) COMMIT
934
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
935
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
936
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
937
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
938
-  (1.7ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
939
-  (15.5ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
940
-  (4.1ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
941
-  (1.3ms) SELECT current_schema
942
-  (2.3ms) SELECT a.attname AS column_name
943
- FROM pg_catalog.pg_attribute a
944
- WHERE a.attrelid = (
945
- SELECT c.oid
946
- FROM pg_catalog.pg_class c
947
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
948
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
949
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
950
- )
951
- AND a.attnum > 0 AND NOT a.attisdropped
952
- ORDER BY a.attnum;
953
- 
954
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
955
- 
956
-  (1.7ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
957
- 
958
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
959
- 
960
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
961
- 
962
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
963
- 
964
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
965
- 
966
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
967
- 
968
-  (1.3ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
969
-  (6.8ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
970
-  (4.0ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
971
-  (1.2ms) SELECT current_schema
972
-  (1.8ms) SELECT a.attname AS column_name
973
- FROM pg_catalog.pg_attribute a
974
- WHERE a.attrelid = (
975
- SELECT c.oid
976
- FROM pg_catalog.pg_class c
977
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
978
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
979
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
980
- )
981
- AND a.attnum > 0 AND NOT a.attisdropped
982
- ORDER BY a.attnum;
983
- 
984
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
985
- 
986
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
987
- 
988
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
989
- 
990
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
991
- 
992
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
993
- 
994
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
995
- 
996
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
997
- 
998
-  (9.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
999
-  (1.9ms) SELECT current_schema
1000
-  (2.1ms) SELECT a.attname AS column_name
1001
- FROM pg_catalog.pg_attribute a
1002
- WHERE a.attrelid = (
1003
- SELECT c.oid
1004
- FROM pg_catalog.pg_class c
1005
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1006
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
1007
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1008
- )
1009
- AND a.attnum > 0 AND NOT a.attisdropped
1010
- ORDER BY a.attnum;
1011
- 
1012
-  (1.3ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
1013
- 
1014
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1015
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
1016
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1017
- (20200303193414);
1018
-
1019
- 
1020
-  (7.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1021
-  (1.7ms) SELECT current_schema
1022
-  (2.2ms) SELECT a.attname AS column_name
1023
- FROM pg_catalog.pg_attribute a
1024
- WHERE a.attrelid = (
1025
- SELECT c.oid
1026
- FROM pg_catalog.pg_class c
1027
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1028
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
1029
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1030
- )
1031
- AND a.attnum > 0 AND NOT a.attisdropped
1032
- ORDER BY a.attnum;
1033
- 
1034
-  (1.8ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
1035
- 
1036
-  (1.4ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
1037
- 
1038
-  (1.5ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
1039
- 
1040
-  (1.7ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
1041
- 
1042
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1043
-  (1.5ms) BEGIN
1044
- ActiveRecord::InternalMetadata Create (1.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-09 20:39:56.304857"], ["updated_at", "2020-06-09 20:39:56.304857"]]
1045
-  (2.0ms) COMMIT
1046
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1047
-  (1.5ms) BEGIN
1048
- ActiveRecord::InternalMetadata Update (2.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-09 20:39:56.315466"], ["key", "environment"]]
1049
-  (2.7ms) COMMIT
1050
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1051
- GraphqlApi::Models::PublicSubscription Load (3.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1052
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1053
- SQL (2.3ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1054
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1055
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1056
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1057
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1058
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1059
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1060
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1061
-  (120.9ms) DROP DATABASE IF EXISTS "graphql_api_test"
1062
-  (320.0ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1063
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "citext"
1064
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1065
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1066
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1067
-  (1.4ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1068
-  (14.7ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1069
-  (4.5ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1070
-  (1.3ms) SELECT current_schema
1071
-  (2.3ms) SELECT a.attname AS column_name
1072
- FROM pg_catalog.pg_attribute a
1073
- WHERE a.attrelid = (
1074
- SELECT c.oid
1075
- FROM pg_catalog.pg_class c
1076
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1077
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
1078
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1079
- )
1080
- AND a.attnum > 0 AND NOT a.attisdropped
1081
- ORDER BY a.attnum;
1082
- 
1083
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
1084
- 
1085
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
1086
- 
1087
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
1088
- 
1089
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
1090
- 
1091
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
1092
- 
1093
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
1094
- 
1095
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
1096
- 
1097
-  (1.4ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1098
-  (7.1ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1099
-  (3.8ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1100
-  (1.1ms) SELECT current_schema
1101
-  (1.7ms) SELECT a.attname AS column_name
1102
- FROM pg_catalog.pg_attribute a
1103
- WHERE a.attrelid = (
1104
- SELECT c.oid
1105
- FROM pg_catalog.pg_class c
1106
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1107
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
1108
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1109
- )
1110
- AND a.attnum > 0 AND NOT a.attisdropped
1111
- ORDER BY a.attnum;
1112
- 
1113
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
1114
- 
1115
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
1116
- 
1117
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
1118
- 
1119
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
1120
- 
1121
-  (1.1ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
1122
- 
1123
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
1124
- 
1125
-  (1.2ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
1126
- 
1127
-  (6.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1128
-  (1.4ms) SELECT current_schema
1129
-  (1.6ms) SELECT a.attname AS column_name
1130
- FROM pg_catalog.pg_attribute a
1131
- WHERE a.attrelid = (
1132
- SELECT c.oid
1133
- FROM pg_catalog.pg_class c
1134
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1135
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
1136
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1137
- )
1138
- AND a.attnum > 0 AND NOT a.attisdropped
1139
- ORDER BY a.attnum;
1140
- 
1141
-  (1.4ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
1142
- 
1143
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1144
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200604203932)
1145
-  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES
1146
- (20200303193414);
1147
-
1148
- 
1149
-  (16.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1150
-  (1.7ms) SELECT current_schema
1151
-  (2.1ms) SELECT a.attname AS column_name
1152
- FROM pg_catalog.pg_attribute a
1153
- WHERE a.attrelid = (
1154
- SELECT c.oid
1155
- FROM pg_catalog.pg_class c
1156
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1157
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
1158
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1159
- )
1160
- AND a.attnum > 0 AND NOT a.attisdropped
1161
- ORDER BY a.attnum;
1162
- 
1163
-  (1.6ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
1164
- 
1165
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
1166
- 
1167
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
1168
- 
1169
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
1170
- 
1171
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1172
-  (1.5ms) BEGIN
1173
- ActiveRecord::InternalMetadata Create (2.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-09 20:40:21.947649"], ["updated_at", "2020-06-09 20:40:21.947649"]]
1174
-  (2.4ms) COMMIT
1175
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1176
-  (1.5ms) BEGIN
1177
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-09 20:40:21.959696"], ["key", "environment"]]
1178
-  (2.1ms) COMMIT
1179
- SQL (3.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1180
- GraphqlApi::Models::PublicSubscription Load (3.2ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1181
-  (1.8ms) SELECT pg_try_advisory_lock(3732957763885691250)
1182
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1183
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1184
-  (1.7ms) BEGIN
1185
-  (1.7ms) SHOW statement_timeout
1186
-  (1.7ms) SET statement_timeout TO '0ms'
1187
-  (2.2ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1188
-  (3.1ms) ALTER TABLE "public_subscriptions" ADD "schema_key" character varying NOT NULL
1189
-  (1.5ms) SET statement_timeout TO '0'
1190
- ActiveRecord::SchemaMigration Create (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1191
-  (3.7ms) COMMIT
1192
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1193
-  (1.3ms) BEGIN
1194
-  (1.4ms) COMMIT
1195
-  (1.4ms) SELECT pg_advisory_unlock(3732957763885691250)
1196
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1197
- SQL (2.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1198
- GraphqlApi::Models::PublicSubscription Load (2.0ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1199
-  (1.6ms) SELECT pg_try_advisory_lock(3732957763885691250)
1200
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1201
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1202
-  (1.6ms) BEGIN
1203
-  (1.9ms) COMMIT
1204
-  (1.7ms) SELECT pg_advisory_unlock(3732957763885691250)
1205
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1206
- SQL (2.5ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1207
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1208
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1209
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1210
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1211
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1212
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1213
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1214
-  (188.5ms) DROP DATABASE IF EXISTS "graphql_api_test"
1215
-  (379.6ms) CREATE DATABASE "graphql_api_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1216
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
1217
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1218
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1219
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1220
-  (1.5ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1221
-  (20.9ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1222
-  (5.1ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1223
-  (1.8ms) SELECT current_schema
1224
-  (2.5ms) SELECT a.attname AS column_name
1225
- FROM pg_catalog.pg_attribute a
1226
- WHERE a.attrelid = (
1227
- SELECT c.oid
1228
- FROM pg_catalog.pg_class c
1229
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1230
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscription_events)$'
1231
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1232
- )
1233
- AND a.attnum > 0 AND NOT a.attisdropped
1234
- ORDER BY a.attnum;
1235
- 
1236
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'id') AS result
1237
- 
1238
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'public_subscription_id') AS result
1239
- 
1240
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'partition_key') AS result
1241
- 
1242
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'topic_name') AS result
1243
- 
1244
-  (1.6ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'tenant_id') AS result
1245
- 
1246
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'event_json') AS result
1247
- 
1248
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscription_events', 'created_at') AS result
1249
- 
1250
-  (1.5ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1251
-  (9.5ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" character varying NOT NULL)
1252
-  (5.4ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1253
-  (1.5ms) SELECT current_schema
1254
-  (1.9ms) SELECT a.attname AS column_name
1255
- FROM pg_catalog.pg_attribute a
1256
- WHERE a.attrelid = (
1257
- SELECT c.oid
1258
- FROM pg_catalog.pg_class c
1259
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1260
- WHERE c.relname OPERATOR(pg_catalog.~) '^(public_subscriptions)$'
1261
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1262
- )
1263
- AND a.attnum > 0 AND NOT a.attisdropped
1264
- ORDER BY a.attnum;
1265
- 
1266
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'id') AS result
1267
- 
1268
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'subscription_group_id') AS result
1269
- 
1270
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'event_type') AS result
1271
- 
1272
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'topic_name') AS result
1273
- 
1274
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'query') AS result
1275
- 
1276
-  (1.3ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'created_at') AS result
1277
- 
1278
-  (1.5ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'updated_at') AS result
1279
- 
1280
-  (1.4ms) SELECT pg_get_serial_sequence('public.public_subscriptions', 'schema_key') AS result
1281
- 
1282
-  (8.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1283
-  (1.4ms) SELECT current_schema
1284
-  (1.8ms) SELECT a.attname AS column_name
1285
- FROM pg_catalog.pg_attribute a
1286
- WHERE a.attrelid = (
1287
- SELECT c.oid
1288
- FROM pg_catalog.pg_class c
1289
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1290
- WHERE c.relname OPERATOR(pg_catalog.~) '^(schema_migrations)$'
1291
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1292
- )
1293
- AND a.attnum > 0 AND NOT a.attisdropped
1294
- ORDER BY a.attnum;
1295
- 
1296
-  (1.4ms) SELECT pg_get_serial_sequence('public.schema_migrations', 'version') AS result
1297
- 
1298
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1299
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1300
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
1301
- (20200604203932),
1302
- (20200303193414);
1303
-
1304
- 
1305
-  (8.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1306
-  (1.8ms) SELECT current_schema
1307
-  (1.9ms) SELECT a.attname AS column_name
1308
- FROM pg_catalog.pg_attribute a
1309
- WHERE a.attrelid = (
1310
- SELECT c.oid
1311
- FROM pg_catalog.pg_class c
1312
- LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
1313
- WHERE c.relname OPERATOR(pg_catalog.~) '^(ar_internal_metadata)$'
1314
- AND n.nspname OPERATOR(pg_catalog.~) '^(public)$'
1315
- )
1316
- AND a.attnum > 0 AND NOT a.attisdropped
1317
- ORDER BY a.attnum;
1318
- 
1319
-  (1.5ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'key') AS result
1320
- 
1321
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'value') AS result
1322
- 
1323
-  (1.3ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'created_at') AS result
1324
- 
1325
-  (1.2ms) SELECT pg_get_serial_sequence('public.ar_internal_metadata', 'updated_at') AS result
1326
- 
1327
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1328
-  (1.4ms) BEGIN
1329
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-11 15:17:44.979682"], ["updated_at", "2020-06-11 15:17:44.979682"]]
1330
-  (2.4ms) COMMIT
1331
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1332
-  (1.7ms) BEGIN
1333
- ActiveRecord::InternalMetadata Update (1.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-11 15:17:44.992037"], ["key", "environment"]]
1334
-  (2.1ms) COMMIT
1335
- SQL (2.7ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1336
- GraphqlApi::Models::PublicSubscription Load (2.6ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1337
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1338
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1339
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1340
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
1341
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1342
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1343
-  (1.2ms) BEGIN
1344
-  (1.5ms) SHOW statement_timeout
1345
-  (1.1ms) SET statement_timeout TO '0ms'
1346
-  (1.6ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1347
-  (4.7ms) ALTER TABLE "public_subscriptions" DROP COLUMN "schema_key"
1348
-  (1.2ms) SET statement_timeout TO '0'
1349
- ActiveRecord::SchemaMigration Destroy (1.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20200611150212"]]
1350
-  (1.9ms) COMMIT
1351
-  (1.1ms) SELECT pg_advisory_unlock(3732957763885691250)
1352
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1353
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1354
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1355
-  (1.9ms) SELECT pg_try_advisory_lock(3732957763885691250)
1356
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1357
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1358
-  (1.4ms) BEGIN
1359
-  (1.4ms) SHOW statement_timeout
1360
-  (1.3ms) SET statement_timeout TO '0ms'
1361
-  (1.8ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1362
-  (2.4ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1363
- SQL (2.4ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1364
- GraphqlApi::Models::PublicSubscription Load (2.0ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1365
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
1366
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1367
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1368
-  (1.3ms) BEGIN
1369
-  (1.3ms) SHOW statement_timeout
1370
-  (1.4ms) SET statement_timeout TO '0ms'
1371
-  (2.0ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1372
-  (2.6ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1373
-  (1.9ms) SET statement_timeout TO '0'
1374
-  (2.1ms) ROLLBACK
1375
-  (1.7ms) SELECT pg_advisory_unlock(3732957763885691250)
1376
- SQL (2.0ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1377
- GraphqlApi::Models::PublicSubscription Load (2.1ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1378
-  (1.2ms) SELECT pg_try_advisory_lock(3732957763885691250)
1379
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1380
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1381
-  (1.4ms) BEGIN
1382
-  (1.5ms) SHOW statement_timeout
1383
-  (1.3ms) SET statement_timeout TO '0ms'
1384
-  (1.8ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1385
-  (2.3ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1386
-  (2.1ms) UPDATE public_subscriptions SET schema_key = SPLIT_PART(event_type, '::', 1)
1387
-  (1.2ms) SET statement_timeout TO '0'
1388
-  (1.5ms) ROLLBACK
1389
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
1390
- SQL (3.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1391
- GraphqlApi::Models::PublicSubscription Load (2.7ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1392
-  (2.4ms) SELECT pg_try_advisory_lock(3732957763885691250)
1393
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1394
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1395
-  (1.7ms) BEGIN
1396
-  (1.6ms) SHOW statement_timeout
1397
-  (2.0ms) SET statement_timeout TO '0ms'
1398
-  (2.2ms) SELECT nspname FROM pg_namespace WHERE nspname !~ '^pg_.*' AND nspname NOT IN ('information_schema', 'extensions', 'londiste', 'pgq', 'pgq_ext', 'pgq_node') ORDER by nspname
1399
-  (2.0ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1400
-  (1.9ms) UPDATE public_subscriptions SET schema_key = SPLIT_PART(event_type, '::', 1)
1401
-  (3.1ms) ALTER TABLE "public_subscriptions" ALTER COLUMN "schema_key" TYPE text, ALTER COLUMN "schema_key" SET NOT NULL
1402
-  (1.3ms) SET statement_timeout TO '0'
1403
- ActiveRecord::SchemaMigration Create (2.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1404
-  (4.7ms) COMMIT
1405
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1406
-  (1.9ms) BEGIN
1407
-  (1.3ms) COMMIT
1408
-  (1.3ms) SELECT pg_advisory_unlock(3732957763885691250)
1409
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1410
- SQL (4.8ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1411
- GraphqlApi::Models::PublicSubscription Load (4.3ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1412
-  (1.5ms) SELECT pg_try_advisory_lock(3732957763885691250)
1413
-  (4.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1414
- ActiveRecord::InternalMetadata Load (3.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1415
-  (1.7ms) BEGIN
1416
-  (1.4ms) COMMIT
1417
-  (1.5ms) SELECT pg_advisory_unlock(3732957763885691250)
1418
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1419
-  (2.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1420
-  (443.4ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1421
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "citext"
1422
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1423
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1424
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1425
-  (2.5ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1426
-  (10.6ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1427
-  (3.8ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1428
-  (1.2ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1429
-  (6.3ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1430
-  (3.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1431
-  (9.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1432
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1433
-  (2.3ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1434
-  (1.5ms) INSERT INTO "schema_migrations" (version) VALUES
1435
- (20200604203932),
1436
- (20200303193414);
1437
-
1438
- 
1439
-  (8.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1440
- ActiveRecord::InternalMetadata Load (2.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1441
-  (1.7ms) BEGIN
1442
- ActiveRecord::InternalMetadata Create (2.9ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-24 19:38:19.086548"], ["updated_at", "2020-06-24 19:38:19.086548"]]
1443
-  (1.8ms) COMMIT
1444
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1445
-  (2.5ms) BEGIN
1446
- ActiveRecord::InternalMetadata Update (2.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-24 19:38:19.115578"], ["key", "environment"]]
1447
-  (2.6ms) COMMIT
1448
-  (340.7ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1449
-  (1.5ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1450
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "citext"
1451
- SQL (1.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1452
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1453
- SQL (1.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1454
-  (2.0ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1455
-  (13.3ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1456
-  (3.3ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1457
-  (1.1ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1458
-  (5.5ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1459
-  (3.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1460
-  (5.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1461
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1462
-  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1463
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
1464
- (20200604203932),
1465
- (20200303193414);
1466
-
1467
- 
1468
-  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1469
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1470
-  (1.0ms) BEGIN
1471
- ActiveRecord::InternalMetadata Create (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 18:43:10.061580"], ["updated_at", "2020-06-25 18:43:10.061580"]]
1472
-  (1.5ms) COMMIT
1473
- ActiveRecord::InternalMetadata Load (0.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1474
-  (2.1ms) BEGIN
1475
-  (1.5ms) COMMIT
1476
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
1477
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1478
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1479
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1480
-  (5.7ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1481
-  (9.8ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1482
-  (4.3ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1483
-  (3.4ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1484
-  (5.7ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1485
-  (3.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1486
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1487
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1488
-  (1.2ms) BEGIN
1489
- ActiveRecord::InternalMetadata Update (2.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2020-06-25 18:43:10.198067"], ["key", "environment"]]
1490
-  (1.8ms) COMMIT
1491
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1492
-  (1.4ms) BEGIN
1493
- ActiveRecord::InternalMetadata Update (1.3ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-25 18:43:10.208069"], ["key", "environment"]]
1494
-  (1.7ms) COMMIT
1495
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1496
- SQL (2.6ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1497
- NulogyMessageBusProducer::PublicSubscription Load (2.2ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1498
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1499
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1500
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1501
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1502
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1503
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1504
-  (121.6ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1505
-  (119.1ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1506
-  (314.8ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1507
-  (317.6ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1508
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "citext"
1509
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1510
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1511
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1512
-  (1.9ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1513
-  (9.3ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1514
-  (3.7ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1515
-  (1.3ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1516
-  (6.3ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1517
-  (4.5ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1518
-  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1519
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1520
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1521
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1522
- (20200604203932),
1523
- (20200303193414);
1524
-
1525
- 
1526
-  (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1527
- ActiveRecord::InternalMetadata Load (1.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1528
-  (1.5ms) BEGIN
1529
- ActiveRecord::InternalMetadata Create (1.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:07:28.084859"], ["updated_at", "2020-06-25 19:07:28.084859"]]
1530
-  (2.0ms) COMMIT
1531
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1532
-  (1.3ms) BEGIN
1533
-  (1.3ms) COMMIT
1534
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "citext"
1535
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1536
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1537
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1538
-  (1.5ms) DROP TABLE IF EXISTS "public_subscription_events" CASCADE
1539
-  (10.5ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1540
-  (3.6ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1541
-  (1.9ms) DROP TABLE IF EXISTS "public_subscriptions" CASCADE
1542
-  (6.2ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "schema_key" text NOT NULL)
1543
-  (3.4ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1544
-  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1545
-  (2.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1546
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1547
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1548
- (20200604203932),
1549
- (20200303193414);
1550
-
1551
- 
1552
-  (7.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1553
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1554
-  (1.2ms) BEGIN
1555
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:07:28.220975"], ["updated_at", "2020-06-25 19:07:28.220975"]]
1556
-  (1.6ms) COMMIT
1557
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1558
-  (1.2ms) BEGIN
1559
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-25 19:07:28.230198"], ["key", "environment"]]
1560
-  (1.7ms) COMMIT
1561
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1562
- SQL (2.6ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1563
- NulogyMessageBusProducer::PublicSubscription Load (2.2ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1564
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1565
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1566
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1567
-  (2.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1568
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1569
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1570
-  (113.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1571
-  (116.3ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1572
-  (323.1ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1573
-  (312.3ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1574
- SQL (2.3ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1575
-  (10.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1576
-  (5.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1577
-  (1.3ms) SELECT pg_try_advisory_lock(3053653019973222135)
1578
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1579
- Migrating to AddPublicSubscriptions (20200303193414)
1580
-  (2.3ms) BEGIN
1581
-  (2.5ms) ROLLBACK
1582
-  (1.7ms) SELECT pg_advisory_unlock(3053653019973222135)
1583
- SQL (2.5ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1584
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1585
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1586
-  (111.6ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1587
-  (117.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1588
-  (320.2ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1589
-  (295.5ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1590
- SQL (2.4ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1591
-  (8.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1592
-  (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1593
-  (1.1ms) SELECT pg_try_advisory_lock(3053653019973222135)
1594
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1595
- Migrating to AddPublicSubscriptions (20200303193414)
1596
-  (1.4ms) BEGIN
1597
-  (6.4ms) CREATE TABLE "public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1598
-  (3.6ms) CREATE INDEX "index_public_subscriptions_on_event_type" ON "public_subscriptions" ("event_type")
1599
-  (5.8ms) CREATE TABLE "public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1600
-  (3.6ms) CREATE INDEX "index_public_subscription_events_on_created_at" ON "public_subscription_events" ("created_at")
1601
- ActiveRecord::SchemaMigration Create (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200303193414"]]
1602
-  (1.8ms) COMMIT
1603
- Migrating to UpdateSubscriptionsToUseId (20200604203932)
1604
-  (1.2ms) BEGIN
1605
-  (1.4ms)  UPDATE public_subscriptions
1606
- SET query = REGEXP_REPLACE(query, '(W)uuid(W)', 'id', 'g')
1607
- 
1608
- ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200604203932"]]
1609
-  (2.1ms) COMMIT
1610
- Migrating to AddSchemaKeyToPublicSubscriptions (20200611150212)
1611
-  (1.4ms) BEGIN
1612
-  (1.9ms) ALTER TABLE "public_subscriptions" ADD "schema_key" text
1613
-  (1.8ms) UPDATE public_subscriptions
1614
- SET schema_key = SPLIT_PART(event_type, '::', 1),
1615
- event_type = SPLIT_PART(event_type, '::', 2)
1616
- 
1617
-  (1.5ms) ALTER TABLE "public_subscriptions" ALTER COLUMN "schema_key" TYPE text, ALTER COLUMN "schema_key" SET NOT NULL
1618
- ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1619
-  (1.6ms) COMMIT
1620
- ActiveRecord::InternalMetadata Load (1.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1621
-  (1.5ms) BEGIN
1622
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:24:21.527611"], ["updated_at", "2020-06-25 19:24:21.527611"]]
1623
-  (1.4ms) COMMIT
1624
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
1625
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1626
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1627
- NulogyMessageBusProducer::PublicSubscription Load (2.4ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1628
-  (1.2ms) SELECT pg_try_advisory_lock(3053653019973222135)
1629
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1630
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1631
-  (1.5ms) BEGIN
1632
-  (1.2ms) COMMIT
1633
-  (1.3ms) SELECT pg_advisory_unlock(3053653019973222135)
1634
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1635
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1636
- NulogyMessageBusProducer::PublicSubscription Load (1.9ms) SELECT "public_subscriptions".* FROM "public_subscriptions"
1637
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1638
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1639
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1640
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1641
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1642
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1643
-  (120.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1644
-  (113.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1645
-  (318.0ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1646
-  (315.1ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1647
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1648
-  (10.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1649
-  (6.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1650
-  (1.3ms) SELECT pg_try_advisory_lock(3053653019973222135)
1651
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1652
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1653
-  (1.4ms) SELECT pg_advisory_unlock(3053653019973222135)
1654
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1655
- SQL (2.1ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1656
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
1657
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1658
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1659
-  (1.3ms) BEGIN
1660
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1661
-  (6.9ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1662
-  (2.9ms) ROLLBACK
1663
-  (1.6ms) SELECT pg_advisory_unlock(3053653019973222135)
1664
- SQL (2.1ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1665
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
1666
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1667
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1668
-  (1.2ms) BEGIN
1669
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1670
-  (7.0ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1671
-  (1.7ms) ROLLBACK
1672
-  (1.2ms) SELECT pg_advisory_unlock(3053653019973222135)
1673
- SQL (1.9ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1674
-  (1.6ms) SELECT pg_try_advisory_lock(3053653019973222135)
1675
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1676
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1677
-  (1.1ms) BEGIN
1678
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1679
-  (7.2ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1680
-  (1.4ms) ROLLBACK
1681
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
1682
- SQL (1.9ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1683
-  (1.5ms) SELECT pg_try_advisory_lock(3053653019973222135)
1684
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1685
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1686
-  (1.4ms) BEGIN
1687
- SQL (2.2ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1688
-  (7.0ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1689
-  (3.2ms) CREATE INDEX "index_nulogy_mb_producer_public_subscriptions_on_event_type" ON "nulogy_message_bus_producer_public_subscriptions" ("event_type")
1690
-  (5.0ms) CREATE TABLE "nulogy_message_bus_producer_public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1691
-  (1.8ms) ROLLBACK
1692
-  (1.9ms) SELECT pg_advisory_unlock(3053653019973222135)
1693
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1694
-  (1.5ms) SELECT pg_try_advisory_lock(3053653019973222135)
1695
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1696
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1697
-  (1.1ms) BEGIN
1698
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1699
-  (7.4ms) CREATE TABLE "nulogy_message_bus_producer_public_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1700
-  (2.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "nulogy_message_bus_producer_public_subscriptions" ("event_type")
1701
-  (6.3ms) CREATE TABLE "nulogy_message_bus_producer_public_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1702
-  (3.1ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "nulogy_message_bus_producer_public_subscription_events" ("created_at")
1703
- ActiveRecord::SchemaMigration Create (1.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1704
-  (2.5ms) COMMIT
1705
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1706
-  (1.1ms) BEGIN
1707
- ActiveRecord::InternalMetadata Create (1.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 19:54:32.371335"], ["updated_at", "2020-06-25 19:54:32.371335"]]
1708
-  (1.5ms) COMMIT
1709
-  (0.9ms) SELECT pg_advisory_unlock(3053653019973222135)
1710
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1711
- SQL (2.2ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1712
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1713
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1714
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1715
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1716
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1717
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1718
-  (114.9ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
1719
-  (116.5ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1720
-  (319.5ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1721
-  (301.0ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1722
-  (7.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1723
-  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1724
-  (1.2ms) SELECT pg_try_advisory_lock(3053653019973222135)
1725
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1726
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
1727
-  (1.3ms) BEGIN
1728
- SQL (2.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1729
-  (5.9ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1730
-  (2.8ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1731
-  (5.5ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1732
-  (3.2ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1733
- ActiveRecord::SchemaMigration Create (1.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
1734
-  (2.0ms) COMMIT
1735
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1736
-  (1.5ms) BEGIN
1737
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 20:02:34.049808"], ["updated_at", "2020-06-25 20:02:34.049808"]]
1738
-  (1.9ms) COMMIT
1739
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
1740
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1741
- SQL (2.3ms) SELECT tablename FROM pg_tables WHERE tablename = 'public_subscriptions' AND schemaname = 'public';
1742
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1743
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1744
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1745
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1746
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1747
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1748
-  (117.1ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1749
-  (299.7ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8' TEMPLATE = "template_packmanager"
1750
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "citext"
1751
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1752
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1753
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1754
-  (1.5ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1755
-  (9.0ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1756
-  (3.6ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1757
-  (1.5ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1758
-  (5.7ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1759
-  (3.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1760
-  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1761
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1762
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20200611150212)
1763
-  (5.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1764
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1765
-  (1.5ms) BEGIN
1766
- ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-06-25 20:05:37.681460"], ["updated_at", "2020-06-25 20:05:37.681460"]]
1767
-  (1.9ms) COMMIT
1768
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1769
-  (1.1ms) BEGIN
1770
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-06-25 20:05:37.691325"], ["key", "environment"]]
1771
-  (1.8ms) COMMIT
1772
-  (410.1ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
1773
-  (328.2ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
1774
- SQL (3.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1775
- SQL (44.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1776
-  (2.8ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1777
-  (19.5ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1778
-  (4.6ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1779
-  (1.4ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1780
-  (6.4ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1781
-  (3.4ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1782
-  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1783
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1784
-  (2.8ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
1785
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES
1786
- (20201005164117),
1787
- (20201005164116),
1788
- (20200611150212),
1789
- (20201005150212);
1790
-
1791
- 
1792
-  (7.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1793
- ActiveRecord::InternalMetadata Load (2.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1794
-  (1.6ms) BEGIN
1795
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:48:30.647330"], ["updated_at", "2020-10-07 15:48:30.647330"]]
1796
-  (1.7ms) COMMIT
1797
- ActiveRecord::InternalMetadata Load (1.8ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1798
-  (1.7ms) BEGIN
1799
-  (1.8ms) COMMIT
1800
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1801
- SQL (7.5ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1802
-  (1.7ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1803
-  (8.8ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1804
-  (3.4ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1805
-  (1.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1806
-  (5.6ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1807
-  (4.1ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1808
-  (8.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1809
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1810
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
1811
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES
1812
- (20201005164117),
1813
- (20201005164116),
1814
- (20200611150212),
1815
- (20201005150212);
1816
-
1817
- 
1818
-  (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1819
- ActiveRecord::InternalMetadata Load (1.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1820
-  (1.0ms) BEGIN
1821
- ActiveRecord::InternalMetadata Create (1.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:48:30.787108"], ["updated_at", "2020-10-07 15:48:30.787108"]]
1822
-  (1.4ms) COMMIT
1823
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1824
-  (1.1ms) BEGIN
1825
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 15:48:30.794431"], ["key", "environment"]]
1826
-  (1.4ms) COMMIT
1827
-  (1.3ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
1828
-  (1.6ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
1829
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1830
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1831
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1832
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1833
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1834
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1835
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1836
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1837
-  (4.4ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1838
-  (7.8ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1839
-  (3.4ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1840
-  (3.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1841
-  (6.5ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1842
-  (3.5ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1843
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1844
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1845
-  (1.5ms) BEGIN
1846
-  (1.6ms) COMMIT
1847
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1848
-  (1.4ms) BEGIN
1849
-  (1.2ms) COMMIT
1850
- SQL (1.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1851
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1852
-  (4.2ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1853
-  (7.1ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1854
-  (3.3ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1855
-  (3.0ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1856
-  (6.4ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1857
-  (4.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1858
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1859
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1860
-  (1.2ms) BEGIN
1861
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2020-10-07 15:53:28.600948"], ["key", "environment"]]
1862
-  (1.6ms) COMMIT
1863
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1864
-  (1.2ms) BEGIN
1865
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 15:53:28.609152"], ["key", "environment"]]
1866
-  (1.7ms) COMMIT
1867
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1868
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1869
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1870
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1871
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1872
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1873
-  (115.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
1874
-  (313.3ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
1875
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1876
- SQL (5.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1877
-  (1.6ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1878
-  (20.6ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1879
-  (3.8ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1880
-  (1.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1881
-  (6.7ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1882
-  (3.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1883
-  (5.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1884
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1885
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
1886
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES
1887
- (20201005164117),
1888
- (20201005164116),
1889
- (20200611150212),
1890
- (20201005150212);
1891
-
1892
- 
1893
-  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1894
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1895
-  (1.3ms) BEGIN
1896
- ActiveRecord::InternalMetadata Create (1.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:53:54.354290"], ["updated_at", "2020-10-07 15:53:54.354290"]]
1897
-  (1.9ms) COMMIT
1898
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1899
-  (1.2ms) BEGIN
1900
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 15:53:54.364764"], ["key", "environment"]]
1901
-  (1.9ms) COMMIT
1902
-  (1.9ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
1903
-  (104.6ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
1904
- SQL (3.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1905
- SQL (7.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1906
-  (2.0ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1907
-  (7.7ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1908
-  (3.3ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1909
-  (1.4ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1910
-  (5.9ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1911
-  (4.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1912
-  (5.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1913
-  (1.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1914
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
1915
-  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES
1916
- (20201005164117),
1917
- (20201005164116),
1918
- (20200611150212),
1919
- (20201005150212);
1920
-
1921
- 
1922
-  (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1923
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1924
-  (1.9ms) BEGIN
1925
- ActiveRecord::InternalMetadata Create (2.0ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:59:07.619367"], ["updated_at", "2020-10-07 15:59:07.619367"]]
1926
-  (1.9ms) COMMIT
1927
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1928
-  (1.2ms) BEGIN
1929
-  (1.3ms) COMMIT
1930
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1931
- SQL (6.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1932
-  (1.4ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1933
-  (9.0ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1934
-  (3.3ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1935
-  (1.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1936
-  (5.7ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1937
-  (3.2ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1938
-  (7.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1939
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1940
-  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
1941
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
1942
- (20201005164117),
1943
- (20201005164116),
1944
- (20200611150212),
1945
- (20201005150212);
1946
-
1947
- 
1948
-  (7.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1949
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1950
-  (1.0ms) BEGIN
1951
- ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:59:07.749654"], ["updated_at", "2020-10-07 15:59:07.749654"]]
1952
-  (2.4ms) COMMIT
1953
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1954
-  (1.1ms) BEGIN
1955
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 15:59:07.758768"], ["key", "environment"]]
1956
-  (1.7ms) COMMIT
1957
-  (1.7ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
1958
-  (2.5ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
1959
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1960
-  (1.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1961
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1962
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1963
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1964
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1965
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1966
- SQL (1.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1967
-  (4.1ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1968
-  (8.3ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1969
-  (4.2ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1970
-  (3.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1971
-  (6.5ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1972
-  (3.5ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1973
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1974
- ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1975
-  (1.6ms) BEGIN
1976
-  (1.4ms) COMMIT
1977
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1978
-  (2.3ms) BEGIN
1979
-  (1.4ms) COMMIT
1980
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1981
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
1982
-  (4.1ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
1983
-  (7.5ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
1984
-  (3.7ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
1985
-  (2.5ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
1986
-  (5.8ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
1987
-  (3.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
1988
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1989
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1990
-  (1.2ms) BEGIN
1991
- ActiveRecord::InternalMetadata Update (1.4ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2020-10-07 16:02:19.118218"], ["key", "environment"]]
1992
-  (2.0ms) COMMIT
1993
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1994
-  (1.3ms) BEGIN
1995
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 16:02:19.127263"], ["key", "environment"]]
1996
-  (2.5ms) COMMIT
1997
-  (2.0ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
1998
-  (1.9ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
1999
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2000
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2001
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2002
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2003
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2004
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2005
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2006
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2007
-  (3.7ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2008
-  (6.2ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2009
-  (3.3ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2010
-  (2.6ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2011
-  (6.2ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2012
-  (4.4ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2013
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2014
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2015
-  (1.1ms) BEGIN
2016
-  (1.1ms) COMMIT
2017
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2018
-  (1.5ms) BEGIN
2019
-  (1.1ms) COMMIT
2020
- SQL (1.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2021
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2022
-  (4.4ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2023
-  (7.6ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2024
-  (3.4ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2025
-  (3.1ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2026
-  (6.4ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2027
-  (3.4ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2028
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2029
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2030
-  (1.5ms) BEGIN
2031
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2020-10-07 16:02:39.454033"], ["key", "environment"]]
2032
-  (1.8ms) COMMIT
2033
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2034
-  (1.3ms) BEGIN
2035
- ActiveRecord::InternalMetadata Update (1.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 16:02:39.463388"], ["key", "environment"]]
2036
-  (2.0ms) COMMIT
2037
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2038
-  (1.6ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2039
-  (2.3ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2040
-  (2.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2041
-  (2.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2042
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2043
-  (2.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2044
-  (2.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2045
-  (5.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2046
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2047
- SQL (1.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2048
-  (8.3ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2049
-  (16.2ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2050
-  (5.4ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2051
-  (6.0ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2052
-  (15.8ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2053
-  (8.4ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2054
-  (3.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2055
- ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2056
-  (2.7ms) BEGIN
2057
-  (2.9ms) COMMIT
2058
- ActiveRecord::InternalMetadata Load (4.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2059
-  (3.8ms) BEGIN
2060
-  (2.0ms) COMMIT
2061
- SQL (4.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2062
- SQL (3.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2063
-  (9.0ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2064
-  (10.3ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2065
-  (9.5ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2066
-  (7.8ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2067
-  (9.8ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2068
-  (7.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2069
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2070
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
2071
-  (2.9ms) INSERT INTO "schema_migrations" (version) VALUES
2072
- (20201005164117),
2073
- (20201005164116),
2074
- (20200611150212),
2075
- (20201005150212);
2076
-
2077
- 
2078
- ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2079
-  (1.9ms) BEGIN
2080
- ActiveRecord::InternalMetadata Create (5.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:12:35.296503"], ["updated_at", "2020-10-07 20:12:35.296503"]]
2081
-  (4.9ms) COMMIT
2082
- ActiveRecord::InternalMetadata Load (2.6ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2083
-  (2.4ms) BEGIN
2084
- ActiveRecord::InternalMetadata Update (2.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 20:12:35.321226"], ["key", "environment"]]
2085
-  (3.7ms) COMMIT
2086
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2087
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2088
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2089
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2090
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2091
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2092
-  (17.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
2093
-  (1.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2094
-  (1.8ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
2095
-  (21.6ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2096
-  (153.7ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2097
-  (127.1ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2098
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2099
- SQL (21.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2100
-  (1.8ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2101
-  (13.1ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2102
-  (4.9ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2103
-  (1.9ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2104
-  (10.9ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2105
-  (6.7ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2106
-  (9.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2107
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2108
-  (2.5ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
2109
-  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES
2110
- (20201005164117),
2111
- (20201005164116),
2112
- (20200611150212),
2113
- (20201005150212);
2114
-
2115
- 
2116
-  (8.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2117
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2118
-  (2.6ms) BEGIN
2119
- ActiveRecord::InternalMetadata Create (2.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:26:17.154304"], ["updated_at", "2020-10-07 20:26:17.154304"]]
2120
-  (2.9ms) COMMIT
2121
- ActiveRecord::InternalMetadata Load (1.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2122
-  (3.7ms) BEGIN
2123
-  (2.4ms) COMMIT
2124
- SQL (2.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2125
- SQL (8.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2126
-  (2.3ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2127
-  (15.1ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2128
-  (9.2ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2129
-  (4.9ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2130
-  (9.5ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2131
-  (4.9ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2132
-  (13.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2133
-  (5.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2134
-  (3.8ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164141)
2135
-  (3.2ms) INSERT INTO "schema_migrations" (version) VALUES
2136
- (20201005164117),
2137
- (20201005164116),
2138
- (20200611150212),
2139
- (20201005150212);
2140
-
2141
- 
2142
-  (12.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2143
- ActiveRecord::InternalMetadata Load (2.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2144
-  (1.9ms) BEGIN
2145
- ActiveRecord::InternalMetadata Create (2.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:26:17.388400"], ["updated_at", "2020-10-07 20:26:17.388400"]]
2146
-  (3.1ms) COMMIT
2147
- ActiveRecord::InternalMetadata Load (2.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2148
-  (2.5ms) BEGIN
2149
- ActiveRecord::InternalMetadata Update (3.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 20:26:17.406447"], ["key", "environment"]]
2150
-  (4.2ms) COMMIT
2151
-  (2.0ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2152
-  (1.9ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2153
-  (12.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2154
-  (2.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2155
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2156
-  (2.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2157
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2158
-  (2.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2159
- SQL (5.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2160
- SQL (2.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2161
-  (7.8ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2162
-  (10.9ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2163
-  (5.5ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2164
-  (7.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2165
-  (13.1ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2166
-  (5.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2167
-  (5.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2168
- ActiveRecord::InternalMetadata Load (2.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2169
-  (2.9ms) BEGIN
2170
-  (3.2ms) COMMIT
2171
- ActiveRecord::InternalMetadata Load (5.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2172
-  (4.2ms) BEGIN
2173
-  (2.2ms) COMMIT
2174
- SQL (2.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2175
- SQL (2.4ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2176
-  (10.6ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2177
-  (19.4ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2178
-  (5.0ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2179
-  (4.6ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2180
-  (12.3ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2181
-  (7.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2182
-  (5.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2183
- ActiveRecord::InternalMetadata Load (3.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2184
-  (2.8ms) BEGIN
2185
- ActiveRecord::InternalMetadata Update (3.0ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "development"], ["updated_at", "2020-10-07 20:27:27.952213"], ["key", "environment"]]
2186
-  (5.4ms) COMMIT
2187
- ActiveRecord::InternalMetadata Load (4.7ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2188
-  (3.4ms) BEGIN
2189
- ActiveRecord::InternalMetadata Update (3.6ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-07 20:27:27.978791"], ["key", "environment"]]
2190
-  (4.4ms) COMMIT
2191
-  (3.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2192
-  (3.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2193
-  (2.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2194
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2195
-  (1.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2196
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2197
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2198
-  (35.5ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
2199
-  (2.1ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2200
-  (2.1ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
2201
-  (22.8ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2202
-  (188.2ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2203
-  (122.6ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2204
-  (9.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2205
-  (5.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2206
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
2207
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2208
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
2209
-  (2.4ms) BEGIN
2210
- SQL (12.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2211
-  (9.7ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2212
-  (4.0ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2213
-  (7.6ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2214
-  (4.6ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2215
- ActiveRecord::SchemaMigration Create (2.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
2216
-  (3.7ms) COMMIT
2217
- Migrating to RenameTenantIdAndPublic (20201005150212)
2218
-  (3.2ms) BEGIN
2219
-  (3.8ms) ALTER TABLE "message_bus_subscription_events" RENAME COLUMN "tenant_id" TO "company_uuid"
2220
-  (2.2ms) ALTER TABLE "message_bus_subscription_events" RENAME COLUMN "public_subscription_id" TO "subscription_id"
2221
- ActiveRecord::SchemaMigration Create (1.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20201005150212"]]
2222
-  (2.0ms) COMMIT
2223
- Migrating to CreateActiveStorageTables (20201005164116)
2224
-  (1.4ms) BEGIN
2225
- ActiveRecord::SchemaMigration Create (2.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20201005164116"]]
2226
-  (3.1ms) COMMIT
2227
- ActiveRecord::InternalMetadata Load (2.9ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2228
-  (2.3ms) BEGIN
2229
- ActiveRecord::InternalMetadata Create (7.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:34:57.122757"], ["updated_at", "2020-10-07 20:34:57.122757"]]
2230
-  (2.9ms) COMMIT
2231
-  (2.0ms) SELECT pg_advisory_unlock(3053653019973222135)
2232
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2233
-  (1.2ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2234
-  (1.8ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2235
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2236
-  (2.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2237
-  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2238
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2239
-  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2240
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2241
- SQL (2.0ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2242
- SQL (1.3ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2243
-  (7.8ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2244
-  (17.2ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2245
-  (3.0ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2246
-  (2.4ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2247
-  (3.8ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2248
-  (2.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2249
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2250
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2251
-  (1.0ms) BEGIN
2252
-  (1.3ms) COMMIT
2253
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2254
-  (1.1ms) BEGIN
2255
-  (0.9ms) COMMIT
2256
- SQL (1.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2257
- SQL (13.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2258
-  (2.4ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2259
-  (17.5ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2260
-  (2.8ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2261
-  (1.1ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2262
-  (4.7ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2263
-  (2.8ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2264
-  (4.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2265
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2266
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164116)
2267
-  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES
2268
- (20200611150212),
2269
- (20201005150212);
2270
-
2271
- 
2272
-  (4.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2273
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2274
-  (1.1ms) BEGIN
2275
- ActiveRecord::InternalMetadata Create (1.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2020-10-08 19:11:47.210016"], ["updated_at", "2020-10-08 19:11:47.210016"]]
2276
-  (1.5ms) COMMIT
2277
- ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2278
-  (0.9ms) BEGIN
2279
- ActiveRecord::InternalMetadata Update (1.1ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2020-10-08 19:11:47.218022"], ["key", "environment"]]
2280
-  (1.3ms) COMMIT
2281
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2282
-  (176.5ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2283
-  (2.4ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2284
- SQL (2.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2285
- SQL (34.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2286
-  (2.2ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2287
-  (12.0ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2288
-  (8.3ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2289
-  (1.5ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2290
-  (6.1ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2291
-  (3.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2292
-  (5.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2293
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2294
-  (2.0ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164116)
2295
-  (1.7ms) INSERT INTO "schema_migrations" (version) VALUES
2296
- (20200611150212),
2297
- (20201005150212);
2298
-
2299
- 
2300
-  (5.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2301
- ActiveRecord::InternalMetadata Load (1.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2302
-  (1.0ms) BEGIN
2303
- ActiveRecord::InternalMetadata Create (2.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-03-09 17:25:53.335828"], ["updated_at", "2021-03-09 17:25:53.335828"]]
2304
-  (1.6ms) COMMIT
2305
- ActiveRecord::InternalMetadata Load (2.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2306
-  (1.1ms) BEGIN
2307
-  (1.0ms) COMMIT
2308
- SQL (2.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2309
- SQL (24.8ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2310
-  (2.0ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2311
-  (30.7ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2312
-  (5.5ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2313
-  (1.3ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2314
-  (6.6ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2315
-  (5.2ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2316
-  (6.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2317
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2318
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164116)
2319
-  (2.1ms) INSERT INTO "schema_migrations" (version) VALUES
2320
- (20200611150212),
2321
- (20201005150212);
2322
-
2323
- 
2324
-  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2325
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2326
-  (0.8ms) BEGIN
2327
- ActiveRecord::InternalMetadata Create (1.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-03-09 17:25:53.524890"], ["updated_at", "2021-03-09 17:25:53.524890"]]
2328
-  (1.5ms) COMMIT
2329
- ActiveRecord::InternalMetadata Load (1.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2330
-  (1.0ms) BEGIN
2331
- ActiveRecord::InternalMetadata Update (1.2ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-03-09 17:25:53.533488"], ["key", "environment"]]
2332
-  (1.6ms) COMMIT
2333
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2334
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
2335
-  (5.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2336
- Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
2337
-  (2.0ms) BEGIN
2338
-  (8.7ms) ALTER TABLE "message_bus_subscriptions" ADD "event_type" text
2339
-  (2.0ms) ROLLBACK
2340
-  (2.1ms) SELECT pg_advisory_unlock(3053653019973222135)
2341
-  (1.9ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2342
-  (1.8ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2343
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2344
-  (3.0ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2345
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2346
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2347
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2348
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2349
- SQL (3.8ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2350
- SQL (1.6ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2351
-  (8.9ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2352
-  (21.9ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2353
-  (4.3ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2354
-  (3.0ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2355
-  (6.1ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2356
-  (3.6ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2357
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2358
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2359
-  (1.5ms) BEGIN
2360
-  (1.6ms) COMMIT
2361
- ActiveRecord::InternalMetadata Load (1.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2362
-  (1.7ms) BEGIN
2363
-  (1.4ms) COMMIT
2364
- SQL (4.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2365
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2366
-  (16.8ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2367
-  (22.6ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2368
-  (4.5ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2369
-  (4.2ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2370
-  (8.6ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2371
-  (4.1ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2372
-  (3.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2373
-  (5.9ms) INSERT INTO "schema_migrations" (version) VALUES (20201005164116)
2374
-  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES
2375
- (20200611150212),
2376
- (20201005150212);
2377
-
2378
- 
2379
- ActiveRecord::InternalMetadata Load (3.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2380
-  (2.0ms) BEGIN
2381
- ActiveRecord::InternalMetadata Create (3.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-03-30 20:52:23.588828"], ["updated_at", "2021-03-30 20:52:23.588828"]]
2382
-  (3.0ms) COMMIT
2383
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2384
-  (1.5ms) BEGIN
2385
- ActiveRecord::InternalMetadata Update (1.8ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-03-30 20:52:23.604948"], ["key", "environment"]]
2386
-  (2.3ms) COMMIT
2387
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2388
-  (1.1ms) SELECT pg_try_advisory_lock(3053653019973222135)
2389
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2390
- Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
2391
-  (1.5ms) BEGIN
2392
-  (2.8ms) ALTER TABLE "message_bus_subscriptions" ADD "event_type" text
2393
-  (1.6ms) ROLLBACK
2394
-  (1.6ms) SELECT pg_advisory_unlock(3053653019973222135)
2395
-  (1.5ms) SELECT pg_try_advisory_lock(3053653019973222135)
2396
-  (2.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2397
- Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
2398
-  (1.6ms) BEGIN
2399
-  (3.1ms) ALTER TABLE "message_bus_subscriptions" ADD "event_type" text
2400
-  (1.6ms) ROLLBACK
2401
-  (2.4ms) SELECT pg_advisory_unlock(3053653019973222135)
2402
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2403
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2404
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2405
-  (1.2ms) SELECT pg_try_advisory_lock(3053653019973222135)
2406
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2407
- Migrating to CreateActiveStorageTables (20201005164116)
2408
-  (1.2ms) BEGIN
2409
- ActiveRecord::SchemaMigration Destroy (2.7ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20201005164116"]]
2410
-  (5.3ms) COMMIT
2411
-  (1.4ms) SELECT pg_advisory_unlock(3053653019973222135)
2412
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2413
-  (1.1ms) SELECT pg_try_advisory_lock(3053653019973222135)
2414
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2415
- Migrating to CreateActiveStorageTables (20201005164116)
2416
-  (1.5ms) BEGIN
2417
- ActiveRecord::SchemaMigration Create (1.7ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20201005164116"]]
2418
-  (2.7ms) COMMIT
2419
- Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
2420
-  (1.7ms) BEGIN
2421
-  (3.3ms) ALTER TABLE "message_bus_subscriptions" ADD "event_type" text
2422
-  (1.5ms) ROLLBACK
2423
-  (1.5ms) SELECT pg_advisory_unlock(3053653019973222135)
2424
-  (2.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2425
-  (1.7ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2426
-  (1.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2427
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2428
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2429
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2430
-  (24.4ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"
2431
-  (1.8ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2432
-  (248.6ms) CREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'
2433
-  (1.9ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2434
-  (16.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2435
-  (10.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2436
-  (1.3ms) SELECT pg_try_advisory_lock(3053653019973222135)
2437
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2438
- Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
2439
-  (1.5ms) BEGIN
2440
- SQL (7.7ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2441
-  (6.6ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2442
-  (3.3ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2443
-  (5.9ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "public_subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "tenant_id" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp)
2444
-  (3.2ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2445
- ActiveRecord::SchemaMigration Create (2.0ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200611150212"]]
2446
-  (2.9ms) COMMIT
2447
- Migrating to RenameTenantIdAndPublic (20201005150212)
2448
-  (1.2ms) BEGIN
2449
-  (2.3ms) ALTER TABLE "message_bus_subscription_events" RENAME COLUMN "tenant_id" TO "company_uuid"
2450
-  (1.5ms) ALTER TABLE "message_bus_subscription_events" RENAME COLUMN "public_subscription_id" TO "subscription_id"
2451
- ActiveRecord::SchemaMigration Create (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20201005150212"]]
2452
-  (1.8ms) COMMIT
2453
- Migrating to CreateActiveStorageTables (20201005164116)
2454
-  (1.4ms) BEGIN
2455
- ActiveRecord::SchemaMigration Create (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20201005164116"]]
2456
-  (1.8ms) COMMIT
2457
- Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
2458
-  (1.9ms) BEGIN
2459
-  (2.2ms) ALTER TABLE "message_bus_subscriptions" ADD "event_type" text
2460
-  (1.3ms) ROLLBACK
2461
-  (1.6ms) SELECT pg_advisory_unlock(3053653019973222135)
2462
-  (1.4ms) SELECT pg_try_advisory_lock(3053653019973222135)
2463
-  (2.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2464
- Migrating to AddEventTypeToSubscriptionEvents (20210330204121)
2465
-  (1.7ms) BEGIN
2466
-  (2.3ms) ALTER TABLE "message_bus_subscription_events" ADD "event_type" text
2467
- ActiveRecord::SchemaMigration Create (2.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20210330204121"]]
2468
-  (2.3ms) COMMIT
2469
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2470
-  (1.5ms) BEGIN
2471
- ActiveRecord::InternalMetadata Create (2.8ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-03-31 14:32:42.969683"], ["updated_at", "2021-03-31 14:32:42.969683"]]
2472
-  (1.8ms) COMMIT
2473
-  (1.2ms) SELECT pg_advisory_unlock(3053653019973222135)
2474
-  (1.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2475
-  (4.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2476
-  (4.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2477
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2478
-  (1.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2479
-  (1.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2480
-  (1.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2481
-  (3.0ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2482
-  (2.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2483
-  (1.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2484
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2485
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2486
-  (1.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2487
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2488
-  (1.9ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2489
-  (5.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2490
-  (4.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2491
-  (1.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2492
-  (1.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2493
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2494
-  (1.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2495
-  (3.0ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2496
-  (4.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2497
-  (2.8ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2498
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2499
-  (1.6ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2500
-  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2501
-  (2.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
2502
-  (23.2ms) DROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"
2503
-  (223.2ms) CREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'
2504
- SQL (1.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2505
- SQL (7.9ms) CREATE EXTENSION IF NOT EXISTS "uuid-ossp"
2506
-  (1.6ms) DROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE
2507
-  (8.8ms) CREATE TABLE "message_bus_subscription_events" ("id" uuid NOT NULL PRIMARY KEY, "subscription_id" uuid NOT NULL, "partition_key" character varying NOT NULL, "topic_name" character varying NOT NULL, "company_uuid" uuid NOT NULL, "event_json" json NOT NULL, "created_at" timestamp, "event_type" text)
2508
-  (3.8ms) CREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")
2509
-  (1.4ms) DROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE
2510
-  (5.9ms) CREATE TABLE "message_bus_subscriptions" ("id" uuid NOT NULL PRIMARY KEY, "subscription_group_id" uuid NOT NULL, "event_type" character varying NOT NULL, "topic_name" character varying NOT NULL, "query" character varying NOT NULL, "schema_key" text NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2511
-  (3.8ms) CREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")
2512
-  (6.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2513
-  (1.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2514
-  (1.9ms) INSERT INTO "schema_migrations" (version) VALUES (20210330204121)
2515
-  (2.2ms) INSERT INTO "schema_migrations" (version) VALUES
2516
- (20201005164116),
2517
- (20200611150212),
2518
- (20201005150212);
2519
-
2520
- 
2521
-  (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
2522
- ActiveRecord::InternalMetadata Load (2.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2523
-  (1.4ms) BEGIN
2524
- ActiveRecord::InternalMetadata Create (1.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "development"], ["created_at", "2021-03-31 17:26:56.186267"], ["updated_at", "2021-03-31 17:26:56.186267"]]
2525
-  (1.8ms) COMMIT
2526
- ActiveRecord::InternalMetadata Load (1.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2527
-  (1.3ms) BEGIN
2528
- ActiveRecord::InternalMetadata Update (1.5ms) UPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3 [["value", "test"], ["updated_at", "2021-03-31 17:26:56.197348"], ["key", "environment"]]
2529
-  (1.7ms) COMMIT
2530
- NulogyMessageBusProducer::SubscriptionEvent Load (3.6ms) SELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2 [["id", "052ccd7d-fcb8-4779-a431-edcd07c6f9f2"], ["LIMIT", 1]]
2531
-  (1.5ms) BEGIN
2532
- NulogyMessageBusProducer::SubscriptionEvent Create (2.1ms) INSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", "052ccd7d-fcb8-4779-a431-edcd07c6f9f2"], ["subscription_id", "b7431c4b-6ba1-48de-9089-0d551a0b2289"], ["partition_key", "d42fd0ff-5f7c-4479-a555-275ad4a3d9ba"], ["topic_name", "some-topic"], ["company_uuid", "d42fd0ff-5f7c-4479-a555-275ad4a3d9ba"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:13:57.002078"], ["event_type", "some-type"]]
2533
-  (2.9ms) COMMIT
2534
- NulogyMessageBusProducer::SubscriptionEvent Load (2.9ms) SELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2 [["id", "4301a9a9-410d-4906-a308-3f2e2a716481"], ["LIMIT", 1]]
2535
-  (1.9ms) BEGIN
2536
- NulogyMessageBusProducer::SubscriptionEvent Create (1.9ms) INSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", "4301a9a9-410d-4906-a308-3f2e2a716481"], ["subscription_id", "af99e3c4-e8da-4650-8429-a093d57e28c5"], ["partition_key", "43c04d27-3b88-4bb8-aa32-6e9cc401a9a1"], ["topic_name", "some-topic"], ["company_uuid", "43c04d27-3b88-4bb8-aa32-6e9cc401a9a1"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:20:17.588245"], ["event_type", "some-type"]]
2537
-  (2.9ms) COMMIT
2538
- NulogyMessageBusProducer::SubscriptionEvent Load (2.4ms) SELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2 [["id", "0de39387-eb7b-4c82-981e-5440bcb563b0"], ["LIMIT", 1]]
2539
-  (1.7ms) BEGIN
2540
- NulogyMessageBusProducer::SubscriptionEvent Create (2.1ms) INSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", "0de39387-eb7b-4c82-981e-5440bcb563b0"], ["subscription_id", "9d1b70b1-7598-4687-a634-d55b17f868cc"], ["partition_key", "c7075533-fd2e-4f63-b964-980f3fa5f4a6"], ["topic_name", "some-topic"], ["company_uuid", "c7075533-fd2e-4f63-b964-980f3fa5f4a6"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:19.585687"], ["event_type", "some-type"]]
2541
-  (2.9ms) COMMIT
2542
- NulogyMessageBusProducer::SubscriptionEvent Load (2.6ms) SELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2 [["id", "afa71c73-ea8c-4c05-ab56-5518923ef09f"], ["LIMIT", 1]]
2543
-  (1.6ms) BEGIN
2544
- NulogyMessageBusProducer::SubscriptionEvent Create (2.1ms) INSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", "afa71c73-ea8c-4c05-ab56-5518923ef09f"], ["subscription_id", "a91d295d-d570-49fc-bb50-7bc2317e7635"], ["partition_key", "106bea13-ccdb-49a5-a613-9c3e206267ca"], ["topic_name", "some-topic"], ["company_uuid", "106bea13-ccdb-49a5-a613-9c3e206267ca"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:20.593447"], ["event_type", "some-type"]]
2545
-  (3.1ms) COMMIT
2546
- NulogyMessageBusProducer::SubscriptionEvent Load (2.3ms) SELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2 [["id", "91cc1302-d68e-42e4-8491-d4743289c54a"], ["LIMIT", 1]]
2547
-  (1.7ms) BEGIN
2548
- NulogyMessageBusProducer::SubscriptionEvent Create (1.9ms) INSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", "91cc1302-d68e-42e4-8491-d4743289c54a"], ["subscription_id", "d820eb79-29b4-48cb-91d3-aa6deeb7b182"], ["partition_key", "67afaf53-d2b3-47cd-937b-6d4ef9492b39"], ["topic_name", "some-topic"], ["company_uuid", "67afaf53-d2b3-47cd-937b-6d4ef9492b39"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:21.425429"], ["event_type", "some-type"]]
2549
-  (3.0ms) COMMIT
2550
- NulogyMessageBusProducer::SubscriptionEvent Load (2.2ms) SELECT "message_bus_subscription_events".* FROM "message_bus_subscription_events" WHERE "message_bus_subscription_events"."id" = $1 LIMIT $2 [["id", "31e9b591-c646-4fcc-bcc6-70afe4aaa05c"], ["LIMIT", 1]]
2551
-  (1.3ms) BEGIN
2552
- NulogyMessageBusProducer::SubscriptionEvent Create (1.3ms) INSERT INTO "message_bus_subscription_events" ("id", "subscription_id", "partition_key", "topic_name", "company_uuid", "event_json", "created_at", "event_type") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["id", "31e9b591-c646-4fcc-bcc6-70afe4aaa05c"], ["subscription_id", "8e8b156e-b4e5-47a7-9f86-e6e876ccaf51"], ["partition_key", "c035daf9-1d15-4515-bbe2-7170a1ed7402"], ["topic_name", "some-topic"], ["company_uuid", "c035daf9-1d15-4515-bbe2-7170a1ed7402"], ["event_json", "{\"field\":\"value\"}"], ["created_at", "2021-03-31 18:21:22.409136"], ["event_type", "some-type"]]
2553
-  (1.8ms) COMMIT