nulogy_message_bus_producer 2.0.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +188 -15
- data/Rakefile +6 -2
- data/db/migrate/20201005150212_rename_tenant_id_and_public.rb +6 -0
- data/lib/nulogy_message_bus_producer.rb +47 -19
- data/lib/nulogy_message_bus_producer/{base_public_subscription.rb → base_subscription.rb} +1 -1
- data/lib/nulogy_message_bus_producer/config.rb +6 -0
- data/lib/nulogy_message_bus_producer/repopulate_replication_slots.rb +25 -0
- data/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb +1 -1
- data/lib/nulogy_message_bus_producer/{public_subscription.rb → subscription.rb} +1 -2
- data/lib/nulogy_message_bus_producer/{public_subscription_event.rb → subscription_event.rb} +1 -1
- data/lib/nulogy_message_bus_producer/subscriptions/no_variables.rb +43 -0
- data/lib/nulogy_message_bus_producer/subscriptions/postgres_transport.rb +85 -0
- data/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker.rb +70 -0
- data/lib/nulogy_message_bus_producer/version.rb +1 -1
- data/lib/tasks/engine/message_bus_producer.rake +11 -0
- data/spec/dummy/config/database.yml +1 -1
- data/spec/dummy/config/puma.rb +2 -2
- data/spec/dummy/db/migrate/20201005164116_create_active_storage_tables.active_storage.rb +5 -0
- data/spec/dummy/db/schema.rb +3 -5
- data/spec/dummy/log/development.log +510 -0
- data/spec/dummy/log/test.log +18126 -0
- data/spec/integration/lib/nulogy_message_bus_producer/repopulate_replication_slots_spec.rb +141 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator_spec.rb +49 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscription_spec.rb +61 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/no_variables_spec.rb +46 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/postgres_transport_spec.rb +135 -0
- data/spec/integration/lib/nulogy_message_bus_producer/subscriptions/risky_subscription_blocker_spec.rb +49 -0
- data/spec/integration_spec_helper.rb +5 -0
- data/spec/spec_helper.rb +0 -40
- data/spec/support/kafka.rb +105 -0
- data/spec/support/kafka_connect.rb +31 -0
- data/spec/support/spec_utils.rb +16 -0
- data/spec/support/sql_helpers.rb +45 -0
- data/spec/support/subscription_helpers.rb +52 -0
- data/spec/support/test_graphql_schema.rb +48 -0
- metadata +89 -38
- data/lib/nulogy_message_bus_producer/postgres_public_subscriptions.rb +0 -117
- data/spec/integration/lib/graphql_api/postgres_public_subscriptions_spec.rb +0 -122
- data/spec/integration/lib/graphql_api/validators/subscriber_graphql_schema_validator_spec.rb +0 -76
- data/spec/unit/lib/graphql_api/models/public_subscription_spec.rb +0 -66
- data/spec/unit_spec_helper.rb +0 -6
@@ -1,7 +1,7 @@
|
|
1
1
|
module NulogyMessageBusProducer
|
2
2
|
# This model saves all subscriptions to external systems.
|
3
3
|
# An external system can subscribe to events and specify the shape of data it would like to receive for the event.
|
4
|
-
class
|
4
|
+
class Subscription < ApplicationRecord
|
5
5
|
self.table_name = :message_bus_subscriptions
|
6
6
|
|
7
7
|
# Run our validator with familar syntax in this model
|
@@ -12,7 +12,6 @@ module NulogyMessageBusProducer
|
|
12
12
|
validator = NulogyMessageBusProducer::SubscriberGraphqlSchemaValidator.new
|
13
13
|
|
14
14
|
validator.validate(record)
|
15
|
-
|
16
15
|
validator.errors.each { |e| record.errors.add(attribute, e) }
|
17
16
|
end
|
18
17
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module NulogyMessageBusProducer
|
2
2
|
# A model that contains the event data for a particular subscription
|
3
3
|
# It is simply saved in the database and shipped to Kafka by Debezium
|
4
|
-
class
|
4
|
+
class SubscriptionEvent < ApplicationRecord
|
5
5
|
self.table_name = :message_bus_subscription_events
|
6
6
|
|
7
7
|
def self.create_or_update(attrs)
|
@@ -0,0 +1,43 @@
|
|
1
|
+
module NulogyMessageBusProducer
|
2
|
+
module Subscriptions
|
3
|
+
# Query Analyzer that returns an error when a subscription field
|
4
|
+
# has variables. See `SUBSCRIPTION_WITH_VARIABLES_MESSAGE`.
|
5
|
+
class NoVariables < GraphQL::Analysis::AST::Analyzer
|
6
|
+
SUBSCRIPTION_WITH_VARIABLES_MESSAGE = <<~MESSAGE.freeze
|
7
|
+
Subscriptions should not be created with arguments. e.g.
|
8
|
+
|
9
|
+
subscription($id: ID!) { fooWasCreated(id: $id) { ... } }
|
10
|
+
with variables { id: id_value, ... }
|
11
|
+
|
12
|
+
the $id variable should be inlined into the event that they are subscribing to:
|
13
|
+
|
14
|
+
subscription { fooWasCreated(id: id_value) { ... } }
|
15
|
+
MESSAGE
|
16
|
+
|
17
|
+
def initialize(query_or_multiplex)
|
18
|
+
super
|
19
|
+
@error = false
|
20
|
+
end
|
21
|
+
|
22
|
+
def analyze?
|
23
|
+
subject.subscription?
|
24
|
+
end
|
25
|
+
|
26
|
+
def on_enter_operation_definition(node, _parent, _visitor)
|
27
|
+
@error = true if subscription?(node) && node.variables.present?
|
28
|
+
end
|
29
|
+
|
30
|
+
def result
|
31
|
+
return unless @error
|
32
|
+
|
33
|
+
GraphQL::AnalysisError.new(SUBSCRIPTION_WITH_VARIABLES_MESSAGE)
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def subscription?(node)
|
39
|
+
node.operation_type == "subscription"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
module NulogyMessageBusProducer
|
2
|
+
module Subscriptions
|
3
|
+
# Subscription class to `use` when developing Message Bus-backed subscriptions
|
4
|
+
# For example,
|
5
|
+
#
|
6
|
+
# class SomeSchema < GraphQL::Schema
|
7
|
+
# ...
|
8
|
+
# use NulogyMessageBusProducer::PostgresPublicSubscriptions
|
9
|
+
# end
|
10
|
+
#
|
11
|
+
# It expects that schema to already be registered, or will raise an error.
|
12
|
+
#
|
13
|
+
# NulogyMessageBusProducer.register_schema("some_schema", "SomeSchema")
|
14
|
+
class PostgresTransport < GraphQL::Subscriptions
|
15
|
+
def initialize(options = {})
|
16
|
+
super
|
17
|
+
@schema_key = NulogyMessageBusProducer.resolve_schema_key(options.fetch(:schema))
|
18
|
+
end
|
19
|
+
|
20
|
+
def each_subscription_id(event)
|
21
|
+
# The graphql gem camelizes and stringifies the Event's arguments
|
22
|
+
# See subscriptions#trigger here: graphql-1.11.4/lib/graphql/subscriptions.rb
|
23
|
+
yield event.arguments.fetch("subscriptionId")
|
24
|
+
end
|
25
|
+
|
26
|
+
def read_subscription(subscription_id)
|
27
|
+
subscription = Subscription.find(subscription_id)
|
28
|
+
context = NulogyMessageBusProducer.context_for_subscription(subscription)
|
29
|
+
|
30
|
+
{
|
31
|
+
context: context,
|
32
|
+
operation_name: nil,
|
33
|
+
query_string: subscription.query,
|
34
|
+
variables: {}
|
35
|
+
}
|
36
|
+
end
|
37
|
+
|
38
|
+
def deliver(subscription_id, result)
|
39
|
+
if result["errors"]&.any?
|
40
|
+
NulogyMessageBusProducer.config.handle_event_generation_error(
|
41
|
+
subscription_id: subscription_id,
|
42
|
+
context: result.query.context.object,
|
43
|
+
variables: result.query.provided_variables,
|
44
|
+
result: result
|
45
|
+
)
|
46
|
+
else
|
47
|
+
create_event(subscription_id, result)
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
def write_subscription(query, events)
|
52
|
+
events.each do |event|
|
53
|
+
Subscription.create_or_update(
|
54
|
+
id: event.arguments.fetch(:subscription_id),
|
55
|
+
subscription_group_id: event.arguments.fetch(:subscription_group_id),
|
56
|
+
event_type: event.name,
|
57
|
+
schema_key: @schema_key,
|
58
|
+
query: query.query_string,
|
59
|
+
topic_name: event.arguments.fetch(:topic_name)
|
60
|
+
)
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
def delete_subscription(subscription_id)
|
65
|
+
Subscription.find_by(id: subscription_id).destroy
|
66
|
+
end
|
67
|
+
|
68
|
+
private
|
69
|
+
|
70
|
+
def create_event(subscription_id, result)
|
71
|
+
company_uuid = result.query.context.object[:company_uuid]
|
72
|
+
subscription = Subscription.find_by(id: subscription_id)
|
73
|
+
|
74
|
+
SubscriptionEvent.create_or_update(
|
75
|
+
id: SecureRandom.uuid,
|
76
|
+
subscription_id: subscription_id,
|
77
|
+
partition_key: "#{subscription.subscription_group_id},#{company_uuid}",
|
78
|
+
company_uuid: company_uuid,
|
79
|
+
event_json: result.to_h["data"],
|
80
|
+
topic_name: subscription.topic_name
|
81
|
+
)
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
module NulogyMessageBusProducer
|
2
|
+
module Subscriptions
|
3
|
+
# This is a custom AST::Analyzer. It attempts to prevent:
|
4
|
+
# 1. Expansions that could take too long
|
5
|
+
# 2. Expansions that could be difficult to test
|
6
|
+
#
|
7
|
+
# We resolved that the causes of (1) would mostly be unbound lists
|
8
|
+
# and (2) could be arguments passed to nodes.
|
9
|
+
#
|
10
|
+
# Thus, as a blunt first step, this analyzer prevents queries from
|
11
|
+
# 1. expanding list fields
|
12
|
+
# 2. using arguments on nodes
|
13
|
+
#
|
14
|
+
# While this is fairly strict, it did not affect any existing queries at the time.
|
15
|
+
# These could be relaxed in the future but require more-sophisticated techniques.
|
16
|
+
# For example, a bounded lists of elements may be required.
|
17
|
+
class RiskySubscriptionBlocker < GraphQL::Analysis::AST::Analyzer
|
18
|
+
def initialize(query_or_multiplex)
|
19
|
+
super
|
20
|
+
@nodes_using_arguments = Set.new
|
21
|
+
@nodes_are_lists = Set.new
|
22
|
+
end
|
23
|
+
|
24
|
+
PERMITTED_ARGUMENTS = Set.new(%w[subscriptionId subscriptionGroupId topicName])
|
25
|
+
|
26
|
+
def analyze?
|
27
|
+
subject.subscription?
|
28
|
+
end
|
29
|
+
|
30
|
+
def on_enter_argument(argument, parent, _visitor)
|
31
|
+
@nodes_using_arguments << parent unless PERMITTED_ARGUMENTS.include?(argument.name)
|
32
|
+
end
|
33
|
+
|
34
|
+
def on_enter_field(node, _parent, visitor)
|
35
|
+
@nodes_are_lists << node if list?(node, visitor)
|
36
|
+
end
|
37
|
+
|
38
|
+
def result
|
39
|
+
error_messages = []
|
40
|
+
|
41
|
+
if @nodes_using_arguments.any?
|
42
|
+
node_names = @nodes_using_arguments.map(&:name).join("\n")
|
43
|
+
error_messages << "Arguments may not be used:\n#{node_names}"
|
44
|
+
end
|
45
|
+
|
46
|
+
if @nodes_are_lists.any?
|
47
|
+
node_names = @nodes_are_lists.map(&:name).join("\n")
|
48
|
+
error_messages << "Lists may not be queried:\n#{node_names}"
|
49
|
+
end
|
50
|
+
|
51
|
+
GraphQL::AnalysisError.new(error_messages.join("\n\n")) if error_messages.any?
|
52
|
+
end
|
53
|
+
|
54
|
+
private
|
55
|
+
|
56
|
+
def list?(node, visitor)
|
57
|
+
field_definition = visitor.field_definition
|
58
|
+
nested_type = field_definition.type_class.type
|
59
|
+
|
60
|
+
loop do
|
61
|
+
@nodes_are_lists << node if nested_type.is_a?(GraphQL::Schema::List)
|
62
|
+
|
63
|
+
break unless nested_type.respond_to?(:of_type)
|
64
|
+
|
65
|
+
nested_type = nested_type.of_type
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
namespace :message_bus_producer do
|
2
|
+
desc <<~MESSAGE
|
3
|
+
Repopulates the message slots by deleting and re-inserting all of the events in the events table.
|
4
|
+
|
5
|
+
WARNING: THIS WILL LOCK THE EVENTS TABLE, AND BY EXTENSION ANY DOMAIN LOGIC WHICH EMITS EVENTS.
|
6
|
+
THIS IS INTENDED TO BE USED FOR DISASTER RECOVERY ONLY.
|
7
|
+
MESSAGE
|
8
|
+
task repopulate_replication_slots: :environment do
|
9
|
+
NulogyMessageBusProducer::RepopulateReplicationSlots.repopulate
|
10
|
+
end
|
11
|
+
end
|
@@ -5,8 +5,8 @@ defaults: &defaults
|
|
5
5
|
adapter: postgresql
|
6
6
|
username: <%= ENV['NULOGY_MESSAGE_BUS_PRODUCER_DATABASE_USER'] || "nulogy" %>
|
7
7
|
password: <%= ENV['NULOGY_MESSAGE_BUS_PRODUCER_DATABASE_PASS'] || "Nulogy4Ever" %>
|
8
|
-
template: template_packmanager
|
9
8
|
host: <%= ENV['PM_DATABASE_HOST'] || "localhost" %>
|
9
|
+
port: 5437
|
10
10
|
min_messages: warning
|
11
11
|
schema_search_path: "\"$user\", public"
|
12
12
|
|
data/spec/dummy/config/puma.rb
CHANGED
@@ -7,9 +7,9 @@
|
|
7
7
|
threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
8
|
threads threads_count, threads_count
|
9
9
|
|
10
|
-
# Specifies the `port` that Puma will listen on to receive requests; default is
|
10
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
11
11
|
#
|
12
|
-
port ENV.fetch("PORT") {
|
12
|
+
port ENV.fetch("PORT") { 3000 }
|
13
13
|
|
14
14
|
# Specifies the `environment` that Puma will run in.
|
15
15
|
#
|
data/spec/dummy/db/schema.rb
CHANGED
@@ -10,19 +10,17 @@
|
|
10
10
|
#
|
11
11
|
# It's strongly recommended that you check this file into your version control system.
|
12
12
|
|
13
|
-
ActiveRecord::Schema.define(version:
|
13
|
+
ActiveRecord::Schema.define(version: 2020_10_05_164116) do
|
14
14
|
|
15
15
|
# These are extensions that must be enabled in order to support this database
|
16
|
-
enable_extension "citext"
|
17
|
-
enable_extension "hstore"
|
18
16
|
enable_extension "plpgsql"
|
19
17
|
enable_extension "uuid-ossp"
|
20
18
|
|
21
19
|
create_table "message_bus_subscription_events", id: :uuid, default: nil, force: :cascade do |t|
|
22
|
-
t.uuid "
|
20
|
+
t.uuid "subscription_id", null: false
|
23
21
|
t.string "partition_key", null: false
|
24
22
|
t.string "topic_name", null: false
|
25
|
-
t.uuid "
|
23
|
+
t.uuid "company_uuid", null: false
|
26
24
|
t.json "event_json", null: false
|
27
25
|
t.datetime "created_at"
|
28
26
|
t.index ["created_at"], name: "index_nulogy_mb_producer_subscription_events_on_created_at"
|
@@ -1769,3 +1769,513 @@ Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
|
|
1769
1769
|
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
1770
1770
|
[1m[36mActiveRecord::InternalMetadata Update (1.5ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-06-25 20:05:37.691325"], ["key", "environment"]]
|
1771
1771
|
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
1772
|
+
[1m[35m (410.1ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
1773
|
+
[1m[35m (328.2ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
1774
|
+
[1m[35mSQL (3.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1775
|
+
[1m[35mSQL (44.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1776
|
+
[1m[35m (2.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1777
|
+
[1m[35m (19.5ms)[0m [1m[35mCREATE 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)[0m
|
1778
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1779
|
+
[1m[35m (1.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1780
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE 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)[0m
|
1781
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1782
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1783
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1784
|
+
[1m[35m (2.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
1785
|
+
[1m[35m (1.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1786
|
+
(20201005164117),
|
1787
|
+
(20201005164116),
|
1788
|
+
(20200611150212),
|
1789
|
+
(20201005150212);
|
1790
|
+
|
1791
|
+
[0m
|
1792
|
+
[1m[35m (7.9ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1793
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1794
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
1795
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.6ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:48:30.647330"], ["updated_at", "2020-10-07 15:48:30.647330"]]
|
1796
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1797
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1798
|
+
[1m[35m (1.7ms)[0m [1m[35mBEGIN[0m
|
1799
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
1800
|
+
[1m[35mSQL (1.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1801
|
+
[1m[35mSQL (7.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1802
|
+
[1m[35m (1.7ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1803
|
+
[1m[35m (8.8ms)[0m [1m[35mCREATE 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)[0m
|
1804
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1805
|
+
[1m[35m (1.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1806
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE 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)[0m
|
1807
|
+
[1m[35m (4.1ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1808
|
+
[1m[35m (8.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1809
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1810
|
+
[1m[35m (1.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
1811
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1812
|
+
(20201005164117),
|
1813
|
+
(20201005164116),
|
1814
|
+
(20200611150212),
|
1815
|
+
(20201005150212);
|
1816
|
+
|
1817
|
+
[0m
|
1818
|
+
[1m[35m (6.1ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1819
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1820
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
1821
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.2ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:48:30.787108"], ["updated_at", "2020-10-07 15:48:30.787108"]]
|
1822
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1823
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1824
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
1825
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 15:48:30.794431"], ["key", "environment"]]
|
1826
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1827
|
+
[1m[35m (1.3ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
1828
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
1829
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1830
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1831
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1832
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1833
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1834
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1835
|
+
[1m[35mSQL (1.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1836
|
+
[1m[35mSQL (1.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1837
|
+
[1m[35m (4.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1838
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE 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)[0m
|
1839
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1840
|
+
[1m[35m (3.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1841
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE 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)[0m
|
1842
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1843
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1844
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1845
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
1846
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
1847
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1848
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
1849
|
+
[1m[35m (1.2ms)[0m [1m[35mCOMMIT[0m
|
1850
|
+
[1m[35mSQL (1.2ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1851
|
+
[1m[35mSQL (1.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1852
|
+
[1m[35m (4.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1853
|
+
[1m[35m (7.1ms)[0m [1m[35mCREATE 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)[0m
|
1854
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1855
|
+
[1m[35m (3.0ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1856
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE 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)[0m
|
1857
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1858
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1859
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1860
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
1861
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "development"], ["updated_at", "2020-10-07 15:53:28.600948"], ["key", "environment"]]
|
1862
|
+
[1m[35m (1.6ms)[0m [1m[35mCOMMIT[0m
|
1863
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1864
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
1865
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 15:53:28.609152"], ["key", "environment"]]
|
1866
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1867
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1868
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1869
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1870
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1871
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1872
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1873
|
+
[1m[35m (115.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
1874
|
+
[1m[35m (313.3ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
1875
|
+
[1m[35mSQL (1.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1876
|
+
[1m[35mSQL (5.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1877
|
+
[1m[35m (1.6ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1878
|
+
[1m[35m (20.6ms)[0m [1m[35mCREATE 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)[0m
|
1879
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1880
|
+
[1m[35m (1.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1881
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE 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)[0m
|
1882
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1883
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1884
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1885
|
+
[1m[35m (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
1886
|
+
[1m[35m (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1887
|
+
(20201005164117),
|
1888
|
+
(20201005164116),
|
1889
|
+
(20200611150212),
|
1890
|
+
(20201005150212);
|
1891
|
+
|
1892
|
+
[0m
|
1893
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1894
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1895
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
1896
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:53:54.354290"], ["updated_at", "2020-10-07 15:53:54.354290"]]
|
1897
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1898
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1899
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
1900
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 15:53:54.364764"], ["key", "environment"]]
|
1901
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1902
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
1903
|
+
[1m[35m (104.6ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
1904
|
+
[1m[35mSQL (3.0ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1905
|
+
[1m[35mSQL (7.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1906
|
+
[1m[35m (2.0ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1907
|
+
[1m[35m (7.7ms)[0m [1m[35mCREATE 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)[0m
|
1908
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1909
|
+
[1m[35m (1.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1910
|
+
[1m[35m (5.9ms)[0m [1m[35mCREATE 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)[0m
|
1911
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1912
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1913
|
+
[1m[35m (1.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1914
|
+
[1m[35m (2.0ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
1915
|
+
[1m[35m (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1916
|
+
(20201005164117),
|
1917
|
+
(20201005164116),
|
1918
|
+
(20200611150212),
|
1919
|
+
(20201005150212);
|
1920
|
+
|
1921
|
+
[0m
|
1922
|
+
[1m[35m (5.6ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1923
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1924
|
+
[1m[35m (1.9ms)[0m [1m[35mBEGIN[0m
|
1925
|
+
[1m[36mActiveRecord::InternalMetadata Create (2.0ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:59:07.619367"], ["updated_at", "2020-10-07 15:59:07.619367"]]
|
1926
|
+
[1m[35m (1.9ms)[0m [1m[35mCOMMIT[0m
|
1927
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1928
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
1929
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
1930
|
+
[1m[35mSQL (1.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1931
|
+
[1m[35mSQL (6.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1932
|
+
[1m[35m (1.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1933
|
+
[1m[35m (9.0ms)[0m [1m[35mCREATE 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)[0m
|
1934
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1935
|
+
[1m[35m (1.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1936
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE 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)[0m
|
1937
|
+
[1m[35m (3.2ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1938
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
1939
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1940
|
+
[1m[35m (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
1941
|
+
[1m[35m (1.7ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
1942
|
+
(20201005164117),
|
1943
|
+
(20201005164116),
|
1944
|
+
(20200611150212),
|
1945
|
+
(20201005150212);
|
1946
|
+
|
1947
|
+
[0m
|
1948
|
+
[1m[35m (7.4ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
1949
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1950
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
1951
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 15:59:07.749654"], ["updated_at", "2020-10-07 15:59:07.749654"]]
|
1952
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
1953
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1954
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
1955
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 15:59:07.758768"], ["key", "environment"]]
|
1956
|
+
[1m[35m (1.7ms)[0m [1m[35mCOMMIT[0m
|
1957
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
1958
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
1959
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1960
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1961
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1962
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1963
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1964
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
1965
|
+
[1m[35mSQL (1.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1966
|
+
[1m[35mSQL (1.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1967
|
+
[1m[35m (4.1ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1968
|
+
[1m[35m (8.3ms)[0m [1m[35mCREATE 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)[0m
|
1969
|
+
[1m[35m (4.2ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1970
|
+
[1m[35m (3.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1971
|
+
[1m[35m (6.5ms)[0m [1m[35mCREATE 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)[0m
|
1972
|
+
[1m[35m (3.5ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1973
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1974
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1975
|
+
[1m[35m (1.6ms)[0m [1m[35mBEGIN[0m
|
1976
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1977
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1978
|
+
[1m[35m (2.3ms)[0m [1m[35mBEGIN[0m
|
1979
|
+
[1m[35m (1.4ms)[0m [1m[35mCOMMIT[0m
|
1980
|
+
[1m[35mSQL (1.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
1981
|
+
[1m[35mSQL (1.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
1982
|
+
[1m[35m (4.1ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
1983
|
+
[1m[35m (7.5ms)[0m [1m[35mCREATE 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)[0m
|
1984
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
1985
|
+
[1m[35m (2.5ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
1986
|
+
[1m[35m (5.8ms)[0m [1m[35mCREATE 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)[0m
|
1987
|
+
[1m[35m (3.7ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
1988
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
1989
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1990
|
+
[1m[35m (1.2ms)[0m [1m[35mBEGIN[0m
|
1991
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.4ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "development"], ["updated_at", "2020-10-07 16:02:19.118218"], ["key", "environment"]]
|
1992
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
1993
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
1994
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
1995
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 16:02:19.127263"], ["key", "environment"]]
|
1996
|
+
[1m[35m (2.5ms)[0m [1m[35mCOMMIT[0m
|
1997
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
1998
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
1999
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2000
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2001
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2002
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2003
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2004
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2005
|
+
[1m[35mSQL (1.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2006
|
+
[1m[35mSQL (2.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2007
|
+
[1m[35m (3.7ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2008
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE 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)[0m
|
2009
|
+
[1m[35m (3.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2010
|
+
[1m[35m (2.6ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2011
|
+
[1m[35m (6.2ms)[0m [1m[35mCREATE 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)[0m
|
2012
|
+
[1m[35m (4.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2013
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2014
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2015
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2016
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2017
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2018
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2019
|
+
[1m[35m (1.1ms)[0m [1m[35mCOMMIT[0m
|
2020
|
+
[1m[35mSQL (1.5ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2021
|
+
[1m[35mSQL (1.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2022
|
+
[1m[35m (4.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2023
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE 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)[0m
|
2024
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2025
|
+
[1m[35m (3.1ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2026
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE 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)[0m
|
2027
|
+
[1m[35m (3.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2028
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2029
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2030
|
+
[1m[35m (1.5ms)[0m [1m[35mBEGIN[0m
|
2031
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "development"], ["updated_at", "2020-10-07 16:02:39.454033"], ["key", "environment"]]
|
2032
|
+
[1m[35m (1.8ms)[0m [1m[35mCOMMIT[0m
|
2033
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2034
|
+
[1m[35m (1.3ms)[0m [1m[35mBEGIN[0m
|
2035
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 16:02:39.463388"], ["key", "environment"]]
|
2036
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2037
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2038
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2039
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2040
|
+
[1m[35m (2.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2041
|
+
[1m[35m (2.9ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2042
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2043
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2044
|
+
[1m[35m (2.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2045
|
+
[1m[35m (5.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2046
|
+
[1m[35mSQL (2.0ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2047
|
+
[1m[35mSQL (1.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2048
|
+
[1m[35m (8.3ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2049
|
+
[1m[35m (16.2ms)[0m [1m[35mCREATE 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)[0m
|
2050
|
+
[1m[35m (5.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2051
|
+
[1m[35m (6.0ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2052
|
+
[1m[35m (15.8ms)[0m [1m[35mCREATE 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)[0m
|
2053
|
+
[1m[35m (8.4ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2054
|
+
[1m[35m (3.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2055
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2056
|
+
[1m[35m (2.7ms)[0m [1m[35mBEGIN[0m
|
2057
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2058
|
+
[1m[36mActiveRecord::InternalMetadata Load (4.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2059
|
+
[1m[35m (3.8ms)[0m [1m[35mBEGIN[0m
|
2060
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2061
|
+
[1m[35mSQL (4.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2062
|
+
[1m[35mSQL (3.8ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2063
|
+
[1m[35m (9.0ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2064
|
+
[1m[35m (10.3ms)[0m [1m[35mCREATE 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)[0m
|
2065
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2066
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2067
|
+
[1m[35m (9.8ms)[0m [1m[35mCREATE 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)[0m
|
2068
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2069
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2070
|
+
[1m[35m (2.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
2071
|
+
[1m[35m (2.9ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2072
|
+
(20201005164117),
|
2073
|
+
(20201005164116),
|
2074
|
+
(20200611150212),
|
2075
|
+
(20201005150212);
|
2076
|
+
|
2077
|
+
[0m
|
2078
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2079
|
+
[1m[35m (1.9ms)[0m [1m[35mBEGIN[0m
|
2080
|
+
[1m[36mActiveRecord::InternalMetadata Create (5.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:12:35.296503"], ["updated_at", "2020-10-07 20:12:35.296503"]]
|
2081
|
+
[1m[35m (4.9ms)[0m [1m[35mCOMMIT[0m
|
2082
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.6ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2083
|
+
[1m[35m (2.4ms)[0m [1m[35mBEGIN[0m
|
2084
|
+
[1m[36mActiveRecord::InternalMetadata Update (2.5ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 20:12:35.321226"], ["key", "environment"]]
|
2085
|
+
[1m[35m (3.7ms)[0m [1m[35mCOMMIT[0m
|
2086
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2087
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2088
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2089
|
+
[1m[35m (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2090
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2091
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2092
|
+
[1m[35m (17.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"[0m
|
2093
|
+
[1m[35m (1.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2094
|
+
[1m[35m (1.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"[0m
|
2095
|
+
[1m[35m (21.6ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2096
|
+
[1m[35m (153.7ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2097
|
+
[1m[35m (127.1ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2098
|
+
[1m[35mSQL (1.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2099
|
+
[1m[35mSQL (21.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2100
|
+
[1m[35m (1.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2101
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE 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)[0m
|
2102
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2103
|
+
[1m[35m (1.9ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2104
|
+
[1m[35m (10.9ms)[0m [1m[35mCREATE 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)[0m
|
2105
|
+
[1m[35m (6.7ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2106
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2107
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2108
|
+
[1m[35m (2.5ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
2109
|
+
[1m[35m (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2110
|
+
(20201005164117),
|
2111
|
+
(20201005164116),
|
2112
|
+
(20200611150212),
|
2113
|
+
(20201005150212);
|
2114
|
+
|
2115
|
+
[0m
|
2116
|
+
[1m[35m (8.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2117
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2118
|
+
[1m[35m (2.6ms)[0m [1m[35mBEGIN[0m
|
2119
|
+
[1m[36mActiveRecord::InternalMetadata Create (2.8ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:26:17.154304"], ["updated_at", "2020-10-07 20:26:17.154304"]]
|
2120
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2121
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2122
|
+
[1m[35m (3.7ms)[0m [1m[35mBEGIN[0m
|
2123
|
+
[1m[35m (2.4ms)[0m [1m[35mCOMMIT[0m
|
2124
|
+
[1m[35mSQL (2.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2125
|
+
[1m[35mSQL (8.9ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2126
|
+
[1m[35m (2.3ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2127
|
+
[1m[35m (15.1ms)[0m [1m[35mCREATE 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)[0m
|
2128
|
+
[1m[35m (9.2ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2129
|
+
[1m[35m (4.9ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2130
|
+
[1m[35m (9.5ms)[0m [1m[35mCREATE 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)[0m
|
2131
|
+
[1m[35m (4.9ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2132
|
+
[1m[35m (13.2ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2133
|
+
[1m[35m (5.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2134
|
+
[1m[35m (3.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164141)[0m
|
2135
|
+
[1m[35m (3.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2136
|
+
(20201005164117),
|
2137
|
+
(20201005164116),
|
2138
|
+
(20200611150212),
|
2139
|
+
(20201005150212);
|
2140
|
+
|
2141
|
+
[0m
|
2142
|
+
[1m[35m (12.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2143
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2144
|
+
[1m[35m (1.9ms)[0m [1m[35mBEGIN[0m
|
2145
|
+
[1m[36mActiveRecord::InternalMetadata Create (2.7ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:26:17.388400"], ["updated_at", "2020-10-07 20:26:17.388400"]]
|
2146
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2147
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2148
|
+
[1m[35m (2.5ms)[0m [1m[35mBEGIN[0m
|
2149
|
+
[1m[36mActiveRecord::InternalMetadata Update (3.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 20:26:17.406447"], ["key", "environment"]]
|
2150
|
+
[1m[35m (4.2ms)[0m [1m[35mCOMMIT[0m
|
2151
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2152
|
+
[1m[35m (1.9ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2153
|
+
[1m[35m (12.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2154
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2155
|
+
[1m[35m (1.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2156
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2157
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2158
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2159
|
+
[1m[35mSQL (5.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2160
|
+
[1m[35mSQL (2.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2161
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2162
|
+
[1m[35m (10.9ms)[0m [1m[35mCREATE 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)[0m
|
2163
|
+
[1m[35m (5.5ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2164
|
+
[1m[35m (7.2ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2165
|
+
[1m[35m (13.1ms)[0m [1m[35mCREATE 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)[0m
|
2166
|
+
[1m[35m (5.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2167
|
+
[1m[35m (5.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2168
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2169
|
+
[1m[35m (2.9ms)[0m [1m[35mBEGIN[0m
|
2170
|
+
[1m[35m (3.2ms)[0m [1m[35mCOMMIT[0m
|
2171
|
+
[1m[36mActiveRecord::InternalMetadata Load (5.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2172
|
+
[1m[35m (4.2ms)[0m [1m[35mBEGIN[0m
|
2173
|
+
[1m[35m (2.2ms)[0m [1m[35mCOMMIT[0m
|
2174
|
+
[1m[35mSQL (2.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2175
|
+
[1m[35mSQL (2.4ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2176
|
+
[1m[35m (10.6ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2177
|
+
[1m[35m (19.4ms)[0m [1m[35mCREATE 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)[0m
|
2178
|
+
[1m[35m (5.0ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2179
|
+
[1m[35m (4.6ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2180
|
+
[1m[35m (12.3ms)[0m [1m[35mCREATE 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)[0m
|
2181
|
+
[1m[35m (7.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2182
|
+
[1m[35m (5.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2183
|
+
[1m[36mActiveRecord::InternalMetadata Load (3.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2184
|
+
[1m[35m (2.8ms)[0m [1m[35mBEGIN[0m
|
2185
|
+
[1m[36mActiveRecord::InternalMetadata Update (3.0ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "development"], ["updated_at", "2020-10-07 20:27:27.952213"], ["key", "environment"]]
|
2186
|
+
[1m[35m (5.4ms)[0m [1m[35mCOMMIT[0m
|
2187
|
+
[1m[36mActiveRecord::InternalMetadata Load (4.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2188
|
+
[1m[35m (3.4ms)[0m [1m[35mBEGIN[0m
|
2189
|
+
[1m[36mActiveRecord::InternalMetadata Update (3.6ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-07 20:27:27.978791"], ["key", "environment"]]
|
2190
|
+
[1m[35m (4.4ms)[0m [1m[35mCOMMIT[0m
|
2191
|
+
[1m[35m (3.0ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2192
|
+
[1m[35m (3.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2193
|
+
[1m[35m (2.7ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2194
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2195
|
+
[1m[35m (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2196
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2197
|
+
[1m[35m (1.6ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2198
|
+
[1m[35m (35.5ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"[0m
|
2199
|
+
[1m[35m (2.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2200
|
+
[1m[35m (2.1ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_development"[0m
|
2201
|
+
[1m[35m (22.8ms)[0m [1m[35mDROP DATABASE IF EXISTS "nulogy_message_bus_producer_test"[0m
|
2202
|
+
[1m[35m (188.2ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2203
|
+
[1m[35m (122.6ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2204
|
+
[1m[35m (9.3ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2205
|
+
[1m[35m (5.7ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2206
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT pg_try_advisory_lock(3053653019973222135)[0m
|
2207
|
+
[1m[35m (2.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2208
|
+
Migrating to CreatePublicSubscriptionsAndEventsTables (20200611150212)
|
2209
|
+
[1m[35m (2.4ms)[0m [1m[35mBEGIN[0m
|
2210
|
+
[1m[35mSQL (12.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2211
|
+
[1m[35m (9.7ms)[0m [1m[35mCREATE 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)[0m
|
2212
|
+
[1m[35m (4.0ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2213
|
+
[1m[35m (7.6ms)[0m [1m[35mCREATE 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)[0m
|
2214
|
+
[1m[35m (4.6ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2215
|
+
[1m[36mActiveRecord::SchemaMigration Create (2.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20200611150212"]]
|
2216
|
+
[1m[35m (3.7ms)[0m [1m[35mCOMMIT[0m
|
2217
|
+
Migrating to RenameTenantIdAndPublic (20201005150212)
|
2218
|
+
[1m[35m (3.2ms)[0m [1m[35mBEGIN[0m
|
2219
|
+
[1m[35m (3.8ms)[0m [1m[35mALTER TABLE "message_bus_subscription_events" RENAME COLUMN "tenant_id" TO "company_uuid"[0m
|
2220
|
+
[1m[35m (2.2ms)[0m [1m[35mALTER TABLE "message_bus_subscription_events" RENAME COLUMN "public_subscription_id" TO "subscription_id"[0m
|
2221
|
+
[1m[36mActiveRecord::SchemaMigration Create (1.8ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201005150212"]]
|
2222
|
+
[1m[35m (2.0ms)[0m [1m[35mCOMMIT[0m
|
2223
|
+
Migrating to CreateActiveStorageTables (20201005164116)
|
2224
|
+
[1m[35m (1.4ms)[0m [1m[35mBEGIN[0m
|
2225
|
+
[1m[36mActiveRecord::SchemaMigration Create (2.7ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20201005164116"]]
|
2226
|
+
[1m[35m (3.1ms)[0m [1m[35mCOMMIT[0m
|
2227
|
+
[1m[36mActiveRecord::InternalMetadata Load (2.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2228
|
+
[1m[35m (2.3ms)[0m [1m[35mBEGIN[0m
|
2229
|
+
[1m[36mActiveRecord::InternalMetadata Create (7.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-07 20:34:57.122757"], ["updated_at", "2020-10-07 20:34:57.122757"]]
|
2230
|
+
[1m[35m (2.9ms)[0m [1m[35mCOMMIT[0m
|
2231
|
+
[1m[35m (2.0ms)[0m [1m[34mSELECT pg_advisory_unlock(3053653019973222135)[0m
|
2232
|
+
[1m[35m (2.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2233
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_development" ENCODING = 'utf8'[0m
|
2234
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE DATABASE "nulogy_message_bus_producer_test" ENCODING = 'utf8'[0m
|
2235
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2236
|
+
[1m[35m (2.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2237
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2238
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2239
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2240
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
2241
|
+
[1m[35mSQL (2.0ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2242
|
+
[1m[35mSQL (1.3ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2243
|
+
[1m[35m (7.8ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2244
|
+
[1m[35m (17.2ms)[0m [1m[35mCREATE 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)[0m
|
2245
|
+
[1m[35m (3.0ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2246
|
+
[1m[35m (2.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2247
|
+
[1m[35m (3.8ms)[0m [1m[35mCREATE 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)[0m
|
2248
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2249
|
+
[1m[35m (1.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2250
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.5ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2251
|
+
[1m[35m (1.0ms)[0m [1m[35mBEGIN[0m
|
2252
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2253
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.3ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2254
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2255
|
+
[1m[35m (0.9ms)[0m [1m[35mCOMMIT[0m
|
2256
|
+
[1m[35mSQL (1.7ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
2257
|
+
[1m[35mSQL (13.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "uuid-ossp"[0m
|
2258
|
+
[1m[35m (2.4ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscription_events" CASCADE[0m
|
2259
|
+
[1m[35m (17.5ms)[0m [1m[35mCREATE 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)[0m
|
2260
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscription_events_on_created_at" ON "message_bus_subscription_events" ("created_at")[0m
|
2261
|
+
[1m[35m (1.1ms)[0m [1m[35mDROP TABLE IF EXISTS "message_bus_subscriptions" CASCADE[0m
|
2262
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE 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)[0m
|
2263
|
+
[1m[35m (2.8ms)[0m [1m[35mCREATE INDEX "index_nulogy_mb_producer_subscriptions_on_event_type" ON "message_bus_subscriptions" ("event_type")[0m
|
2264
|
+
[1m[35m (4.7ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
2265
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
2266
|
+
[1m[35m (1.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20201005164116)[0m
|
2267
|
+
[1m[35m (1.4ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
2268
|
+
(20200611150212),
|
2269
|
+
(20201005150212);
|
2270
|
+
|
2271
|
+
[0m
|
2272
|
+
[1m[35m (4.3ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
2273
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2274
|
+
[1m[35m (1.1ms)[0m [1m[35mBEGIN[0m
|
2275
|
+
[1m[36mActiveRecord::InternalMetadata Create (1.4ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "development"], ["created_at", "2020-10-08 19:11:47.210016"], ["updated_at", "2020-10-08 19:11:47.210016"]]
|
2276
|
+
[1m[35m (1.5ms)[0m [1m[35mCOMMIT[0m
|
2277
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.0ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
2278
|
+
[1m[35m (0.9ms)[0m [1m[35mBEGIN[0m
|
2279
|
+
[1m[36mActiveRecord::InternalMetadata Update (1.1ms)[0m [1m[33mUPDATE "ar_internal_metadata" SET "value" = $1, "updated_at" = $2 WHERE "ar_internal_metadata"."key" = $3[0m [["value", "test"], ["updated_at", "2020-10-08 19:11:47.218022"], ["key", "environment"]]
|
2280
|
+
[1m[35m (1.3ms)[0m [1m[35mCOMMIT[0m
|
2281
|
+
[1m[35m (1.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|