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