nulogy_message_bus_producer 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +35 -0
  3. data/Rakefile +22 -0
  4. data/db/migrate/20200611150212_create_public_subscriptions_and_events_tables.rb +25 -0
  5. data/lib/nulogy_message_bus_producer.rb +112 -0
  6. data/lib/nulogy_message_bus_producer/application_record.rb +6 -0
  7. data/lib/nulogy_message_bus_producer/base_public_subscription.rb +13 -0
  8. data/lib/nulogy_message_bus_producer/engine.rb +6 -0
  9. data/lib/nulogy_message_bus_producer/postgres_public_subscriptions.rb +102 -0
  10. data/lib/nulogy_message_bus_producer/public_subscription.rb +27 -0
  11. data/lib/nulogy_message_bus_producer/public_subscription_event.rb +13 -0
  12. data/lib/nulogy_message_bus_producer/subscriber_graphql_schema_validator.rb +45 -0
  13. data/lib/nulogy_message_bus_producer/version.rb +3 -0
  14. data/spec/dummy/Rakefile +6 -0
  15. data/spec/dummy/app/assets/config/manifest.js +4 -0
  16. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  17. data/spec/dummy/app/assets/javascripts/cable.js +13 -0
  18. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  19. data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
  20. data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
  21. data/spec/dummy/app/controllers/application_controller.rb +7 -0
  22. data/spec/dummy/app/controllers/dummy_controller.rb +17 -0
  23. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  24. data/spec/dummy/app/jobs/application_job.rb +2 -0
  25. data/spec/dummy/app/mailers/application_mailer.rb +4 -0
  26. data/spec/dummy/app/models/application_record.rb +3 -0
  27. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  28. data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
  29. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  30. data/spec/dummy/bin/bundle +3 -0
  31. data/spec/dummy/bin/rails +4 -0
  32. data/spec/dummy/bin/rake +4 -0
  33. data/spec/dummy/bin/setup +38 -0
  34. data/spec/dummy/bin/update +29 -0
  35. data/spec/dummy/bin/yarn +11 -0
  36. data/spec/dummy/config.ru +5 -0
  37. data/spec/dummy/config/application.rb +22 -0
  38. data/spec/dummy/config/boot.rb +5 -0
  39. data/spec/dummy/config/cable.yml +10 -0
  40. data/spec/dummy/config/database.yml +22 -0
  41. data/spec/dummy/config/environment.rb +5 -0
  42. data/spec/dummy/config/environments/development.rb +54 -0
  43. data/spec/dummy/config/environments/production.rb +91 -0
  44. data/spec/dummy/config/environments/test.rb +42 -0
  45. data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
  46. data/spec/dummy/config/initializers/assets.rb +14 -0
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  48. data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
  49. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  50. data/spec/dummy/config/initializers/inflections.rb +16 -0
  51. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  53. data/spec/dummy/config/locales/en.yml +33 -0
  54. data/spec/dummy/config/puma.rb +56 -0
  55. data/spec/dummy/config/routes.rb +6 -0
  56. data/spec/dummy/config/secrets.yml +32 -0
  57. data/spec/dummy/config/spring.rb +6 -0
  58. data/spec/dummy/db/schema.rb +42 -0
  59. data/spec/dummy/log/development.log +1771 -0
  60. data/spec/dummy/log/test.log +14189 -0
  61. data/spec/dummy/package.json +5 -0
  62. data/spec/dummy/public/404.html +67 -0
  63. data/spec/dummy/public/422.html +67 -0
  64. data/spec/dummy/public/500.html +66 -0
  65. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  66. data/spec/dummy/public/apple-touch-icon.png +0 -0
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/integration/lib/graphql_api/postgres_public_subscriptions_spec.rb +16 -0
  69. data/spec/integration/lib/graphql_api/validators/subscriber_graphql_schema_validator_spec.rb +76 -0
  70. data/spec/integration_spec_helper.rb +35 -0
  71. data/spec/spec_helper.rb +60 -0
  72. data/spec/unit/lib/graphql_api/models/public_subscription_spec.rb +56 -0
  73. data/spec/unit_spec_helper.rb +6 -0
  74. metadata +342 -0
@@ -0,0 +1,42 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure public file server for tests with Cache-Control for performance.
16
+ config.public_file_server.enabled = true
17
+ config.public_file_server.headers = {
18
+ 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}"
19
+ }
20
+
21
+ # Show full error reports and disable caching.
22
+ config.consider_all_requests_local = true
23
+ config.action_controller.perform_caching = false
24
+
25
+ # Raise exceptions instead of rendering exception templates.
26
+ config.action_dispatch.show_exceptions = false
27
+
28
+ # Disable request forgery protection in test environment.
29
+ config.action_controller.allow_forgery_protection = false
30
+ config.action_mailer.perform_caching = false
31
+
32
+ # Tell Action Mailer not to deliver emails to the real world.
33
+ # The :test delivery method accumulates sent emails in the
34
+ # ActionMailer::Base.deliveries array.
35
+ config.action_mailer.delivery_method = :test
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,8 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # ActiveSupport::Reloader.to_prepare do
4
+ # ApplicationController.renderer.defaults.merge!(
5
+ # http_host: 'example.org',
6
+ # https: false
7
+ # )
8
+ # end
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path.
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+ # Add Yarn node_modules folder to the asset load path.
9
+ Rails.application.config.assets.paths << Rails.root.join('node_modules')
10
+
11
+ # Precompile additional assets.
12
+ # application.js, application.css, and all non-JS/CSS in the app/assets
13
+ # folder are already added.
14
+ # Rails.application.config.assets.precompile += %w( admin.js admin.css )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,5 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Specify a serializer for the signed and encrypted cookie jars.
4
+ # Valid options are :json, :marshal, and :hybrid.
5
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json]
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,33 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
29
+ # To learn more, please read the Rails Internationalization guide
30
+ # available at http://guides.rubyonrails.org/i18n.html.
31
+
32
+ en:
33
+ hello: "Hello world"
@@ -0,0 +1,56 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory. If you use this option
30
+ # you need to make sure to reconnect any threads in the `on_worker_boot`
31
+ # block.
32
+ #
33
+ # preload_app!
34
+
35
+ # If you are preloading your application and using Active Record, it's
36
+ # recommended that you close any connections to the database before workers
37
+ # are forked to prevent connection leakage.
38
+ #
39
+ # before_fork do
40
+ # ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
41
+ # end
42
+
43
+ # The code in the `on_worker_boot` will be called if you are using
44
+ # clustered mode by specifying a number of `workers`. After each worker
45
+ # process is booted, this block will be run. If you are using the `preload_app!`
46
+ # option, you will want to use this block to reconnect to any threads
47
+ # or connections that may have been created at application boot, as Ruby
48
+ # cannot share connections between processes.
49
+ #
50
+ # on_worker_boot do
51
+ # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
52
+ # end
53
+ #
54
+
55
+ # Allow puma to be restarted by `rails restart` command.
56
+ plugin :tmp_restart
@@ -0,0 +1,6 @@
1
+ Rails.application.routes.draw do
2
+ get "/graphql/dummy/test_exception", to: "dummy#test_exception"
3
+ get "/graphql/dummy/test_record_not_found", to: "dummy#test_record_not_found"
4
+ get "/graphql/dummy/test_unauthorized", to: "dummy#test_unauthorized"
5
+ get "/graphql/dummy/test_timeout", to: "dummy#test_timeout"
6
+ end
@@ -0,0 +1,32 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rails secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ # Shared secrets are available across all environments.
14
+
15
+ # shared:
16
+ # api_key: a1B2c3D4e5F6
17
+
18
+ # Environmental secrets are only available for that specific environment.
19
+
20
+ development:
21
+ secret_key_base: cc913391931527bcccfd50ebc056048127b3b393f7d9a19a85cf5da251b9ae3fcdbb291e83cf1822732b74fbfe67abdb294a5a6394c29b0b7a0153fd7555a969
22
+
23
+ test:
24
+ secret_key_base: 2fb6567735d1fd93318082df2b749d052002ca600e15bb26cbf343babcc4a8286a385201712dbf3836121ec9ae0260b15f2b1c368d9cdb781d3c8c31c8dccf0f
25
+
26
+ # Do not keep production secrets in the unencrypted secrets file.
27
+ # Instead, either read values from the environment.
28
+ # Or, use `bin/rails secrets:setup` to configure encrypted secrets
29
+ # and move the `production:` environment over there.
30
+
31
+ production:
32
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
@@ -0,0 +1,42 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 2020_06_11_150212) do
14
+
15
+ # These are extensions that must be enabled in order to support this database
16
+ enable_extension "citext"
17
+ enable_extension "hstore"
18
+ enable_extension "plpgsql"
19
+ enable_extension "uuid-ossp"
20
+
21
+ create_table "message_bus_subscription_events", id: :uuid, default: nil, force: :cascade do |t|
22
+ t.uuid "public_subscription_id", null: false
23
+ t.string "partition_key", null: false
24
+ t.string "topic_name", null: false
25
+ t.uuid "tenant_id", null: false
26
+ t.json "event_json", null: false
27
+ t.datetime "created_at"
28
+ t.index ["created_at"], name: "index_nulogy_mb_producer_subscription_events_on_created_at"
29
+ end
30
+
31
+ create_table "message_bus_subscriptions", id: :uuid, default: nil, force: :cascade do |t|
32
+ t.uuid "subscription_group_id", null: false
33
+ t.string "event_type", null: false
34
+ t.string "topic_name", null: false
35
+ t.string "query", null: false
36
+ t.text "schema_key", null: false
37
+ t.datetime "created_at", null: false
38
+ t.datetime "updated_at", null: false
39
+ t.index ["event_type"], name: "index_nulogy_mb_producer_subscriptions_on_event_type"
40
+ end
41
+
42
+ end
@@ -0,0 +1,1771 @@
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