hertz 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -12
  3. data/app/models/hertz/notification.rb +1 -1
  4. data/config/routes.rb +2 -0
  5. data/db/migrate/20160415174901_create_hertz_notifications.rb +2 -0
  6. data/db/migrate/20160627084018_create_hertz_notification_deliveries.rb +2 -0
  7. data/db/migrate/20160628084342_rename_notification_deliveries_to_deliveries.rb +2 -0
  8. data/db/migrate/20200112143142_convert_notification_meta_to_jsonb.rb +14 -0
  9. data/lib/hertz/notifiable.rb +8 -8
  10. data/lib/hertz/version.rb +1 -1
  11. data/spec/examples.txt +21 -0
  12. data/spec/hertz/notifiable_spec.rb +1 -1
  13. data/spec/hertz/notification_deliverer_spec.rb +8 -12
  14. data/spec/{dummy/public/favicon.ico → internal/app/assets/config/manifest.js} +0 -0
  15. data/spec/{dummy → internal}/app/models/test_notification.rb +2 -0
  16. data/spec/{dummy → internal}/app/models/user.rb +2 -0
  17. data/spec/internal/config/database.yml +3 -0
  18. data/spec/internal/config/routes.rb +5 -0
  19. data/spec/internal/db/schema.rb +7 -0
  20. data/spec/internal/log/test.log +2425 -0
  21. data/spec/internal/public/favicon.ico +0 -0
  22. data/spec/models/hertz/notification_spec.rb +26 -5
  23. data/spec/spec_helper.rb +13 -0
  24. data/spec/support/database_cleaner.rb +4 -3
  25. data/spec/support/factory_bot.rb +2 -0
  26. data/spec/support/faker.rb +2 -0
  27. metadata +59 -107
  28. data/spec/dummy/README.rdoc +0 -28
  29. data/spec/dummy/Rakefile +0 -6
  30. data/spec/dummy/app/assets/javascripts/application.js +0 -13
  31. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  32. data/spec/dummy/app/controllers/application_controller.rb +0 -5
  33. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  34. data/spec/dummy/app/views/hertz/notification_mailer/test_notification.html.erb +0 -1
  35. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  36. data/spec/dummy/bin/bundle +0 -3
  37. data/spec/dummy/bin/rails +0 -4
  38. data/spec/dummy/bin/rake +0 -4
  39. data/spec/dummy/bin/setup +0 -29
  40. data/spec/dummy/config.ru +0 -4
  41. data/spec/dummy/config/application.rb +0 -22
  42. data/spec/dummy/config/boot.rb +0 -5
  43. data/spec/dummy/config/database.example.yml +0 -19
  44. data/spec/dummy/config/database.travis.yml +0 -4
  45. data/spec/dummy/config/environment.rb +0 -5
  46. data/spec/dummy/config/environments/development.rb +0 -41
  47. data/spec/dummy/config/environments/production.rb +0 -79
  48. data/spec/dummy/config/environments/test.rb +0 -42
  49. data/spec/dummy/config/initializers/assets.rb +0 -11
  50. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  51. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -3
  52. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  53. data/spec/dummy/config/initializers/hertz.rb +0 -2
  54. data/spec/dummy/config/initializers/inflections.rb +0 -16
  55. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  56. data/spec/dummy/config/initializers/session_store.rb +0 -3
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  58. data/spec/dummy/config/locales/en.yml +0 -23
  59. data/spec/dummy/config/routes.rb +0 -4
  60. data/spec/dummy/config/secrets.yml +0 -22
  61. data/spec/dummy/db/migrate/20160415175358_create_hertz_notifications.hertz.rb +0 -15
  62. data/spec/dummy/db/migrate/20160415175837_create_users.rb +0 -8
  63. data/spec/dummy/db/migrate/20160418122437_add_email_to_users.rb +0 -5
  64. data/spec/dummy/db/migrate/20160508094342_remove_email_from_users.rb +0 -5
  65. data/spec/dummy/db/migrate/20160627084119_create_hertz_notification_deliveries.hertz.rb +0 -13
  66. data/spec/dummy/db/migrate/20160628084413_rename_notification_deliveries_to_deliveries.hertz.rb +0 -6
  67. data/spec/dummy/db/schema.rb +0 -44
  68. data/spec/dummy/public/404.html +0 -67
  69. data/spec/dummy/public/422.html +0 -67
  70. data/spec/dummy/public/500.html +0 -66
  71. data/spec/rails_helper.rb +0 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d6cb83749f5c26265f7c4e034bc4d7b4a860ff9e976bd9749ece869d04b0312
4
- data.tar.gz: dbbf0fe3c453b17d7178849aa50114ee38dfe319b4b1a41ae26ad29009f7d743
3
+ metadata.gz: f1e9e8be336b96122198384b92ac3ff552b1f43eeeb37f0c947d6e12fc5eba04
4
+ data.tar.gz: 3c25d69d2e84434a8406d240a7edc9dc0dfa8b7ab1aecb981698162fb4548639
5
5
  SHA512:
6
- metadata.gz: 1f27a28147d6d505617f383480afd38161c3bc2ab86dd5bcc1c2554ca3bd511f0a3e89303bdef31692d2bd9633e5df81c265980570f322037ab364c8ce197f71
7
- data.tar.gz: 8b7e1d023865f0f17a83a5e56ad891c62b6d6a1fd4e23a2efb201b1356a58cfdbce8468c5a4ef6d388d0f41af5b4d079c20306125e9b42fe1c3ee8bb58f826bf
6
+ metadata.gz: 9054657e7e3ebd510626bdbfb60cfde388931bc81963f3dc4a42a841861b06cfa0c1d1c65f66186503f036e0754120fee4cf0ce1cf9cf533cd61ddd3370abb47
7
+ data.tar.gz: 60b65d4214ded86a3988679ce75ab6e0faad80d32cc9554daa7f6a03169961b97aa1b31238e0d33db4474171b3500f50ecd4ce65e747d071b9140c10ee42e77f
data/README.md CHANGED
@@ -45,8 +45,8 @@ end
45
45
 
46
46
  ### Using couriers
47
47
 
48
- Couriers are what Hertz uses to deliver notifications to your users. For instance, you might have a courier for
49
- delivering notifications by SMS and another one for delivering them by email.
48
+ Couriers are what Hertz uses to deliver notifications to your users. For instance, you might have a
49
+ courier for delivering notifications by SMS and another one for delivering them by email.
50
50
 
51
51
  Creating a new courier in Hertz is easy:
52
52
 
@@ -62,15 +62,15 @@ end
62
62
 
63
63
  ### Creating new notification types
64
64
 
65
- In Hertz, every notification is a model. If you want to create a new notification type, just create a new model
66
- inheriting from `Hertz::Notification`:
65
+ In Hertz, every notification is a model. If you want to create a new notification type, just create
66
+ a new model inheriting from `Hertz::Notification`:
67
67
 
68
68
  ```ruby
69
69
  class CommentNotification < Hertz::Notification
70
70
  end
71
71
  ```
72
- Since not all notifications might implement interfaces for all couriers, you have to manually specify which couriers
73
- they implement via `deliver_by`:
72
+ Since not all notifications might implement interfaces for all couriers, you have to manually
73
+ specify which couriers they implement via `deliver_by`:
74
74
 
75
75
  ```ruby
76
76
  class CommentNotification < Hertz::Notification
@@ -80,7 +80,8 @@ end
80
80
 
81
81
  Notifications are not required to implement any couriers.
82
82
 
83
- You can set common couriers (i.e. couriers that will be used for all notifications) by putting the following into an
83
+ You can set common couriers (i.e. couriers that will be used for all notifications) by putting the
84
+ following into an
84
85
  initializer:
85
86
 
86
87
  ```ruby
@@ -91,7 +92,8 @@ end
91
92
 
92
93
  ### Attaching metadata to a notification
93
94
 
94
- You can attach custom metadata to a notification, but make sure it can be cleanly stored in an hstore:
95
+ You can attach custom metadata to a notification, but make sure it can be cleanly stored in an
96
+ hstore:
95
97
 
96
98
  ```ruby
97
99
  notification = CommentNotification.new(meta: { comment_id: comment.id })
@@ -108,7 +110,8 @@ class CommentNotification < Hertz::Notification
108
110
  end
109
111
  ```
110
112
 
111
- Note that you should always access your metadata with string keys, regardless of the type you use when attaching it.
113
+ Note that you should always access your metadata with string keys, regardless of the type you use
114
+ when attaching it.
112
115
 
113
116
  ### Notifying users
114
117
 
@@ -137,8 +140,9 @@ notification.mark_as_unread
137
140
 
138
141
  ### Tracking delivery status
139
142
 
140
- Hertz provides an API couriers can use to mark the notification as delivered. This allows you to know which couriers
141
- have successfully delivered your notifications and helps prevent double deliveries:
143
+ Hertz provides an API couriers can use to mark the notification as delivered. This allows you to
144
+ know which couriers have successfully delivered your notifications and helps prevent double
145
+ deliveries:
142
146
 
143
147
  ```ruby
144
148
  notification.delivered_with?(:email) # => false
@@ -146,7 +150,8 @@ notification.mark_delivered_with(:email) # => Hertz::Delivery
146
150
  notification.delivered_with?(:email) # => true
147
151
  ```
148
152
 
149
- Hertz does not enforce usage of the delivery API in any way, so some couriers might not take advantage of it.
153
+ Hertz does not enforce usage of the delivery status API in any way, so some couriers may not take
154
+ advantage of it.
150
155
 
151
156
  ## Available couriers
152
157
 
@@ -10,7 +10,7 @@ module Hertz
10
10
  belongs_to :receiver, inverse_of: :notifications, polymorphic: true
11
11
  has_many :deliveries, inverse_of: :notification
12
12
 
13
- after_commit :deliver
13
+ after_commit :deliver, on: %i[create update]
14
14
 
15
15
  class << self
16
16
  def couriers
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  Hertz::Engine.routes.draw do
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class CreateHertzNotifications < ActiveRecord::Migration[5.0]
2
4
  def change
3
5
  enable_extension 'hstore'
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class CreateHertzNotificationDeliveries < ActiveRecord::Migration[5.0]
2
4
  def change
3
5
  create_table :hertz_notification_deliveries do |t|
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class RenameNotificationDeliveriesToDeliveries < ActiveRecord::Migration[5.0]
2
4
  def change
3
5
  rename_table :hertz_notification_deliveries, :hertz_deliveries
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ class ConvertNotificationMetaToJsonb < ActiveRecord::Migration[5.0]
4
+ def change
5
+ reversible do |dir|
6
+ dir.up do
7
+ change_column_null :hertz_notifications, :meta, true
8
+ change_column_default :hertz_notifications, :meta, nil
9
+ change_column :hertz_notifications, :meta, 'jsonb USING meta::jsonb'
10
+ change_column_default :hertz_notifications, :meta, {}
11
+ end
12
+ end
13
+ end
14
+ end
@@ -5,19 +5,19 @@ module Hertz
5
5
  def self.included(base)
6
6
  base.class_eval do
7
7
  has_many :notifications,
8
- class_name: 'Hertz::Notification',
9
- as: :receiver,
10
- inverse_of: :receiver,
11
- dependent: :destroy
8
+ class_name: 'Hertz::Notification',
9
+ as: :receiver,
10
+ inverse_of: :receiver,
11
+ dependent: :destroy
12
12
  end
13
13
  end
14
14
 
15
15
  def notify(notification_or_klass, meta = {})
16
16
  notification = if notification_or_klass.is_a?(Class)
17
- notification_or_klass.new(meta: meta)
18
- else
19
- notification_or_klass
20
- end
17
+ notification_or_klass.new(meta: meta)
18
+ else
19
+ notification_or_klass
20
+ end
21
21
 
22
22
  notification.receiver = self
23
23
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Hertz
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.0'
5
5
  end
@@ -0,0 +1,21 @@
1
+ example_id | status | run_time |
2
+ ---------------------------------------------------- | ------ | --------------- |
3
+ ./spec/hertz/hertz_spec.rb[1:1:1] | passed | 0.01316 seconds |
4
+ ./spec/hertz/notifiable_spec.rb[1:1:1] | passed | 0.0466 seconds |
5
+ ./spec/hertz/notifiable_spec.rb[1:2:1:1] | passed | 0.02397 seconds |
6
+ ./spec/hertz/notifiable_spec.rb[1:2:2:1] | passed | 0.03042 seconds |
7
+ ./spec/hertz/notifiable_spec.rb[1:2:2:2] | passed | 0.02568 seconds |
8
+ ./spec/hertz/notification_deliverer_spec.rb[1:1:1] | passed | 0.02685 seconds |
9
+ ./spec/hertz/notification_deliverer_spec.rb[1:1:2:1] | passed | 0.01959 seconds |
10
+ ./spec/hertz/notification_deliverer_spec.rb[1:1:2:2] | passed | 0.01998 seconds |
11
+ ./spec/models/hertz/notification_spec.rb[1:1:1] | passed | 0.0127 seconds |
12
+ ./spec/models/hertz/notification_spec.rb[1:2:1] | passed | 0.0155 seconds |
13
+ ./spec/models/hertz/notification_spec.rb[1:3:1] | passed | 0.01927 seconds |
14
+ ./spec/models/hertz/notification_spec.rb[1:4:1] | passed | 0.02234 seconds |
15
+ ./spec/models/hertz/notification_spec.rb[1:5:1] | passed | 0.04503 seconds |
16
+ ./spec/models/hertz/notification_spec.rb[1:6:1] | passed | 0.0218 seconds |
17
+ ./spec/models/hertz/notification_spec.rb[1:7:1] | passed | 0.02495 seconds |
18
+ ./spec/models/hertz/notification_spec.rb[1:8:1] | passed | 0.02728 seconds |
19
+ ./spec/models/hertz/notification_spec.rb[1:9:1] | passed | 0.02765 seconds |
20
+ ./spec/models/hertz/notification_spec.rb[1:9:2:1] | passed | 0.01941 seconds |
21
+ ./spec/models/hertz/notification_spec.rb[1:9:3] | passed | 0.01679 seconds |
@@ -13,7 +13,7 @@ RSpec.describe Hertz::Notifiable do
13
13
 
14
14
  describe '#notify' do
15
15
  before do
16
- class TestNotification < Hertz::Notification; end
16
+ stub_const('TestNotification', Class.new(Hertz::Notification))
17
17
  end
18
18
 
19
19
  context 'with a notification object' do
@@ -4,18 +4,16 @@ RSpec.describe Hertz::NotificationDeliverer do
4
4
  subject { described_class }
5
5
 
6
6
  before do
7
- module Hertz
8
- class Test
9
- def self.deliver_notification(_notification); end
10
- end
11
- end
7
+ stub_const('Hertz::Test', (Class.new do
8
+ def self.deliver_notification(_notification); end
9
+ end))
12
10
  end
13
11
 
14
12
  describe '#deliver' do
15
13
  let(:notification) do
16
- Class.new(TestNotification) do
14
+ stub_const('TestNotification', (Class.new(Hertz::Notification) do
17
15
  deliver_by :test
18
- end.new
16
+ end)).new
19
17
  end
20
18
 
21
19
  it 'delivers the notification through the couriers' do
@@ -28,11 +26,9 @@ RSpec.describe Hertz::NotificationDeliverer do
28
26
 
29
27
  context 'when common couriers are defined' do
30
28
  before do
31
- module Hertz
32
- class Common
33
- def self.deliver_notification(_notification); end
34
- end
35
- end
29
+ stub_const('Hertz::Common', (Class.new do
30
+ def self.deliver_notification(_notification); end
31
+ end))
36
32
 
37
33
  allow(Hertz).to receive(:common_couriers).and_return([:common])
38
34
  allow(Hertz::Test).to receive(:deliver_notification)
@@ -1,2 +1,4 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class TestNotification < Hertz::Notification
2
4
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  class User < ActiveRecord::Base
2
4
  include Hertz::Notifiable
3
5
 
@@ -0,0 +1,3 @@
1
+ test:
2
+ adapter: postgresql
3
+ database: hertz_test
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ Rails.application.routes.draw do
4
+ # Add your own routes here, or remove this file if you don't have need for it.
5
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ ActiveRecord::Schema.define do
4
+ create_table(:users, force: true) do |t|
5
+ t.string :email
6
+ end
7
+ end
@@ -0,0 +1,2425 @@
1
+  (226.9ms) DROP DATABASE IF EXISTS "hertz_test"
2
+  (546.1ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
3
+  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
4
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
5
+  (0.1ms) BEGIN
6
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:17:05.950039"], ["updated_at", "2019-09-13 20:17:05.950039"]]
7
+  (19.9ms) COMMIT
8
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
9
+  (0.1ms) SELECT pg_try_advisory_lock(1407845914734082845)
10
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
11
+ Migrating to CreateHertzNotifications (20160415174901)
12
+  (0.1ms) BEGIN
13
+ SQL (50.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
14
+  (6.1ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
15
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
16
+  (0.8ms) COMMIT
17
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
18
+  (40.2ms) BEGIN
19
+  (8.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
20
+ FOREIGN KEY ("notification_id")
21
+ REFERENCES "hertz_notifications" ("id")
22
+ ON DELETE CASCADE)
23
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
24
+  (2.5ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
25
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
26
+  (0.6ms) COMMIT
27
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
28
+  (0.5ms) BEGIN
29
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
30
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
31
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
32
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
33
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
34
+  (2.3ms) COMMIT
35
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
36
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
37
+  (214.9ms) DROP DATABASE IF EXISTS "hertz_test"
38
+  (430.3ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
39
+  (6.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
40
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
41
+  (0.2ms) BEGIN
42
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:17:45.346996"], ["updated_at", "2019-09-13 20:17:45.346996"]]
43
+  (0.5ms) COMMIT
44
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
45
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
46
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
47
+ Migrating to CreateHertzNotifications (20160415174901)
48
+  (0.1ms) BEGIN
49
+ SQL (20.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
50
+  (3.9ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
51
+ primary::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
52
+  (1.0ms) COMMIT
53
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
54
+  (0.5ms) BEGIN
55
+  (3.7ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
56
+ FOREIGN KEY ("notification_id")
57
+ REFERENCES "hertz_notifications" ("id")
58
+ ON DELETE CASCADE)
59
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
60
+  (1.1ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
61
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
62
+  (0.5ms) COMMIT
63
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
64
+  (0.1ms) BEGIN
65
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
66
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
67
+  (0.5ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
68
+  (0.3ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
69
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
70
+  (0.9ms) COMMIT
71
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
72
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
73
+  (186.6ms) DROP DATABASE IF EXISTS "hertz_test"
74
+  (440.7ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
75
+  (6.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
76
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
77
+  (0.2ms) BEGIN
78
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:17:53.250348"], ["updated_at", "2019-09-13 20:17:53.250348"]]
79
+  (0.4ms) COMMIT
80
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
81
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
82
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
83
+ Migrating to CreateHertzNotifications (20160415174901)
84
+  (0.2ms) BEGIN
85
+ SQL (18.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
86
+  (3.6ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
87
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
88
+  (0.9ms) COMMIT
89
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
90
+  (0.3ms) BEGIN
91
+  (4.0ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
92
+ FOREIGN KEY ("notification_id")
93
+ REFERENCES "hertz_notifications" ("id")
94
+ ON DELETE CASCADE)
95
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
96
+  (1.2ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
97
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
98
+  (0.5ms) COMMIT
99
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
100
+  (0.2ms) BEGIN
101
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
102
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
103
+  (0.1ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
104
+  (0.1ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
105
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
106
+  (0.6ms) COMMIT
107
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
108
+  (0.1ms) SELECT pg_advisory_unlock(1407845914734082845)
109
+  (209.5ms) DROP DATABASE IF EXISTS "hertz_test"
110
+  (466.6ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
111
+  (6.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
112
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
113
+  (0.1ms) BEGIN
114
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:18:05.111708"], ["updated_at", "2019-09-13 20:18:05.111708"]]
115
+  (0.5ms) COMMIT
116
+  (3.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
117
+  (0.3ms) SELECT pg_try_advisory_lock(1407845914734082845)
118
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
119
+ Migrating to CreateHertzNotifications (20160415174901)
120
+  (0.2ms) BEGIN
121
+ SQL (18.9ms) CREATE EXTENSION IF NOT EXISTS "hstore"
122
+  (4.3ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
123
+ primary::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
124
+  (0.9ms) COMMIT
125
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
126
+  (0.3ms) BEGIN
127
+  (8.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
128
+ FOREIGN KEY ("notification_id")
129
+ REFERENCES "hertz_notifications" ("id")
130
+ ON DELETE CASCADE)
131
+  (1.0ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
132
+  (1.6ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
133
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
134
+  (0.6ms) COMMIT
135
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
136
+  (0.2ms) BEGIN
137
+  (0.4ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
138
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
139
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
140
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
141
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
142
+  (0.4ms) COMMIT
143
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
144
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
145
+  (190.8ms) DROP DATABASE IF EXISTS "hertz_test"
146
+  (474.7ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
147
+  (5.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
148
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
149
+  (0.1ms) BEGIN
150
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:18:15.120810"], ["updated_at", "2019-09-13 20:18:15.120810"]]
151
+  (0.2ms) COMMIT
152
+  (1.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
153
+  (0.3ms) SELECT pg_try_advisory_lock(1407845914734082845)
154
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
155
+ Migrating to CreateHertzNotifications (20160415174901)
156
+  (0.2ms) BEGIN
157
+ SQL (18.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
158
+  (4.3ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
159
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
160
+  (0.7ms) COMMIT
161
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
162
+  (0.3ms) BEGIN
163
+  (4.3ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
164
+ FOREIGN KEY ("notification_id")
165
+ REFERENCES "hertz_notifications" ("id")
166
+ ON DELETE CASCADE)
167
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
168
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
169
+ primary::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
170
+  (0.3ms) COMMIT
171
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
172
+  (0.1ms) BEGIN
173
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
174
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
175
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
176
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
177
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
178
+  (0.6ms) COMMIT
179
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
180
+  (0.1ms) SELECT pg_advisory_unlock(1407845914734082845)
181
+  (0.1ms) BEGIN
182
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
183
+  (0.4ms) COMMIT
184
+  (2.8ms)  SELECT schemaname || '.' || tablename
185
+ FROM pg_tables
186
+ WHERE
187
+ tablename !~ '_prt_' AND
188
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
189
+ schemaname = ANY (current_schemas(false))
190
+ 
191
+  (1.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
192
+  (8.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
193
+  (0.5ms) BEGIN
194
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
195
+  (0.3ms) COMMIT
196
+  (0.3ms) BEGIN
197
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
198
+  (0.4ms) COMMIT
199
+  (8.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
200
+  (0.4ms) BEGIN
201
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
202
+  (0.5ms) COMMIT
203
+  (0.1ms) BEGIN
204
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
205
+  (0.4ms) COMMIT
206
+  (7.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
207
+  (0.3ms) BEGIN
208
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
209
+  (0.2ms) COMMIT
210
+  (0.2ms) BEGIN
211
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
212
+  (0.2ms) COMMIT
213
+  (7.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
214
+  (0.2ms) BEGIN
215
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
216
+  (0.3ms) COMMIT
217
+  (0.2ms) BEGIN
218
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
219
+  (0.3ms) COMMIT
220
+  (5.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
221
+  (0.2ms) BEGIN
222
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
223
+  (0.1ms) COMMIT
224
+  (0.1ms) BEGIN
225
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
226
+  (0.1ms) COMMIT
227
+  (4.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
228
+  (0.3ms) BEGIN
229
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
230
+  (0.2ms) COMMIT
231
+  (0.1ms) BEGIN
232
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
233
+  (0.3ms) COMMIT
234
+  (5.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
235
+  (0.2ms) BEGIN
236
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
237
+  (0.1ms) COMMIT
238
+  (0.1ms) BEGIN
239
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
240
+  (0.2ms) COMMIT
241
+  (4.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
242
+  (0.2ms) BEGIN
243
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
244
+  (0.3ms) COMMIT
245
+  (0.2ms) BEGIN
246
+  (0.7ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
247
+  (0.5ms) COMMIT
248
+  (9.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
249
+  (0.6ms) BEGIN
250
+  (0.6ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
251
+  (0.4ms) COMMIT
252
+  (0.1ms) BEGIN
253
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
254
+  (0.2ms) COMMIT
255
+  (5.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
256
+  (0.3ms) BEGIN
257
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
258
+  (0.3ms) COMMIT
259
+  (0.1ms) BEGIN
260
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
261
+  (0.3ms) COMMIT
262
+  (6.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
263
+  (0.3ms) BEGIN
264
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
265
+  (0.4ms) COMMIT
266
+  (0.2ms) BEGIN
267
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
268
+  (0.4ms) COMMIT
269
+  (11.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
270
+  (0.6ms) BEGIN
271
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
272
+  (0.4ms) COMMIT
273
+  (0.2ms) BEGIN
274
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
275
+  (0.3ms) COMMIT
276
+  (6.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
277
+  (0.3ms) BEGIN
278
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
279
+  (0.3ms) COMMIT
280
+  (0.1ms) BEGIN
281
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
282
+  (0.2ms) COMMIT
283
+  (6.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
284
+  (0.3ms) BEGIN
285
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
286
+  (0.2ms) COMMIT
287
+  (0.2ms) BEGIN
288
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
289
+  (0.5ms) COMMIT
290
+  (9.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
291
+  (0.3ms) BEGIN
292
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
293
+  (0.3ms) COMMIT
294
+  (0.1ms) BEGIN
295
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
296
+  (0.3ms) COMMIT
297
+  (10.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
298
+  (0.3ms) BEGIN
299
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
300
+  (0.2ms) COMMIT
301
+  (0.1ms) BEGIN
302
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
303
+  (0.3ms) COMMIT
304
+  (7.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
305
+  (0.3ms) BEGIN
306
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
307
+  (0.4ms) COMMIT
308
+  (0.2ms) BEGIN
309
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
310
+  (0.2ms) COMMIT
311
+  (5.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
312
+  (0.2ms) BEGIN
313
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
314
+  (0.1ms) COMMIT
315
+  (0.2ms) BEGIN
316
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
317
+  (0.2ms) COMMIT
318
+  (5.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
319
+  (0.3ms) BEGIN
320
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
321
+  (0.4ms) COMMIT
322
+  (0.1ms) BEGIN
323
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
324
+  (0.2ms) COMMIT
325
+  (5.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
326
+  (0.4ms) BEGIN
327
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
328
+  (0.2ms) COMMIT
329
+  (226.9ms) DROP DATABASE IF EXISTS "hertz_test"
330
+  (428.8ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
331
+  (0.2ms) DROP TABLE IF EXISTS "user"
332
+  (6.0ms) CREATE TABLE "user" ("id" bigserial primary key, "email" character varying)
333
+  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
334
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
335
+  (0.2ms) BEGIN
336
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:19:43.920044"], ["updated_at", "2019-09-13 20:19:43.920044"]]
337
+  (0.5ms) COMMIT
338
+  (3.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
339
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
340
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
341
+ Migrating to CreateHertzNotifications (20160415174901)
342
+  (0.1ms) BEGIN
343
+ SQL (18.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
344
+  (3.5ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
345
+ primary::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
346
+  (0.9ms) COMMIT
347
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
348
+  (0.6ms) BEGIN
349
+  (4.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
350
+ FOREIGN KEY ("notification_id")
351
+ REFERENCES "hertz_notifications" ("id")
352
+ ON DELETE CASCADE)
353
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
354
+  (1.0ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
355
+ primary::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
356
+  (0.6ms) COMMIT
357
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
358
+  (0.1ms) BEGIN
359
+  (0.5ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
360
+  (0.5ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
361
+  (0.3ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
362
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
363
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
364
+  (0.5ms) COMMIT
365
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
366
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
367
+  (0.1ms) BEGIN
368
+  (0.5ms) ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
369
+  (2.9ms) COMMIT
370
+  (1.5ms)  SELECT schemaname || '.' || tablename
371
+ FROM pg_tables
372
+ WHERE
373
+ tablename !~ '_prt_' AND
374
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
375
+ schemaname = ANY (current_schemas(false))
376
+ 
377
+  (0.9ms) select table_name from information_schema.views where table_schema = 'hertz_test'
378
+  (12.1ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
379
+  (0.4ms) BEGIN
380
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
381
+  (0.5ms) COMMIT
382
+  (0.2ms) BEGIN
383
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
384
+  (2.3ms) COMMIT
385
+  (12.1ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
386
+  (0.5ms) BEGIN
387
+  (0.4ms) ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
388
+  (0.4ms) COMMIT
389
+  (0.2ms) BEGIN
390
+  (0.4ms) ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
391
+  (0.4ms) COMMIT
392
+  (11.7ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
393
+  (0.4ms) BEGIN
394
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
395
+  (0.5ms) COMMIT
396
+  (0.2ms) BEGIN
397
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
398
+  (0.4ms) COMMIT
399
+  (10.3ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
400
+  (0.6ms) BEGIN
401
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
402
+  (0.4ms) COMMIT
403
+  (0.2ms) BEGIN
404
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
405
+  (0.3ms) COMMIT
406
+  (12.9ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
407
+  (0.6ms) BEGIN
408
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
409
+  (0.5ms) COMMIT
410
+  (0.2ms) BEGIN
411
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
412
+  (2.2ms) COMMIT
413
+  (11.5ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
414
+  (0.5ms) BEGIN
415
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
416
+  (0.6ms) COMMIT
417
+  (0.1ms) BEGIN
418
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
419
+  (0.5ms) COMMIT
420
+  (9.5ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
421
+  (0.5ms) BEGIN
422
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
423
+  (0.4ms) COMMIT
424
+  (0.1ms) BEGIN
425
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
426
+  (0.3ms) COMMIT
427
+  (7.6ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
428
+  (0.3ms) BEGIN
429
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
430
+  (0.3ms) COMMIT
431
+  (0.1ms) BEGIN
432
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
433
+  (0.5ms) COMMIT
434
+  (11.2ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
435
+  (0.4ms) BEGIN
436
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
437
+  (0.4ms) COMMIT
438
+  (0.1ms) BEGIN
439
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
440
+  (0.3ms) COMMIT
441
+  (9.4ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
442
+  (0.4ms) BEGIN
443
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
444
+  (0.4ms) COMMIT
445
+  (0.1ms) BEGIN
446
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
447
+  (0.4ms) COMMIT
448
+  (8.8ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
449
+  (0.7ms) BEGIN
450
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
451
+  (0.4ms) COMMIT
452
+  (0.1ms) BEGIN
453
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
454
+  (0.4ms) COMMIT
455
+  (11.2ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
456
+  (0.4ms) BEGIN
457
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
458
+  (0.5ms) COMMIT
459
+  (0.1ms) BEGIN
460
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
461
+  (0.4ms) COMMIT
462
+  (8.4ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
463
+  (0.3ms) BEGIN
464
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
465
+  (0.3ms) COMMIT
466
+  (0.1ms) BEGIN
467
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
468
+  (0.4ms) COMMIT
469
+  (11.0ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
470
+  (0.5ms) BEGIN
471
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
472
+  (0.5ms) COMMIT
473
+  (0.1ms) BEGIN
474
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
475
+  (0.4ms) COMMIT
476
+  (9.4ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
477
+  (0.4ms) BEGIN
478
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
479
+  (0.3ms) COMMIT
480
+  (0.2ms) BEGIN
481
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
482
+  (0.4ms) COMMIT
483
+  (49.7ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
484
+  (0.4ms) BEGIN
485
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
486
+  (0.3ms) COMMIT
487
+  (0.1ms) BEGIN
488
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
489
+  (0.3ms) COMMIT
490
+  (11.0ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
491
+  (0.5ms) BEGIN
492
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
493
+  (0.4ms) COMMIT
494
+  (0.1ms) BEGIN
495
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
496
+  (0.5ms) COMMIT
497
+  (11.6ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
498
+  (0.5ms) BEGIN
499
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
500
+  (0.4ms) COMMIT
501
+  (0.1ms) BEGIN
502
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
503
+  (0.3ms) COMMIT
504
+  (8.4ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
505
+  (0.3ms) BEGIN
506
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
507
+  (0.3ms) COMMIT
508
+  (0.1ms) BEGIN
509
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "user" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
510
+  (0.3ms) COMMIT
511
+  (11.3ms) TRUNCATE TABLE "public"."user", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
512
+  (0.4ms) BEGIN
513
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "user" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
514
+  (0.5ms) COMMIT
515
+  (243.8ms) DROP DATABASE IF EXISTS "hertz_test"
516
+  (429.3ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
517
+  (0.3ms) DROP TABLE IF EXISTS "users"
518
+  (6.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
519
+  (3.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
520
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
521
+  (0.2ms) BEGIN
522
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:20:42.060287"], ["updated_at", "2019-09-13 20:20:42.060287"]]
523
+  (0.5ms) COMMIT
524
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
525
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
526
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
527
+ Migrating to CreateHertzNotifications (20160415174901)
528
+  (0.1ms) BEGIN
529
+ SQL (16.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
530
+  (3.6ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
531
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
532
+  (1.2ms) COMMIT
533
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
534
+  (0.3ms) BEGIN
535
+  (4.8ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
536
+ FOREIGN KEY ("notification_id")
537
+ REFERENCES "hertz_notifications" ("id")
538
+ ON DELETE CASCADE)
539
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
540
+  (1.1ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
541
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
542
+  (0.5ms) COMMIT
543
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
544
+  (0.1ms) BEGIN
545
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
546
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
547
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
548
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
549
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
550
+  (0.4ms) COMMIT
551
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
552
+  (0.1ms) SELECT pg_advisory_unlock(1407845914734082845)
553
+  (0.1ms) BEGIN
554
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
555
+  (0.4ms) COMMIT
556
+  (1.5ms)  SELECT schemaname || '.' || tablename
557
+ FROM pg_tables
558
+ WHERE
559
+ tablename !~ '_prt_' AND
560
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
561
+ schemaname = ANY (current_schemas(false))
562
+ 
563
+  (1.4ms) select table_name from information_schema.views where table_schema = 'hertz_test'
564
+  (12.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
565
+  (0.4ms) BEGIN
566
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
567
+  (0.5ms) COMMIT
568
+  (0.2ms) BEGIN
569
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
570
+  (40.8ms) COMMIT
571
+  (15.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
572
+  (0.5ms) BEGIN
573
+  (0.4ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
574
+  (0.4ms) COMMIT
575
+  (0.1ms) BEGIN
576
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
577
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.596599"]]
578
+  (0.5ms) COMMIT
579
+  (0.1ms) BEGIN
580
+ Hertz::Notification Update (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2019-09-13 20:20:42.599802"], ["id", 1]]
581
+  (0.4ms) COMMIT
582
+  (0.2ms) BEGIN
583
+  (0.5ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
584
+  (0.4ms) COMMIT
585
+  (13.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
586
+  (0.5ms) BEGIN
587
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
588
+  (0.4ms) COMMIT
589
+  (0.3ms) BEGIN
590
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
591
+  (0.4ms) COMMIT
592
+  (12.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
593
+  (0.9ms) BEGIN
594
+  (0.7ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
595
+  (0.6ms) COMMIT
596
+  (0.1ms) BEGIN
597
+ User Create (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
598
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.652380"]]
599
+  (0.5ms) COMMIT
600
+  (0.1ms) BEGIN
601
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
602
+  (0.5ms) COMMIT
603
+  (13.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
604
+  (0.6ms) BEGIN
605
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
606
+  (0.5ms) COMMIT
607
+  (0.1ms) BEGIN
608
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
609
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.675361"]]
610
+  (0.4ms) COMMIT
611
+  (0.1ms) BEGIN
612
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
613
+  (0.5ms) COMMIT
614
+  (14.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
615
+  (0.6ms) BEGIN
616
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
617
+  (0.5ms) COMMIT
618
+  (0.1ms) BEGIN
619
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
620
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["read_at", "2019-09-13 20:20:42.699377"], ["created_at", "2019-09-13 20:20:42.700909"]]
621
+  (0.5ms) COMMIT
622
+  (0.1ms) BEGIN
623
+ Hertz::Notification Update (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
624
+  (0.3ms) COMMIT
625
+  (0.1ms) BEGIN
626
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
627
+  (0.5ms) COMMIT
628
+  (12.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
629
+  (0.7ms) BEGIN
630
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
631
+  (0.5ms) COMMIT
632
+  (0.1ms) BEGIN
633
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
634
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.725719"]]
635
+  (0.5ms) COMMIT
636
+ Hertz::Delivery Exists? (0.7ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
637
+  (0.2ms) BEGIN
638
+ Hertz::Delivery Create (0.8ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2019-09-13 20:20:42.758711"]]
639
+  (40.2ms) COMMIT
640
+ Hertz::Delivery Exists? (0.5ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
641
+  (0.1ms) BEGIN
642
+  (0.7ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
643
+  (1.5ms) COMMIT
644
+  (13.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
645
+  (0.4ms) BEGIN
646
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
647
+  (0.5ms) COMMIT
648
+  (0.1ms) BEGIN
649
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
650
+  (0.4ms) COMMIT
651
+  (11.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
652
+  (0.7ms) BEGIN
653
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
654
+  (0.5ms) COMMIT
655
+  (0.2ms) BEGIN
656
+ User Create (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
657
+ Hertz::Notification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.844421"]]
658
+  (0.6ms) COMMIT
659
+  (0.1ms) BEGIN
660
+ User Create (0.2ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
661
+ Hertz::Notification Create (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2019-09-13 20:20:42.847521"], ["created_at", "2019-09-13 20:20:42.848811"]]
662
+  (0.5ms) COMMIT
663
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
664
+  (0.1ms) BEGIN
665
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
666
+  (0.5ms) COMMIT
667
+  (12.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
668
+  (0.4ms) BEGIN
669
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
670
+  (0.4ms) COMMIT
671
+  (0.1ms) BEGIN
672
+ User Create (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
673
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.871951"]]
674
+  (0.5ms) COMMIT
675
+  (0.2ms) BEGIN
676
+ User Create (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
677
+ Hertz::Notification Create (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2019-09-13 20:20:42.874289"], ["created_at", "2019-09-13 20:20:42.875654"]]
678
+  (0.4ms) COMMIT
679
+ Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NOT NULL)
680
+  (0.1ms) BEGIN
681
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
682
+  (0.5ms) COMMIT
683
+  (12.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
684
+  (0.7ms) BEGIN
685
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
686
+  (0.7ms) COMMIT
687
+  (0.1ms) BEGIN
688
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
689
+ Hertz::Notification Create (0.9ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:42.899644"]]
690
+  (0.5ms) COMMIT
691
+  (0.5ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
692
+  (0.1ms) BEGIN
693
+ Hertz::Delivery Create (0.5ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2019-09-13 20:20:42.903968"]]
694
+  (0.5ms) COMMIT
695
+  (0.4ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
696
+  (0.1ms) BEGIN
697
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
698
+  (0.5ms) COMMIT
699
+  (52.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
700
+  (0.4ms) BEGIN
701
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
702
+  (0.5ms) COMMIT
703
+  (0.1ms) BEGIN
704
+ User Create (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
705
+  (0.5ms) COMMIT
706
+  (0.1ms) BEGIN
707
+ TestNotification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2019-09-13 20:20:42.973919"]]
708
+  (0.4ms) COMMIT
709
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 ORDER BY "hertz_notifications"."id" DESC LIMIT $3 [["receiver_id", 1], ["receiver_type", "User"], ["LIMIT", 1]]
710
+  (0.1ms) BEGIN
711
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
712
+  (0.3ms) COMMIT
713
+  (10.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
714
+  (0.7ms) BEGIN
715
+  (0.6ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
716
+  (0.4ms) COMMIT
717
+  (0.2ms) BEGIN
718
+ User Create (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
719
+  (0.5ms) COMMIT
720
+  (0.5ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
721
+  (0.1ms) BEGIN
722
+ TestNotification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2019-09-13 20:20:42.999317"]]
723
+  (0.5ms) COMMIT
724
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
725
+  (0.2ms) BEGIN
726
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
727
+  (0.4ms) COMMIT
728
+  (10.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
729
+  (0.5ms) BEGIN
730
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
731
+  (0.5ms) COMMIT
732
+  (0.1ms) BEGIN
733
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
734
+  (0.6ms) COMMIT
735
+  (0.5ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
736
+  (0.2ms) BEGIN
737
+ TestNotification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:43.024576"]]
738
+  (0.4ms) COMMIT
739
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
740
+  (0.1ms) BEGIN
741
+  (0.8ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
742
+  (0.5ms) COMMIT
743
+  (13.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
744
+  (0.5ms) BEGIN
745
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
746
+  (0.6ms) COMMIT
747
+  (0.2ms) BEGIN
748
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
749
+  (0.3ms) COMMIT
750
+  (0.2ms) BEGIN
751
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:20:43.056118"]]
752
+  (0.4ms) COMMIT
753
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
754
+  (0.1ms) BEGIN
755
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
756
+  (0.4ms) COMMIT
757
+  (12.0ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
758
+  (0.6ms) BEGIN
759
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
760
+  (0.5ms) COMMIT
761
+  (0.2ms) BEGIN
762
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
763
+  (0.5ms) COMMIT
764
+  (10.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
765
+  (0.4ms) BEGIN
766
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
767
+  (0.4ms) COMMIT
768
+  (0.2ms) BEGIN
769
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
770
+  (0.5ms) COMMIT
771
+  (13.0ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
772
+  (0.9ms) BEGIN
773
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
774
+  (0.5ms) COMMIT
775
+  (0.2ms) BEGIN
776
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
777
+  (0.5ms) COMMIT
778
+  (11.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
779
+  (0.5ms) BEGIN
780
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
781
+  (0.5ms) COMMIT
782
+  (0.1ms) BEGIN
783
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
784
+  (0.6ms) COMMIT
785
+  (12.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
786
+  (0.4ms) BEGIN
787
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
788
+  (0.5ms) COMMIT
789
+  (216.7ms) DROP DATABASE IF EXISTS "hertz_test"
790
+  (425.8ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
791
+  (0.2ms) DROP TABLE IF EXISTS "users"
792
+  (5.6ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
793
+  (2.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
794
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
795
+  (0.1ms) BEGIN
796
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:28:56.021934"], ["updated_at", "2019-09-13 20:28:56.021934"]]
797
+  (0.5ms) COMMIT
798
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
799
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
800
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
801
+ Migrating to CreateHertzNotifications (20160415174901)
802
+  (0.1ms) BEGIN
803
+ SQL (13.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
804
+  (2.7ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
805
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
806
+  (0.6ms) COMMIT
807
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
808
+  (0.3ms) BEGIN
809
+  (4.1ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
810
+ FOREIGN KEY ("notification_id")
811
+ REFERENCES "hertz_notifications" ("id")
812
+ ON DELETE CASCADE)
813
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
814
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
815
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
816
+  (0.4ms) COMMIT
817
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
818
+  (0.1ms) BEGIN
819
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
820
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
821
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
822
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
823
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
824
+  (0.5ms) COMMIT
825
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
826
+  (0.1ms) SELECT pg_advisory_unlock(1407845914734082845)
827
+  (0.1ms) BEGIN
828
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
829
+  (5.9ms) COMMIT
830
+  (1.5ms)  SELECT schemaname || '.' || tablename
831
+ FROM pg_tables
832
+ WHERE
833
+ tablename !~ '_prt_' AND
834
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
835
+ schemaname = ANY (current_schemas(false))
836
+ 
837
+  (1.2ms) select table_name from information_schema.views where table_schema = 'hertz_test'
838
+  (10.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
839
+  (0.5ms) BEGIN
840
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
841
+  (0.4ms) COMMIT
842
+  (212.9ms) DROP DATABASE IF EXISTS "hertz_test"
843
+  (426.8ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
844
+  (0.2ms) DROP TABLE IF EXISTS "users"
845
+  (6.0ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
846
+  (2.3ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
847
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
848
+  (0.2ms) BEGIN
849
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:29:01.421162"], ["updated_at", "2019-09-13 20:29:01.421162"]]
850
+  (0.3ms) COMMIT
851
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
852
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
853
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
854
+ Migrating to CreateHertzNotifications (20160415174901)
855
+  (0.1ms) BEGIN
856
+ SQL (12.9ms) CREATE EXTENSION IF NOT EXISTS "hstore"
857
+  (3.0ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
858
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
859
+  (0.9ms) COMMIT
860
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
861
+  (0.3ms) BEGIN
862
+  (3.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
863
+ FOREIGN KEY ("notification_id")
864
+ REFERENCES "hertz_notifications" ("id")
865
+ ON DELETE CASCADE)
866
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
867
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
868
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
869
+  (0.5ms) COMMIT
870
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
871
+  (0.9ms) BEGIN
872
+  (0.4ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
873
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
874
+  (0.3ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
875
+  (0.1ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
876
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
877
+  (0.5ms) COMMIT
878
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
879
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
880
+  (0.1ms) BEGIN
881
+  (0.7ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
882
+  (5.9ms) COMMIT
883
+  (1.7ms)  SELECT schemaname || '.' || tablename
884
+ FROM pg_tables
885
+ WHERE
886
+ tablename !~ '_prt_' AND
887
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
888
+ schemaname = ANY (current_schemas(false))
889
+ 
890
+  (1.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
891
+  (10.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
892
+  (0.4ms) BEGIN
893
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
894
+  (0.3ms) COMMIT
895
+  (0.1ms) BEGIN
896
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
897
+  (0.4ms) COMMIT
898
+  (9.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
899
+  (0.4ms) BEGIN
900
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
901
+  (0.3ms) COMMIT
902
+  (0.1ms) BEGIN
903
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
904
+  (0.4ms) COMMIT
905
+  (10.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
906
+  (0.7ms) BEGIN
907
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
908
+  (0.4ms) COMMIT
909
+  (0.1ms) BEGIN
910
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
911
+  (0.4ms) COMMIT
912
+  (9.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
913
+  (0.4ms) BEGIN
914
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
915
+  (0.4ms) COMMIT
916
+  (213.4ms) DROP DATABASE IF EXISTS "hertz_test"
917
+  (421.7ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
918
+  (0.2ms) DROP TABLE IF EXISTS "users"
919
+  (5.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
920
+  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
921
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
922
+  (0.1ms) BEGIN
923
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:29:23.073480"], ["updated_at", "2019-09-13 20:29:23.073480"]]
924
+  (0.4ms) COMMIT
925
+  (2.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
926
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
927
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
928
+ Migrating to CreateHertzNotifications (20160415174901)
929
+  (0.1ms) BEGIN
930
+ SQL (11.9ms) CREATE EXTENSION IF NOT EXISTS "hstore"
931
+  (2.5ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
932
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
933
+  (0.8ms) COMMIT
934
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
935
+  (0.2ms) BEGIN
936
+  (3.4ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
937
+ FOREIGN KEY ("notification_id")
938
+ REFERENCES "hertz_notifications" ("id")
939
+ ON DELETE CASCADE)
940
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
941
+  (1.1ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
942
+ primary::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
943
+  (0.5ms) COMMIT
944
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
945
+  (0.1ms) BEGIN
946
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
947
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
948
+  (0.3ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
949
+  (0.3ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
950
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
951
+  (0.5ms) COMMIT
952
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
953
+  (0.1ms) SELECT pg_advisory_unlock(1407845914734082845)
954
+  (0.1ms) BEGIN
955
+  (0.5ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
956
+  (2.2ms) COMMIT
957
+  (2.7ms)  SELECT schemaname || '.' || tablename
958
+ FROM pg_tables
959
+ WHERE
960
+ tablename !~ '_prt_' AND
961
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
962
+ schemaname = ANY (current_schemas(false))
963
+ 
964
+  (1.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
965
+  (8.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
966
+  (0.7ms) BEGIN
967
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
968
+  (0.4ms) COMMIT
969
+  (0.1ms) BEGIN
970
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
971
+  (0.4ms) COMMIT
972
+  (9.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
973
+  (0.4ms) BEGIN
974
+  (0.4ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
975
+  (0.4ms) COMMIT
976
+  (0.2ms) BEGIN
977
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
978
+  (0.4ms) COMMIT
979
+  (7.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
980
+  (0.4ms) BEGIN
981
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
982
+  (0.3ms) COMMIT
983
+  (0.2ms) BEGIN
984
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
985
+  (0.5ms) COMMIT
986
+  (10.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
987
+  (0.5ms) BEGIN
988
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
989
+  (0.4ms) COMMIT
990
+  (205.1ms) DROP DATABASE IF EXISTS "hertz_test"
991
+  (399.0ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
992
+  (0.2ms) DROP TABLE IF EXISTS "users"
993
+  (5.5ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
994
+  (2.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
995
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
996
+  (0.1ms) BEGIN
997
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:29:53.960773"], ["updated_at", "2019-09-13 20:29:53.960773"]]
998
+  (0.5ms) COMMIT
999
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1000
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
1001
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1002
+ Migrating to CreateHertzNotifications (20160415174901)
1003
+  (0.2ms) BEGIN
1004
+ SQL (13.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1005
+  (2.7ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1006
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1007
+  (0.9ms) COMMIT
1008
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1009
+  (0.4ms) BEGIN
1010
+  (3.9ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1011
+ FOREIGN KEY ("notification_id")
1012
+ REFERENCES "hertz_notifications" ("id")
1013
+ ON DELETE CASCADE)
1014
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1015
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1016
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1017
+  (0.5ms) COMMIT
1018
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1019
+  (0.1ms) BEGIN
1020
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1021
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1022
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1023
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1024
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1025
+  (40.4ms) COMMIT
1026
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1027
+  (0.3ms) SELECT pg_advisory_unlock(1407845914734082845)
1028
+  (0.1ms) BEGIN
1029
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1030
+  (0.4ms) COMMIT
1031
+  (1.6ms)  SELECT schemaname || '.' || tablename
1032
+ FROM pg_tables
1033
+ WHERE
1034
+ tablename !~ '_prt_' AND
1035
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
1036
+ schemaname = ANY (current_schemas(false))
1037
+ 
1038
+  (1.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1039
+  (8.0ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1040
+  (0.3ms) BEGIN
1041
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1042
+  (0.4ms) COMMIT
1043
+  (0.1ms) BEGIN
1044
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1045
+  (0.5ms) COMMIT
1046
+  (9.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1047
+  (0.4ms) BEGIN
1048
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1049
+  (0.4ms) COMMIT
1050
+  (0.1ms) BEGIN
1051
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1052
+  (0.5ms) COMMIT
1053
+  (9.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1054
+  (0.3ms) BEGIN
1055
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1056
+  (0.3ms) COMMIT
1057
+  (0.1ms) BEGIN
1058
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1059
+  (0.4ms) COMMIT
1060
+  (9.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1061
+  (0.7ms) BEGIN
1062
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1063
+  (0.4ms) COMMIT
1064
+  (144.4ms) DROP DATABASE IF EXISTS "hertz_test"
1065
+  (343.3ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1066
+  (0.2ms) DROP TABLE IF EXISTS "users"
1067
+  (6.1ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1068
+  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1069
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1070
+  (0.2ms) BEGIN
1071
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:30:12.826437"], ["updated_at", "2019-09-13 20:30:12.826437"]]
1072
+  (0.4ms) COMMIT
1073
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1074
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
1075
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1076
+ Migrating to CreateHertzNotifications (20160415174901)
1077
+  (0.1ms) BEGIN
1078
+ SQL (13.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1079
+  (3.3ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1080
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1081
+  (1.1ms) COMMIT
1082
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1083
+  (0.4ms) BEGIN
1084
+  (3.9ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1085
+ FOREIGN KEY ("notification_id")
1086
+ REFERENCES "hertz_notifications" ("id")
1087
+ ON DELETE CASCADE)
1088
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1089
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1090
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1091
+  (0.5ms) COMMIT
1092
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1093
+  (0.1ms) BEGIN
1094
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1095
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1096
+  (0.3ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1097
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1098
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1099
+  (0.6ms) COMMIT
1100
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1101
+  (0.3ms) SELECT pg_advisory_unlock(1407845914734082845)
1102
+  (0.1ms) BEGIN
1103
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1104
+  (5.9ms) COMMIT
1105
+  (1.6ms)  SELECT schemaname || '.' || tablename
1106
+ FROM pg_tables
1107
+ WHERE
1108
+ tablename !~ '_prt_' AND
1109
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
1110
+ schemaname = ANY (current_schemas(false))
1111
+ 
1112
+  (0.9ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1113
+  (9.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1114
+  (0.5ms) BEGIN
1115
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1116
+  (0.4ms) COMMIT
1117
+  (0.1ms) BEGIN
1118
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1119
+  (0.4ms) COMMIT
1120
+  (9.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1121
+  (0.4ms) BEGIN
1122
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1123
+  (0.4ms) COMMIT
1124
+  (0.1ms) BEGIN
1125
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1126
+  (0.5ms) COMMIT
1127
+  (8.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1128
+  (0.4ms) BEGIN
1129
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1130
+  (0.3ms) COMMIT
1131
+  (0.1ms) BEGIN
1132
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1133
+  (0.5ms) COMMIT
1134
+  (10.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1135
+  (1.0ms) BEGIN
1136
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1137
+  (0.4ms) COMMIT
1138
+  (202.9ms) DROP DATABASE IF EXISTS "hertz_test"
1139
+  (393.1ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1140
+  (0.2ms) DROP TABLE IF EXISTS "users"
1141
+  (5.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1142
+  (2.9ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1143
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1144
+  (0.1ms) BEGIN
1145
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2019-09-13 20:39:37.610363"], ["updated_at", "2019-09-13 20:39:37.610363"]]
1146
+  (0.4ms) COMMIT
1147
+  (2.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1148
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
1149
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1150
+ Migrating to CreateHertzNotifications (20160415174901)
1151
+  (0.1ms) BEGIN
1152
+ SQL (14.5ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1153
+  (3.4ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1154
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1155
+  (0.8ms) COMMIT
1156
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1157
+  (0.3ms) BEGIN
1158
+  (3.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1159
+ FOREIGN KEY ("notification_id")
1160
+ REFERENCES "hertz_notifications" ("id")
1161
+ ON DELETE CASCADE)
1162
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1163
+  (0.7ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1164
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1165
+  (0.5ms) COMMIT
1166
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1167
+  (0.1ms) BEGIN
1168
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1169
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1170
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1171
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1172
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1173
+  (0.4ms) COMMIT
1174
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1175
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1176
+  (0.1ms) BEGIN
1177
+  (0.5ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1178
+  (6.0ms) COMMIT
1179
+  (1.7ms)  SELECT schemaname || '.' || tablename
1180
+ FROM pg_tables
1181
+ WHERE
1182
+ tablename !~ '_prt_' AND
1183
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
1184
+ schemaname = ANY (current_schemas(false))
1185
+ 
1186
+  (0.9ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1187
+  (10.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1188
+  (0.4ms) BEGIN
1189
+  (0.7ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1190
+  (0.5ms) COMMIT
1191
+  (0.2ms) BEGIN
1192
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1193
+  (0.4ms) COMMIT
1194
+  (7.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1195
+  (0.4ms) BEGIN
1196
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1197
+  (0.4ms) COMMIT
1198
+  (0.1ms) BEGIN
1199
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1200
+  (0.4ms) COMMIT
1201
+  (7.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1202
+  (0.4ms) BEGIN
1203
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1204
+  (0.4ms) COMMIT
1205
+  (0.1ms) BEGIN
1206
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1207
+  (0.3ms) COMMIT
1208
+  (7.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1209
+  (0.3ms) BEGIN
1210
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1211
+  (0.4ms) COMMIT
1212
+  (0.1ms) BEGIN
1213
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1214
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.134197"]]
1215
+  (40.5ms) COMMIT
1216
+  (0.2ms) BEGIN
1217
+ Hertz::Notification Update (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2019-09-13 20:39:38.179410"], ["id", 1]]
1218
+  (2.2ms) COMMIT
1219
+  (0.1ms) BEGIN
1220
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1221
+  (0.5ms) COMMIT
1222
+  (8.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1223
+  (0.4ms) BEGIN
1224
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1225
+  (0.4ms) COMMIT
1226
+  (0.2ms) BEGIN
1227
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1228
+  (0.4ms) COMMIT
1229
+  (7.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1230
+  (0.3ms) BEGIN
1231
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1232
+  (0.3ms) COMMIT
1233
+  (0.1ms) BEGIN
1234
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1235
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["read_at", "2019-09-13 20:39:38.213315"], ["created_at", "2019-09-13 20:39:38.214756"]]
1236
+  (0.3ms) COMMIT
1237
+  (0.1ms) BEGIN
1238
+ Hertz::Notification Update (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1239
+  (0.3ms) COMMIT
1240
+  (0.1ms) BEGIN
1241
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1242
+  (0.3ms) COMMIT
1243
+  (8.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1244
+  (0.5ms) BEGIN
1245
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1246
+  (0.4ms) COMMIT
1247
+  (0.1ms) BEGIN
1248
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1249
+  (0.5ms) COMMIT
1250
+  (7.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1251
+  (0.4ms) BEGIN
1252
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1253
+  (0.4ms) COMMIT
1254
+  (0.1ms) BEGIN
1255
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1256
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.257693"]]
1257
+  (0.5ms) COMMIT
1258
+  (0.1ms) BEGIN
1259
+ User Create (0.2ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1260
+ Hertz::Notification Create (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2019-09-13 20:39:38.260370"], ["created_at", "2019-09-13 20:39:38.261387"]]
1261
+  (0.3ms) COMMIT
1262
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NOT NULL)
1263
+  (0.1ms) BEGIN
1264
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1265
+  (0.3ms) COMMIT
1266
+  (8.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1267
+  (0.4ms) BEGIN
1268
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1269
+  (0.3ms) COMMIT
1270
+  (0.2ms) BEGIN
1271
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1272
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.279554"]]
1273
+  (0.3ms) COMMIT
1274
+ Hertz::Delivery Exists? (0.6ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
1275
+  (0.2ms) BEGIN
1276
+ Hertz::Delivery Create (0.6ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2019-09-13 20:39:38.298214"]]
1277
+  (40.8ms) COMMIT
1278
+ Hertz::Delivery Exists? (0.5ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
1279
+  (0.1ms) BEGIN
1280
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1281
+  (1.6ms) COMMIT
1282
+  (14.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1283
+  (0.5ms) BEGIN
1284
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1285
+  (0.5ms) COMMIT
1286
+  (0.1ms) BEGIN
1287
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1288
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.366071"]]
1289
+  (0.4ms) COMMIT
1290
+  (0.1ms) BEGIN
1291
+ User Create (0.2ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1292
+ Hertz::Notification Create (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2019-09-13 20:39:38.369089"], ["created_at", "2019-09-13 20:39:38.370406"]]
1293
+  (0.4ms) COMMIT
1294
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1295
+  (0.1ms) BEGIN
1296
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1297
+  (0.4ms) COMMIT
1298
+  (9.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1299
+  (0.5ms) BEGIN
1300
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1301
+  (0.4ms) COMMIT
1302
+  (0.2ms) BEGIN
1303
+ User Create (0.8ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1304
+ Hertz::Notification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.390564"]]
1305
+  (0.5ms) COMMIT
1306
+  (0.6ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
1307
+  (0.2ms) BEGIN
1308
+ Hertz::Delivery Create (0.8ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2019-09-13 20:39:38.395220"]]
1309
+  (0.4ms) COMMIT
1310
+  (0.3ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
1311
+  (0.1ms) BEGIN
1312
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1313
+  (0.4ms) COMMIT
1314
+  (8.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1315
+  (0.5ms) BEGIN
1316
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1317
+  (0.3ms) COMMIT
1318
+  (0.1ms) BEGIN
1319
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1320
+  (0.3ms) COMMIT
1321
+  (9.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1322
+  (0.3ms) BEGIN
1323
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1324
+  (0.3ms) COMMIT
1325
+  (0.1ms) BEGIN
1326
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1327
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.429420"]]
1328
+  (0.4ms) COMMIT
1329
+  (0.1ms) BEGIN
1330
+  (0.7ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1331
+  (0.4ms) COMMIT
1332
+  (10.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1333
+  (0.3ms) BEGIN
1334
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1335
+  (0.3ms) COMMIT
1336
+  (0.1ms) BEGIN
1337
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1338
+ Hertz::Notification Create (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.448792"]]
1339
+  (0.4ms) COMMIT
1340
+  (0.1ms) BEGIN
1341
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1342
+  (0.4ms) COMMIT
1343
+  (8.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1344
+  (0.4ms) BEGIN
1345
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1346
+  (0.3ms) COMMIT
1347
+  (0.1ms) BEGIN
1348
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1349
+  (0.4ms) COMMIT
1350
+  (8.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1351
+  (0.3ms) BEGIN
1352
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1353
+  (0.5ms) COMMIT
1354
+  (0.1ms) BEGIN
1355
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1356
+  (0.4ms) COMMIT
1357
+  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1358
+  (0.1ms) BEGIN
1359
+ TestNotification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.486658"]]
1360
+  (0.5ms) COMMIT
1361
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1362
+  (0.1ms) BEGIN
1363
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1364
+  (0.3ms) COMMIT
1365
+  (8.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1366
+  (0.3ms) BEGIN
1367
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1368
+  (0.3ms) COMMIT
1369
+  (0.1ms) BEGIN
1370
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1371
+  (0.4ms) COMMIT
1372
+  (0.1ms) BEGIN
1373
+ TestNotification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2019-09-13 20:39:38.510438"]]
1374
+  (0.3ms) COMMIT
1375
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 ORDER BY "hertz_notifications"."id" DESC LIMIT $3 [["receiver_id", 1], ["receiver_type", "User"], ["LIMIT", 1]]
1376
+  (0.1ms) BEGIN
1377
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1378
+  (0.3ms) COMMIT
1379
+  (8.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1380
+  (0.3ms) BEGIN
1381
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1382
+  (0.4ms) COMMIT
1383
+  (0.1ms) BEGIN
1384
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1385
+  (0.3ms) COMMIT
1386
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1387
+  (0.1ms) BEGIN
1388
+ TestNotification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2019-09-13 20:39:38.535765"]]
1389
+  (0.3ms) COMMIT
1390
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1391
+  (0.1ms) BEGIN
1392
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1393
+  (0.3ms) COMMIT
1394
+  (12.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1395
+  (0.7ms) BEGIN
1396
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1397
+  (0.4ms) COMMIT
1398
+  (0.2ms) BEGIN
1399
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1400
+  (0.4ms) COMMIT
1401
+  (0.1ms) BEGIN
1402
+ Hertz::Notification Create (0.8ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2019-09-13 20:39:38.559419"]]
1403
+  (0.4ms) COMMIT
1404
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1405
+  (0.1ms) BEGIN
1406
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1407
+  (0.4ms) COMMIT
1408
+  (9.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1409
+  (0.4ms) BEGIN
1410
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1411
+  (0.4ms) COMMIT
1412
+  (0.5ms) DROP DATABASE IF EXISTS "hertz_test"
1413
+  (189.3ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1414
+  (0.6ms) DROP TABLE IF EXISTS "users"
1415
+  (12.6ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1416
+  (3.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1417
+ ActiveRecord::InternalMetadata Load (1.0ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1418
+  (0.1ms) BEGIN
1419
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:15:34.239927"], ["updated_at", "2020-01-12 14:15:34.239927"]]
1420
+  (0.4ms) COMMIT
1421
+  (2.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1422
+  (0.5ms) SELECT pg_try_advisory_lock(1407845914734082845)
1423
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1424
+ Migrating to CreateHertzNotifications (20160415174901)
1425
+  (0.2ms) BEGIN
1426
+ SQL (71.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1427
+  (3.2ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1428
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1429
+  (0.8ms) COMMIT
1430
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1431
+  (0.3ms) BEGIN
1432
+  (4.1ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1433
+ FOREIGN KEY ("notification_id")
1434
+ REFERENCES "hertz_notifications" ("id")
1435
+ ON DELETE CASCADE)
1436
+  (1.5ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1437
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1438
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1439
+  (0.5ms) COMMIT
1440
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1441
+  (0.1ms) BEGIN
1442
+  (0.7ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1443
+  (0.1ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1444
+  (0.1ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1445
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1446
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1447
+  (0.4ms) COMMIT
1448
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1449
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1450
+  (0.2ms) BEGIN
1451
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1452
+  (0.4ms) COMMIT
1453
+  (1.8ms)  SELECT schemaname || '.' || tablename
1454
+ FROM pg_tables
1455
+ WHERE
1456
+ tablename !~ '_prt_' AND
1457
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
1458
+ schemaname = ANY (current_schemas(false))
1459
+ 
1460
+  (1.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1461
+  (8.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1462
+  (0.3ms) BEGIN
1463
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1464
+  (0.3ms) COMMIT
1465
+  (0.1ms) BEGIN
1466
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1467
+  (0.4ms) COMMIT
1468
+  (0.2ms) BEGIN
1469
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:34.839465"]]
1470
+  (0.6ms) COMMIT
1471
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1472
+  (0.1ms) BEGIN
1473
+  (1.0ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1474
+  (0.5ms) COMMIT
1475
+  (9.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1476
+  (0.5ms) BEGIN
1477
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1478
+  (0.4ms) COMMIT
1479
+  (0.1ms) BEGIN
1480
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1481
+  (0.5ms) COMMIT
1482
+  (0.1ms) BEGIN
1483
+ TestNotification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2020-01-12 14:15:34.876176"]]
1484
+  (0.4ms) COMMIT
1485
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 ORDER BY "hertz_notifications"."id" DESC LIMIT $3 [["receiver_id", 1], ["receiver_type", "User"], ["LIMIT", 1]]
1486
+  (0.1ms) BEGIN
1487
+  (0.4ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1488
+  (0.4ms) COMMIT
1489
+  (8.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1490
+  (0.5ms) BEGIN
1491
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1492
+  (0.3ms) COMMIT
1493
+  (0.1ms) BEGIN
1494
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1495
+  (0.4ms) COMMIT
1496
+  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1497
+  (0.3ms) BEGIN
1498
+ TestNotification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2020-01-12 14:15:34.905713"]]
1499
+  (0.4ms) COMMIT
1500
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1501
+  (0.1ms) BEGIN
1502
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1503
+  (0.3ms) COMMIT
1504
+  (8.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1505
+  (0.3ms) BEGIN
1506
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1507
+  (0.3ms) COMMIT
1508
+  (0.2ms) BEGIN
1509
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1510
+  (0.5ms) COMMIT
1511
+  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1512
+  (0.1ms) BEGIN
1513
+ TestNotification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:34.932279"]]
1514
+  (0.4ms) COMMIT
1515
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1516
+  (0.1ms) BEGIN
1517
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1518
+  (0.5ms) COMMIT
1519
+  (9.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1520
+  (0.4ms) BEGIN
1521
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1522
+  (0.4ms) COMMIT
1523
+  (0.1ms) BEGIN
1524
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1525
+  (0.4ms) COMMIT
1526
+  (13.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1527
+  (1.1ms) BEGIN
1528
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1529
+  (0.5ms) COMMIT
1530
+  (0.1ms) BEGIN
1531
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1532
+  (0.5ms) COMMIT
1533
+  (9.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1534
+  (0.5ms) BEGIN
1535
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1536
+  (0.4ms) COMMIT
1537
+  (0.2ms) BEGIN
1538
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1539
+  (0.5ms) COMMIT
1540
+  (9.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1541
+  (0.4ms) BEGIN
1542
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1543
+  (0.4ms) COMMIT
1544
+  (0.1ms) BEGIN
1545
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1546
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.004413"]]
1547
+  (0.5ms) COMMIT
1548
+ Hertz::Delivery Exists? (0.4ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
1549
+  (0.1ms) BEGIN
1550
+ Hertz::Delivery Create (0.6ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2020-01-12 14:15:35.016326"]]
1551
+  (0.4ms) COMMIT
1552
+ Hertz::Delivery Exists? (0.3ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
1553
+  (0.1ms) BEGIN
1554
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1555
+  (0.3ms) COMMIT
1556
+  (9.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1557
+  (0.5ms) BEGIN
1558
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1559
+  (0.4ms) COMMIT
1560
+  (0.1ms) BEGIN
1561
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1562
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.035711"]]
1563
+  (0.3ms) COMMIT
1564
+  (0.4ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
1565
+  (0.1ms) BEGIN
1566
+ Hertz::Delivery Create (0.6ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2020-01-12 14:15:35.038708"]]
1567
+  (0.3ms) COMMIT
1568
+  (0.2ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
1569
+  (0.1ms) BEGIN
1570
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1571
+  (0.3ms) COMMIT
1572
+  (10.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1573
+  (0.5ms) BEGIN
1574
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1575
+  (0.4ms) COMMIT
1576
+  (0.1ms) BEGIN
1577
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1578
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.058454"]]
1579
+  (0.3ms) COMMIT
1580
+  (0.1ms) BEGIN
1581
+ User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1582
+ Hertz::Notification Create (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2020-01-12 14:15:35.060429"], ["created_at", "2020-01-12 14:15:35.061261"]]
1583
+  (0.3ms) COMMIT
1584
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1585
+  (0.1ms) BEGIN
1586
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1587
+  (0.3ms) COMMIT
1588
+  (8.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1589
+  (0.3ms) BEGIN
1590
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1591
+  (0.3ms) COMMIT
1592
+  (0.1ms) BEGIN
1593
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1594
+ Hertz::Notification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.077915"]]
1595
+  (0.4ms) COMMIT
1596
+  (0.1ms) BEGIN
1597
+ Hertz::Notification Update (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2020-01-12 14:15:35.080234"], ["id", 1]]
1598
+  (0.4ms) COMMIT
1599
+  (0.1ms) BEGIN
1600
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1601
+  (0.3ms) COMMIT
1602
+  (11.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1603
+  (0.4ms) BEGIN
1604
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1605
+  (0.4ms) COMMIT
1606
+  (0.2ms) BEGIN
1607
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1608
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["read_at", "2020-01-12 14:15:35.099541"], ["created_at", "2020-01-12 14:15:35.101237"]]
1609
+  (0.5ms) COMMIT
1610
+  (0.2ms) BEGIN
1611
+ Hertz::Notification Update (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1612
+  (0.6ms) COMMIT
1613
+  (0.1ms) BEGIN
1614
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1615
+  (0.4ms) COMMIT
1616
+  (33.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1617
+  (0.3ms) BEGIN
1618
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1619
+  (0.4ms) COMMIT
1620
+  (0.1ms) BEGIN
1621
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1622
+ Hertz::Notification Create (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.146689"]]
1623
+  (0.4ms) COMMIT
1624
+  (0.1ms) BEGIN
1625
+ User Create (0.1ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1626
+ Hertz::Notification Create (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2020-01-12 14:15:35.148432"], ["created_at", "2020-01-12 14:15:35.149066"]]
1627
+  (0.4ms) COMMIT
1628
+ Hertz::Notification Load (0.1ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NOT NULL)
1629
+  (0.1ms) BEGIN
1630
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1631
+  (0.4ms) COMMIT
1632
+  (8.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1633
+  (0.3ms) BEGIN
1634
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1635
+  (0.4ms) COMMIT
1636
+  (0.1ms) BEGIN
1637
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1638
+  (0.5ms) COMMIT
1639
+  (10.0ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1640
+  (0.3ms) BEGIN
1641
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1642
+  (0.3ms) COMMIT
1643
+  (0.1ms) BEGIN
1644
+ User Create (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1645
+ Hertz::Notification Create (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.186208"]]
1646
+  (0.3ms) COMMIT
1647
+  (0.1ms) BEGIN
1648
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1649
+  (0.3ms) COMMIT
1650
+  (8.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1651
+  (0.3ms) BEGIN
1652
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1653
+  (0.3ms) COMMIT
1654
+  (0.1ms) BEGIN
1655
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1656
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:15:35.201861"]]
1657
+  (0.4ms) COMMIT
1658
+  (0.1ms) BEGIN
1659
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1660
+  (0.4ms) COMMIT
1661
+  (10.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1662
+  (0.3ms) BEGIN
1663
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1664
+  (0.3ms) COMMIT
1665
+  (0.1ms) BEGIN
1666
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1667
+  (0.4ms) COMMIT
1668
+  (8.0ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1669
+  (0.3ms) BEGIN
1670
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1671
+  (0.4ms) COMMIT
1672
+  (0.1ms) BEGIN
1673
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1674
+  (0.5ms) COMMIT
1675
+  (12.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1676
+  (0.4ms) BEGIN
1677
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1678
+  (0.3ms) COMMIT
1679
+  (0.2ms) BEGIN
1680
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1681
+  (0.4ms) COMMIT
1682
+  (9.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1683
+  (0.3ms) BEGIN
1684
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1685
+  (0.5ms) COMMIT
1686
+  (36.0ms) DROP DATABASE IF EXISTS "hertz_test"
1687
+  (143.3ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1688
+  (0.2ms) DROP TABLE IF EXISTS "users"
1689
+  (5.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1690
+  (2.6ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1691
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1692
+  (0.1ms) BEGIN
1693
+ ActiveRecord::InternalMetadata Create (0.7ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:41:31.962623"], ["updated_at", "2020-01-12 14:41:31.962623"]]
1694
+  (0.4ms) COMMIT
1695
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1696
+  (0.1ms) SELECT pg_try_advisory_lock(1407845914734082845)
1697
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1698
+ Migrating to CreateHertzNotifications (20160415174901)
1699
+  (0.1ms) BEGIN
1700
+ SQL (25.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1701
+  (3.1ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1702
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1703
+  (0.5ms) COMMIT
1704
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1705
+  (0.3ms) BEGIN
1706
+  (3.3ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1707
+ FOREIGN KEY ("notification_id")
1708
+ REFERENCES "hertz_notifications" ("id")
1709
+ ON DELETE CASCADE)
1710
+  (0.7ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1711
+  (0.7ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1712
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1713
+  (0.5ms) COMMIT
1714
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1715
+  (0.1ms) BEGIN
1716
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1717
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1718
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1719
+  (0.1ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1720
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1721
+  (0.4ms) COMMIT
1722
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
1723
+  (0.1ms) BEGIN
1724
+  (3.1ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" TYPE jsonb
1725
+  (0.1ms) ROLLBACK
1726
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1727
+  (42.1ms) DROP DATABASE IF EXISTS "hertz_test"
1728
+  (67.9ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1729
+  (0.2ms) DROP TABLE IF EXISTS "users"
1730
+  (5.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1731
+  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1732
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1733
+  (0.1ms) BEGIN
1734
+ ActiveRecord::InternalMetadata Create (0.5ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:42:00.604657"], ["updated_at", "2020-01-12 14:42:00.604657"]]
1735
+  (0.3ms) COMMIT
1736
+  (25.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1737
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
1738
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1739
+ Migrating to CreateHertzNotifications (20160415174901)
1740
+  (0.2ms) BEGIN
1741
+ SQL (20.2ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1742
+  (2.6ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1743
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1744
+  (0.8ms) COMMIT
1745
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1746
+  (0.3ms) BEGIN
1747
+  (4.1ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1748
+ FOREIGN KEY ("notification_id")
1749
+ REFERENCES "hertz_notifications" ("id")
1750
+ ON DELETE CASCADE)
1751
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1752
+  (0.8ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1753
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1754
+  (0.4ms) COMMIT
1755
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1756
+  (0.1ms) BEGIN
1757
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1758
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1759
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1760
+  (0.3ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1761
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1762
+  (0.5ms) COMMIT
1763
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
1764
+  (0.2ms) BEGIN
1765
+  (0.8ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" TYPE jsonb USING meta::jsonb
1766
+  (0.2ms) ROLLBACK
1767
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1768
+  (42.7ms) DROP DATABASE IF EXISTS "hertz_test"
1769
+  (59.9ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1770
+  (0.2ms) DROP TABLE IF EXISTS "users"
1771
+  (5.3ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1772
+  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1773
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1774
+  (0.1ms) BEGIN
1775
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:42:47.064748"], ["updated_at", "2020-01-12 14:42:47.064748"]]
1776
+  (0.3ms) COMMIT
1777
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1778
+  (0.1ms) SELECT pg_try_advisory_lock(1407845914734082845)
1779
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1780
+ Migrating to CreateHertzNotifications (20160415174901)
1781
+  (0.1ms) BEGIN
1782
+ SQL (19.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1783
+  (3.6ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1784
+ primary::SchemaMigration Create (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1785
+  (1.2ms) COMMIT
1786
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1787
+  (0.3ms) BEGIN
1788
+  (4.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1789
+ FOREIGN KEY ("notification_id")
1790
+ REFERENCES "hertz_notifications" ("id")
1791
+ ON DELETE CASCADE)
1792
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1793
+  (1.1ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1794
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1795
+  (0.4ms) COMMIT
1796
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1797
+  (0.1ms) BEGIN
1798
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1799
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1800
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1801
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1802
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1803
+  (0.5ms) COMMIT
1804
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
1805
+  (0.1ms) BEGIN
1806
+  (0.5ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" TYPE jsonb USING meta::jsonb
1807
+  (0.1ms) ROLLBACK
1808
+  (0.1ms) SELECT pg_advisory_unlock(1407845914734082845)
1809
+  (33.4ms) DROP DATABASE IF EXISTS "hertz_test"
1810
+  (63.8ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1811
+  (0.2ms) DROP TABLE IF EXISTS "users"
1812
+  (20.7ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1813
+  (2.7ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1814
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1815
+  (0.1ms) BEGIN
1816
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:43:22.654682"], ["updated_at", "2020-01-12 14:43:22.654682"]]
1817
+  (0.3ms) COMMIT
1818
+  (2.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1819
+  (0.1ms) SELECT pg_try_advisory_lock(1407845914734082845)
1820
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1821
+ Migrating to CreateHertzNotifications (20160415174901)
1822
+  (0.1ms) BEGIN
1823
+ SQL (21.7ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1824
+  (6.8ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1825
+ primary::SchemaMigration Create (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1826
+  (0.9ms) COMMIT
1827
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1828
+  (0.3ms) BEGIN
1829
+  (3.4ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1830
+ FOREIGN KEY ("notification_id")
1831
+ REFERENCES "hertz_notifications" ("id")
1832
+ ON DELETE CASCADE)
1833
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1834
+  (1.0ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1835
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1836
+  (0.6ms) COMMIT
1837
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1838
+  (0.1ms) BEGIN
1839
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1840
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1841
+  (0.3ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1842
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1843
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1844
+  (0.4ms) COMMIT
1845
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
1846
+  (0.2ms) BEGIN
1847
+  (0.8ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" SET DEFAULT ''
1848
+  (1.0ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" TYPE jsonb USING meta::jsonb
1849
+  (0.1ms) ROLLBACK
1850
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1851
+  (55.7ms) DROP DATABASE IF EXISTS "hertz_test"
1852
+  (80.3ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1853
+  (0.2ms) DROP TABLE IF EXISTS "users"
1854
+  (5.2ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1855
+  (2.8ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1856
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1857
+  (0.1ms) BEGIN
1858
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:43:45.823997"], ["updated_at", "2020-01-12 14:43:45.823997"]]
1859
+  (0.5ms) COMMIT
1860
+  (19.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1861
+  (0.2ms) SELECT pg_try_advisory_lock(1407845914734082845)
1862
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1863
+ Migrating to CreateHertzNotifications (20160415174901)
1864
+  (0.2ms) BEGIN
1865
+ SQL (20.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1866
+  (2.7ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1867
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1868
+  (0.8ms) COMMIT
1869
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1870
+  (0.2ms) BEGIN
1871
+  (3.5ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1872
+ FOREIGN KEY ("notification_id")
1873
+ REFERENCES "hertz_notifications" ("id")
1874
+ ON DELETE CASCADE)
1875
+  (0.8ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1876
+  (0.8ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1877
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1878
+  (0.4ms) COMMIT
1879
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1880
+  (0.1ms) BEGIN
1881
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1882
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1883
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1884
+  (0.2ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1885
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1886
+  (0.6ms) COMMIT
1887
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
1888
+  (0.2ms) BEGIN
1889
+  (1.0ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" SET DEFAULT '{}'
1890
+  (0.1ms) ROLLBACK
1891
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1892
+  (31.3ms) DROP DATABASE IF EXISTS "hertz_test"
1893
+  (82.8ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1894
+  (0.2ms) DROP TABLE IF EXISTS "users"
1895
+  (26.8ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
1896
+  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
1897
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1898
+  (0.2ms) BEGIN
1899
+ ActiveRecord::InternalMetadata Create (0.6ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:44:06.386303"], ["updated_at", "2020-01-12 14:44:06.386303"]]
1900
+  (0.4ms) COMMIT
1901
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1902
+  (0.1ms) SELECT pg_try_advisory_lock(1407845914734082845)
1903
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1904
+ Migrating to CreateHertzNotifications (20160415174901)
1905
+  (0.1ms) BEGIN
1906
+ SQL (16.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1907
+  (11.2ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
1908
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
1909
+  (0.8ms) COMMIT
1910
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
1911
+  (0.3ms) BEGIN
1912
+  (3.2ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
1913
+ FOREIGN KEY ("notification_id")
1914
+ REFERENCES "hertz_notifications" ("id")
1915
+ ON DELETE CASCADE)
1916
+  (1.0ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
1917
+  (0.8ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
1918
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
1919
+  (0.3ms) COMMIT
1920
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
1921
+  (0.1ms) BEGIN
1922
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
1923
+  (0.3ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
1924
+  (0.3ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
1925
+  (0.3ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
1926
+ primary::SchemaMigration Create (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
1927
+  (0.9ms) COMMIT
1928
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
1929
+  (0.2ms) BEGIN
1930
+  (0.5ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" DROP DEFAULT
1931
+  (3.4ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" TYPE jsonb USING meta::jsonb
1932
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200112143142"]]
1933
+  (1.3ms) COMMIT
1934
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1935
+  (0.2ms) SELECT pg_advisory_unlock(1407845914734082845)
1936
+  (0.2ms) BEGIN
1937
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1938
+  (0.5ms) COMMIT
1939
+  (1.6ms)  SELECT schemaname || '.' || tablename
1940
+ FROM pg_tables
1941
+ WHERE
1942
+ tablename !~ '_prt_' AND
1943
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
1944
+ schemaname = ANY (current_schemas(false))
1945
+ 
1946
+  (0.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1947
+  (8.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1948
+  (0.3ms) BEGIN
1949
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1950
+  (0.3ms) COMMIT
1951
+  (0.1ms) BEGIN
1952
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1953
+  (0.3ms) COMMIT
1954
+  (7.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1955
+  (0.6ms) BEGIN
1956
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1957
+  (0.4ms) COMMIT
1958
+  (0.2ms) BEGIN
1959
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1960
+  (0.5ms) COMMIT
1961
+  (10.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1962
+  (0.4ms) BEGIN
1963
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1964
+  (0.4ms) COMMIT
1965
+  (0.1ms) BEGIN
1966
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1967
+  (0.3ms) COMMIT
1968
+  (10.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1969
+  (0.4ms) BEGIN
1970
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1971
+  (0.5ms) COMMIT
1972
+  (0.1ms) BEGIN
1973
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1974
+ Hertz::Notification Create (1.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.040185"]]
1975
+  (0.1ms) ROLLBACK
1976
+  (0.1ms) BEGIN
1977
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1978
+  (0.5ms) COMMIT
1979
+  (10.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1980
+  (0.4ms) BEGIN
1981
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1982
+  (0.5ms) COMMIT
1983
+  (0.1ms) BEGIN
1984
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
1985
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.090199"]]
1986
+  (0.1ms) ROLLBACK
1987
+  (0.1ms) BEGIN
1988
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1989
+  (0.4ms) COMMIT
1990
+  (9.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1991
+  (0.5ms) BEGIN
1992
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
1993
+  (0.4ms) COMMIT
1994
+  (0.1ms) BEGIN
1995
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
1996
+  (0.6ms) COMMIT
1997
+  (11.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
1998
+  (0.4ms) BEGIN
1999
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2000
+  (0.3ms) COMMIT
2001
+  (0.1ms) BEGIN
2002
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2003
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.139011"]]
2004
+  (0.1ms) ROLLBACK
2005
+  (0.1ms) BEGIN
2006
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2007
+  (0.3ms) COMMIT
2008
+  (7.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2009
+  (0.3ms) BEGIN
2010
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2011
+  (0.4ms) COMMIT
2012
+  (0.1ms) BEGIN
2013
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2014
+  (0.4ms) COMMIT
2015
+  (10.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2016
+  (0.4ms) BEGIN
2017
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2018
+  (0.4ms) COMMIT
2019
+  (0.1ms) BEGIN
2020
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2021
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.172842"]]
2022
+  (0.1ms) ROLLBACK
2023
+  (0.1ms) BEGIN
2024
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2025
+  (0.4ms) COMMIT
2026
+  (13.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2027
+  (0.7ms) BEGIN
2028
+  (0.8ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2029
+  (0.5ms) COMMIT
2030
+  (0.1ms) BEGIN
2031
+ User Create (0.6ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2032
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.201507"]]
2033
+  (0.1ms) ROLLBACK
2034
+  (0.1ms) BEGIN
2035
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2036
+  (0.4ms) COMMIT
2037
+  (9.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2038
+  (0.5ms) BEGIN
2039
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2040
+  (0.3ms) COMMIT
2041
+  (0.2ms) BEGIN
2042
+ User Create (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2043
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["read_at", "2020-01-12 14:44:07.224097"], ["created_at", "2020-01-12 14:44:07.226060"]]
2044
+  (0.1ms) ROLLBACK
2045
+  (0.2ms) BEGIN
2046
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2047
+  (0.4ms) COMMIT
2048
+  (10.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2049
+  (0.7ms) BEGIN
2050
+  (0.7ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2051
+  (0.4ms) COMMIT
2052
+  (0.3ms) BEGIN
2053
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2054
+  (0.4ms) COMMIT
2055
+  (8.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2056
+  (0.3ms) BEGIN
2057
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2058
+  (0.3ms) COMMIT
2059
+  (0.1ms) BEGIN
2060
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2061
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.269582"]]
2062
+  (0.1ms) ROLLBACK
2063
+  (0.1ms) BEGIN
2064
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2065
+  (0.4ms) COMMIT
2066
+  (7.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2067
+  (0.3ms) BEGIN
2068
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2069
+  (0.4ms) COMMIT
2070
+  (0.1ms) BEGIN
2071
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2072
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.286783"]]
2073
+  (0.1ms) ROLLBACK
2074
+  (0.1ms) BEGIN
2075
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2076
+  (0.4ms) COMMIT
2077
+  (7.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2078
+  (0.4ms) BEGIN
2079
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2080
+  (0.5ms) COMMIT
2081
+  (0.1ms) BEGIN
2082
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2083
+  (0.5ms) COMMIT
2084
+  (0.8ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2085
+  (0.2ms) BEGIN
2086
+ TestNotification Create (1.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "{\"foo\":\"bar\"}"], ["created_at", "2020-01-12 14:44:07.322414"]]
2087
+  (0.3ms) COMMIT
2088
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2089
+  (0.1ms) BEGIN
2090
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2091
+  (0.4ms) COMMIT
2092
+  (7.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2093
+  (0.3ms) BEGIN
2094
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2095
+  (0.3ms) COMMIT
2096
+  (0.1ms) BEGIN
2097
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2098
+  (0.5ms) COMMIT
2099
+  (0.1ms) BEGIN
2100
+ TestNotification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "{\"foo\":\"bar\"}"], ["created_at", "2020-01-12 14:44:07.345700"]]
2101
+  (0.4ms) COMMIT
2102
+ Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 ORDER BY "hertz_notifications"."id" DESC LIMIT $3 [["receiver_id", 1], ["receiver_type", "User"], ["LIMIT", 1]]
2103
+  (0.1ms) BEGIN
2104
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2105
+  (0.3ms) COMMIT
2106
+  (8.0ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2107
+  (0.3ms) BEGIN
2108
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2109
+  (0.4ms) COMMIT
2110
+  (0.2ms) BEGIN
2111
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2112
+  (0.5ms) COMMIT
2113
+  (0.7ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2114
+  (0.2ms) BEGIN
2115
+ TestNotification Create (0.9ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.377202"]]
2116
+  (0.1ms) ROLLBACK
2117
+  (0.2ms) BEGIN
2118
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2119
+  (0.4ms) COMMIT
2120
+  (13.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2121
+  (0.7ms) BEGIN
2122
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2123
+  (0.4ms) COMMIT
2124
+  (0.1ms) BEGIN
2125
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2126
+  (0.3ms) COMMIT
2127
+  (0.1ms) BEGIN
2128
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:07.408361"]]
2129
+  (0.1ms) ROLLBACK
2130
+  (0.1ms) BEGIN
2131
+  (0.2ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2132
+  (0.4ms) COMMIT
2133
+  (9.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2134
+  (0.4ms) BEGIN
2135
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2136
+  (0.4ms) COMMIT
2137
+  (0.1ms) BEGIN
2138
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2139
+  (0.3ms) COMMIT
2140
+  (7.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2141
+  (0.3ms) BEGIN
2142
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2143
+  (0.3ms) COMMIT
2144
+  (51.6ms) DROP DATABASE IF EXISTS "hertz_test"
2145
+  (60.8ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
2146
+  (0.2ms) DROP TABLE IF EXISTS "users"
2147
+  (5.4ms) CREATE TABLE "users" ("id" bigserial primary key, "email" character varying)
2148
+  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
2149
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2150
+  (0.1ms) BEGIN
2151
+ ActiveRecord::InternalMetadata Create (0.3ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2020-01-12 14:44:39.911944"], ["updated_at", "2020-01-12 14:44:39.911944"]]
2152
+  (0.3ms) COMMIT
2153
+  (2.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
2154
+  (0.1ms) SELECT pg_try_advisory_lock(1407845914734082845)
2155
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2156
+ Migrating to CreateHertzNotifications (20160415174901)
2157
+  (0.2ms) BEGIN
2158
+ SQL (14.6ms) CREATE EXTENSION IF NOT EXISTS "hstore"
2159
+  (12.9ms) CREATE TABLE "hertz_notifications" ("id" serial NOT NULL PRIMARY KEY, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
2160
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160415174901"]]
2161
+  (0.8ms) COMMIT
2162
+ Migrating to CreateHertzNotificationDeliveries (20160627084018)
2163
+  (0.3ms) BEGIN
2164
+  (3.2ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial NOT NULL PRIMARY KEY, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL, CONSTRAINT "fk_rails_68c880ead4"
2165
+ FOREIGN KEY ("notification_id")
2166
+ REFERENCES "hertz_notifications" ("id")
2167
+ ON DELETE CASCADE)
2168
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
2169
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
2170
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160627084018"]]
2171
+  (0.4ms) COMMIT
2172
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084342)
2173
+  (0.1ms) BEGIN
2174
+  (0.2ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
2175
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
2176
+  (0.2ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
2177
+  (0.1ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
2178
+ primary::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20160628084342"]]
2179
+  (0.4ms) COMMIT
2180
+ Migrating to ConvertNotificationMetaToJsonb (20200112143142)
2181
+  (0.1ms) BEGIN
2182
+  (0.5ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" DROP NOT NULL
2183
+  (0.3ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" DROP DEFAULT
2184
+  (2.9ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" TYPE jsonb USING meta::jsonb
2185
+  (0.4ms) ALTER TABLE "hertz_notifications" ALTER COLUMN "meta" SET DEFAULT '{}'
2186
+ primary::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200112143142"]]
2187
+  (1.7ms) COMMIT
2188
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
2189
+  (0.3ms) SELECT pg_advisory_unlock(1407845914734082845)
2190
+  (0.2ms) BEGIN
2191
+  (0.6ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2192
+  (0.5ms) COMMIT
2193
+  (1.5ms)  SELECT schemaname || '.' || tablename
2194
+ FROM pg_tables
2195
+ WHERE
2196
+ tablename !~ '_prt_' AND
2197
+ tablename <> 'schema_migrations' AND tablename <> 'ar_internal_metadata' AND
2198
+ schemaname = ANY (current_schemas(false))
2199
+ 
2200
+  (0.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2201
+  (7.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2202
+  (0.3ms) BEGIN
2203
+  (0.2ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2204
+  (0.3ms) COMMIT
2205
+  (0.1ms) BEGIN
2206
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2207
+  (0.4ms) COMMIT
2208
+  (0.1ms) BEGIN
2209
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.473175"]]
2210
+  (0.4ms) COMMIT
2211
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2212
+  (0.2ms) BEGIN
2213
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2214
+  (0.5ms) COMMIT
2215
+  (10.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2216
+  (0.3ms) BEGIN
2217
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2218
+  (0.4ms) COMMIT
2219
+  (0.1ms) BEGIN
2220
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2221
+  (0.5ms) COMMIT
2222
+  (0.5ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2223
+  (0.1ms) BEGIN
2224
+ TestNotification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "{\"foo\":\"bar\"}"], ["created_at", "2020-01-12 14:44:40.511639"]]
2225
+  (0.4ms) COMMIT
2226
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2227
+  (0.2ms) BEGIN
2228
+  (0.4ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2229
+  (0.5ms) COMMIT
2230
+  (10.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2231
+  (0.3ms) BEGIN
2232
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2233
+  (0.5ms) COMMIT
2234
+  (0.1ms) BEGIN
2235
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2236
+  (0.4ms) COMMIT
2237
+  (0.1ms) BEGIN
2238
+ TestNotification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["meta", "{\"foo\":\"bar\"}"], ["created_at", "2020-01-12 14:44:40.540281"]]
2239
+  (0.4ms) COMMIT
2240
+ Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 ORDER BY "hertz_notifications"."id" DESC LIMIT $3 [["receiver_id", 1], ["receiver_type", "User"], ["LIMIT", 1]]
2241
+  (0.1ms) BEGIN
2242
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2243
+  (0.3ms) COMMIT
2244
+  (8.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2245
+  (0.3ms) BEGIN
2246
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2247
+  (0.5ms) COMMIT
2248
+  (0.1ms) BEGIN
2249
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2250
+  (0.3ms) COMMIT
2251
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2252
+  (0.1ms) BEGIN
2253
+ TestNotification Create (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "TestNotification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.565544"]]
2254
+  (0.4ms) COMMIT
2255
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2256
+  (0.1ms) BEGIN
2257
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2258
+  (0.4ms) COMMIT
2259
+  (8.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2260
+  (0.3ms) BEGIN
2261
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2262
+  (0.3ms) COMMIT
2263
+  (0.2ms) BEGIN
2264
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2265
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.583709"]]
2266
+  (0.5ms) COMMIT
2267
+  (0.2ms) BEGIN
2268
+ User Create (0.3ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2269
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2020-01-12 14:44:40.586652"], ["created_at", "2020-01-12 14:44:40.588095"]]
2270
+  (0.6ms) COMMIT
2271
+ Hertz::Notification Load (0.8ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2272
+  (0.2ms) BEGIN
2273
+  (0.6ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2274
+  (0.4ms) COMMIT
2275
+  (10.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2276
+  (0.4ms) BEGIN
2277
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2278
+  (0.4ms) COMMIT
2279
+  (0.1ms) BEGIN
2280
+ User Create (0.5ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2281
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.611454"]]
2282
+  (5.6ms) COMMIT
2283
+ Hertz::Delivery Exists? (0.5ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
2284
+  (0.1ms) BEGIN
2285
+ Hertz::Delivery Create (0.7ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2020-01-12 14:44:40.629572"]]
2286
+  (6.4ms) COMMIT
2287
+ Hertz::Delivery Exists? (0.4ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT $3 [["notification_id", 1], ["courier", "test"], ["LIMIT", 1]]
2288
+  (0.1ms) BEGIN
2289
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2290
+  (0.5ms) COMMIT
2291
+  (10.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2292
+  (0.4ms) BEGIN
2293
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2294
+  (0.3ms) COMMIT
2295
+  (0.1ms) BEGIN
2296
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2297
+  (0.3ms) COMMIT
2298
+  (7.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2299
+  (0.3ms) BEGIN
2300
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2301
+  (0.5ms) COMMIT
2302
+  (0.1ms) BEGIN
2303
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2304
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.669710"]]
2305
+  (0.5ms) COMMIT
2306
+  (0.1ms) BEGIN
2307
+ Hertz::Notification Update (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2020-01-12 14:44:40.672018"], ["id", 1]]
2308
+  (0.4ms) COMMIT
2309
+  (0.1ms) BEGIN
2310
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2311
+  (0.3ms) COMMIT
2312
+  (8.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2313
+  (0.5ms) BEGIN
2314
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2315
+  (0.5ms) COMMIT
2316
+  (0.2ms) BEGIN
2317
+ User Create (0.7ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2318
+ Hertz::Notification Create (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["read_at", "2020-01-12 14:44:40.688758"], ["created_at", "2020-01-12 14:44:40.691005"]]
2319
+  (0.4ms) COMMIT
2320
+  (0.1ms) BEGIN
2321
+ Hertz::Notification Update (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
2322
+  (0.4ms) COMMIT
2323
+  (0.1ms) BEGIN
2324
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2325
+  (0.3ms) COMMIT
2326
+  (9.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2327
+  (0.3ms) BEGIN
2328
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2329
+  (0.5ms) COMMIT
2330
+  (0.1ms) BEGIN
2331
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2332
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.712287"]]
2333
+  (0.5ms) COMMIT
2334
+  (0.5ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
2335
+  (0.1ms) BEGIN
2336
+ Hertz::Delivery Create (0.5ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2020-01-12 14:44:40.715965"]]
2337
+  (0.4ms) COMMIT
2338
+  (0.3ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
2339
+  (0.1ms) BEGIN
2340
+  (0.5ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2341
+  (0.3ms) COMMIT
2342
+  (9.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2343
+  (0.3ms) BEGIN
2344
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2345
+  (0.4ms) COMMIT
2346
+  (0.2ms) BEGIN
2347
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2348
+ Hertz::Notification Create (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.742083"]]
2349
+  (0.4ms) COMMIT
2350
+  (0.1ms) BEGIN
2351
+  (0.4ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2352
+  (0.4ms) COMMIT
2353
+  (11.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2354
+  (0.5ms) BEGIN
2355
+  (0.5ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2356
+  (0.4ms) COMMIT
2357
+  (0.2ms) BEGIN
2358
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2359
+  (0.4ms) COMMIT
2360
+  (10.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2361
+  (0.4ms) BEGIN
2362
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2363
+  (0.3ms) COMMIT
2364
+  (0.1ms) BEGIN
2365
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2366
+ Hertz::Notification Create (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.780345"]]
2367
+  (0.3ms) COMMIT
2368
+  (0.1ms) BEGIN
2369
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2370
+  (0.4ms) COMMIT
2371
+  (9.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2372
+  (0.5ms) BEGIN
2373
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2374
+  (0.3ms) COMMIT
2375
+  (0.1ms) BEGIN
2376
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2377
+  (0.4ms) COMMIT
2378
+  (9.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2379
+  (0.4ms) BEGIN
2380
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2381
+  (0.4ms) COMMIT
2382
+  (0.1ms) BEGIN
2383
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2384
+ Hertz::Notification Create (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2020-01-12 14:44:40.816268"]]
2385
+  (0.4ms) COMMIT
2386
+  (0.1ms) BEGIN
2387
+ User Create (0.4ms) INSERT INTO "users" DEFAULT VALUES RETURNING "id"
2388
+ Hertz::Notification Create (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "read_at", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["read_at", "2020-01-12 14:44:40.819302"], ["created_at", "2020-01-12 14:44:40.821153"]]
2389
+  (0.5ms) COMMIT
2390
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NOT NULL)
2391
+  (0.1ms) BEGIN
2392
+  (0.7ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2393
+  (0.4ms) COMMIT
2394
+  (9.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2395
+  (0.3ms) BEGIN
2396
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2397
+  (0.4ms) COMMIT
2398
+  (0.1ms) BEGIN
2399
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2400
+  (0.4ms) COMMIT
2401
+  (9.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2402
+  (0.5ms) BEGIN
2403
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2404
+  (0.4ms) COMMIT
2405
+  (0.1ms) BEGIN
2406
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2407
+  (0.3ms) COMMIT
2408
+  (8.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2409
+  (0.4ms) BEGIN
2410
+  (0.4ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2411
+  (0.5ms) COMMIT
2412
+  (0.1ms) BEGIN
2413
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2414
+  (0.4ms) COMMIT
2415
+  (9.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2416
+  (0.4ms) BEGIN
2417
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2418
+  (0.4ms) COMMIT
2419
+  (0.1ms) BEGIN
2420
+  (0.3ms) ALTER TABLE "ar_internal_metadata" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2421
+  (0.4ms) COMMIT
2422
+  (8.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2423
+  (0.4ms) BEGIN
2424
+  (0.3ms) ALTER TABLE "ar_internal_metadata" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2425
+  (0.4ms) COMMIT