hertz 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2eef5fc7cb19de80f84d964b0f2d6a537b9abd5b
4
- data.tar.gz: 670e53a7387981df2a9bec8983f8e10b4660050a
3
+ metadata.gz: de2ff5aff935d605c09ce11538d76ae3f35c08d6
4
+ data.tar.gz: d459d179558f046dcc027ddb6745d19f9197e32b
5
5
  SHA512:
6
- metadata.gz: 59110519a6b34162d8a194bb4f17dec3c5eb1607c79d211f3ed3c0cb329a9c59a805424bbf9515dbc57e8cc7ae8149182414049a8aab58be7b393da6b66cbdf9
7
- data.tar.gz: ae85c1e2303752f2f8414028cbb386894c8f84f41f82cf68177a8a854a908b69650d8563a964b25dd98b7cf0b305e172a5323370eff0eae988b2b9aa75cff360
6
+ metadata.gz: 4d31f2ba5ab04d716561bc1de3b84336db28a9179a33d8171d6c702e6b320a21ed0bcad611b65a6c2269258b0bb1854434f5d1d1ece7e7ce2157133d3c5b3f88
7
+ data.tar.gz: e78ea37c15afb02e67fdf52f8f0698245786410891826f23a3985ad71743c58d859ff3521f0b263e9b2b5dbe29595511761b5c164d685b02c54a6d2b1db41358
data/README.md CHANGED
@@ -88,6 +88,15 @@ end
88
88
 
89
89
  Notifications are not required to implement any couriers.
90
90
 
91
+ You can set common couriers (i.e. couriers that will be used for all
92
+ notifications) by putting the following into an initializer:
93
+
94
+ ```ruby
95
+ Hertz.configure do |config|
96
+ config.common_couriers = [:sms, :email]
97
+ end
98
+ ```
99
+
91
100
  ### Attaching metadata to a notification
92
101
 
93
102
  You can attach custom metadata to a notification, but make sure it can be
@@ -134,12 +143,14 @@ notification.mark_as_read
134
143
  notification.mark_as_unread
135
144
  ```
136
145
 
137
- ## Other couriers
146
+ ## Available couriers
138
147
 
139
148
  - [hertz-courier-twilio](https://github.com/alessandro1997/hertz-courier-twilio):
140
149
  delivers notifications by SMS with the Twilio API.
141
150
  - [hertz-courier-email](https://github.com/alessandro1997/hertz-courier-email):
142
151
  delivers notifications by email with ActionMailer.
152
+ - [hertz-courier-intercom](https://github.com/alessandro1997/hertz-courier-intercom):
153
+ delivers notifications as Intercom conversations.
143
154
 
144
155
  ## Contributing
145
156
 
@@ -150,10 +161,3 @@ https://github.com/alessandro1997/hertz.
150
161
 
151
162
  The gem is available as open source under the terms of the
152
163
  [MIT License](http://opensource.org/licenses/MIT).
153
-
154
- ## To do
155
-
156
- - [ ] Test `Hertz.configure`
157
- - [ ] Allow setting common couriers for all notifications
158
- - [ ] Validate couriers when calling `Hertz::Notifiable.deliver_by`
159
- - [ ] Extract `Hertz::Courier::Email` into a separate gem
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+ module Hertz
3
+ class Delivery < ActiveRecord::Base
4
+ belongs_to :notification, inverse_of: :deliveries
5
+
6
+ validates :notification, presence: true
7
+ validates :courier, presence: true
8
+ end
9
+ end
@@ -6,8 +6,9 @@ module Hertz
6
6
  scope :unread, -> { where 'read_at IS NULL' }
7
7
 
8
8
  belongs_to :receiver, inverse_of: :notifications, polymorphic: true
9
+ has_many :deliveries, inverse_of: :notification
9
10
 
10
- after_create :deliver
11
+ after_commit :deliver
11
12
 
12
13
  class << self
13
14
  def couriers
@@ -37,6 +38,14 @@ module Hertz
37
38
  update read_at: nil
38
39
  end
39
40
 
41
+ def delivered_with?(courier)
42
+ deliveries.where(courier: courier).exists?
43
+ end
44
+
45
+ def mark_delivered_with(courier)
46
+ deliveries.create(courier: courier)
47
+ end
48
+
40
49
  private
41
50
 
42
51
  def deliver
@@ -0,0 +1,12 @@
1
+ class CreateHertzNotificationDeliveries < ActiveRecord::Migration
2
+ def change
3
+ create_table :hertz_notification_deliveries do |t|
4
+ t.integer :notification_id, null: false
5
+ t.index :notification_id
6
+ t.foreign_key :hertz_notifications, column: :notification_id, on_delete: :cascade
7
+ t.string :courier, null: false
8
+ t.datetime :created_at, null: false
9
+ t.index [:notification_id, :courier], unique: true, name: 'index_hertz_notification_deliveries_on_notification_and_courier'
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,5 @@
1
+ class RenameNotificationDeliveriesToDeliveries < ActiveRecord::Migration
2
+ def change
3
+ rename_table :hertz_notification_deliveries, :hertz_deliveries
4
+ end
5
+ end
@@ -5,7 +5,17 @@ require 'hertz/notifiable'
5
5
  require 'hertz/notification_deliverer'
6
6
 
7
7
  module Hertz
8
- def self.configure(&block)
9
- block.call(self)
8
+ class << self
9
+ def configure
10
+ yield self
11
+ end
12
+
13
+ def common_couriers=(couriers)
14
+ @common_couriers = [couriers].flatten.map(&:to_sym)
15
+ end
16
+
17
+ def common_couriers
18
+ @common_couriers ||= []
19
+ end
10
20
  end
11
21
  end
@@ -10,6 +10,9 @@ module Hertz
10
10
  dependent: :destroy
11
11
 
12
12
  def notify(notification)
13
+ notification.receiver = self
14
+ notification.save!
15
+
13
16
  notifications << notification
14
17
  end
15
18
  RUBY
@@ -3,13 +3,17 @@ module Hertz
3
3
  class NotificationDeliverer
4
4
  class << self
5
5
  def deliver(notification)
6
- notification.class.couriers.each do |courier|
6
+ couriers_for(notification).each do |courier|
7
7
  build_courier(courier).deliver_notification(notification)
8
8
  end
9
9
  end
10
10
 
11
11
  private
12
12
 
13
+ def couriers_for(notification)
14
+ (notification.class.couriers + Hertz.common_couriers).uniq
15
+ end
16
+
13
17
  def build_courier(courier)
14
18
  "Hertz::Courier::#{courier.to_s.camelcase}".constantize
15
19
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Hertz
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
@@ -0,0 +1,13 @@
1
+ # This migration comes from hertz (originally 20160627084018)
2
+ class CreateHertzNotificationDeliveries < ActiveRecord::Migration
3
+ def change
4
+ create_table :hertz_notification_deliveries do |t|
5
+ t.integer :notification_id, null: false
6
+ t.index :notification_id
7
+ t.foreign_key :hertz_notifications, column: :notification_id, on_delete: :cascade
8
+ t.string :courier, null: false
9
+ t.datetime :created_at, null: false
10
+ t.index [:notification_id, :courier], unique: true, name: 'index_hertz_notification_deliveries_on_notification_and_courier'
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,6 @@
1
+ # This migration comes from hertz (originally 20160628084342)
2
+ class RenameNotificationDeliveriesToDeliveries < ActiveRecord::Migration
3
+ def change
4
+ rename_table :hertz_notification_deliveries, :hertz_deliveries
5
+ end
6
+ end
@@ -11,12 +11,21 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20160508094342) do
14
+ ActiveRecord::Schema.define(version: 20160628084413) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
18
18
  enable_extension "hstore"
19
19
 
20
+ create_table "hertz_deliveries", force: :cascade do |t|
21
+ t.integer "notification_id", null: false
22
+ t.string "courier", null: false
23
+ t.datetime "created_at", null: false
24
+ end
25
+
26
+ add_index "hertz_deliveries", ["notification_id", "courier"], name: "index_hertz_notification_deliveries_on_notification_and_courier", unique: true, using: :btree
27
+ add_index "hertz_deliveries", ["notification_id"], name: "index_hertz_deliveries_on_notification_id", using: :btree
28
+
20
29
  create_table "hertz_notifications", force: :cascade do |t|
21
30
  t.string "type", null: false
22
31
  t.string "receiver_type", null: false
@@ -31,4 +40,5 @@ ActiveRecord::Schema.define(version: 20160508094342) do
31
40
  t.datetime "updated_at", null: false
32
41
  end
33
42
 
43
+ add_foreign_key "hertz_deliveries", "hertz_notifications", column: "notification_id", on_delete: :cascade
34
44
  end
@@ -1,32 +1,98 @@
1
- SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2
- SQL (31.9ms) CREATE EXTENSION IF NOT EXISTS "hstore"
3
-  (21.0ms) CREATE TABLE "hertz_notifications" ("id" serial 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) 
4
-  (6.6ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying NOT NULL)
5
-  (7.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
6
-  (8.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
-  (0.7ms) SELECT version FROM "schema_migrations"
8
-  (1.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
9
-  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
10
-  (1.8ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
11
- SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
12
- SQL (24.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
13
-  (16.8ms) CREATE TABLE "hertz_notifications" ("id" serial 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) 
14
-  (10.0ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying NOT NULL)
15
-  (9.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
16
-  (13.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
17
-  (1.0ms) SELECT version FROM "schema_migrations"
18
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
19
-  (1.1ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
20
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
21
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
- Migrating to RemoveEmailFromUsers (20160508094342)
24
-  (0.4ms) BEGIN
25
-  (0.8ms) ALTER TABLE "users" DROP "email"
26
- SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160508094342"]]
27
-  (2.8ms) COMMIT
28
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
29
-  (2.8ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
1
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2
+ SQL (10.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
3
+  (3.4ms) CREATE TABLE "hertz_notifications" ("id" serial 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) 
4
+  (1.6ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
5
+  (1.5ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
6
+  (1.0ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.2ms) SELECT version FROM "schema_migrations"
8
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160508094342')
9
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
10
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
11
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
12
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
13
+ SQL (9.3ms) CREATE EXTENSION IF NOT EXISTS "hstore"
14
+  (3.0ms) CREATE TABLE "hertz_notifications" ("id" serial primary key, "type" character varying NOT NULL, "receiver_type" character varying NOT NULL, "receiver_id" integer NOT NULL, "meta" hstore DEFAULT '' NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL)
15
+  (1.4ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
16
+  (1.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
17
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
+  (0.2ms) SELECT version FROM "schema_migrations"
19
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160508094342')
20
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
21
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
22
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
23
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
+ Migrating to CreateHertzNotificationDeliveries (20160627084119)
26
+  (0.2ms) BEGIN
27
+  (12.7ms) CREATE TABLE "hertz_notification_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) 
28
+  (0.9ms) CREATE INDEX "index_hertz_notification_deliveries_on_notification_id" ON "hertz_notification_deliveries" ("notification_id")
29
+  (0.9ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_notification_deliveries" ("notification_id", "courier")
30
+  (2.8ms) ALTER TABLE "hertz_notification_deliveries" ADD CONSTRAINT "fk_rails_68c880ead4"
31
+ FOREIGN KEY ("notification_id")
32
+ REFERENCES "hertz_notifications" ("id")
33
+ ON DELETE CASCADE
34
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160627084119"]]
35
+  (0.6ms) COMMIT
36
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
37
+  (2.0ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
38
+ FROM pg_constraint c
39
+ JOIN pg_class t1 ON c.conrelid = t1.oid
40
+ JOIN pg_class t2 ON c.confrelid = t2.oid
41
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
42
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
43
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
44
+ WHERE c.contype = 'f'
45
+ AND t1.relname = 'hertz_notification_deliveries'
46
+ AND t3.nspname = ANY (current_schemas(false))
47
+ ORDER BY c.conname
48
+
49
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
50
+ FROM pg_constraint c
51
+ JOIN pg_class t1 ON c.conrelid = t1.oid
52
+ JOIN pg_class t2 ON c.confrelid = t2.oid
53
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
54
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
55
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
56
+ WHERE c.contype = 'f'
57
+ AND t1.relname = 'hertz_notifications'
58
+ AND t3.nspname = ANY (current_schemas(false))
59
+ ORDER BY c.conname
60
+ 
61
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
62
+ FROM pg_constraint c
63
+ JOIN pg_class t1 ON c.conrelid = t1.oid
64
+ JOIN pg_class t2 ON c.confrelid = t2.oid
65
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
66
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
67
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
68
+ WHERE c.contype = 'f'
69
+ AND t1.relname = 'users'
70
+ AND t3.nspname = ANY (current_schemas(false))
71
+ ORDER BY c.conname
72
+
73
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
74
+ Migrating to RenameNotificationDeliveriesToDeliveries (20160628084413)
75
+  (0.1ms) BEGIN
76
+  (0.3ms) ALTER TABLE "hertz_notification_deliveries" RENAME TO "hertz_deliveries"
77
+  (0.1ms) ALTER TABLE "public"."hertz_notification_deliveries_id_seq" RENAME TO "hertz_deliveries_id_seq"
78
+  (0.2ms) ALTER INDEX "hertz_notification_deliveries_pkey" RENAME TO "hertz_deliveries_pkey"
79
+  (0.1ms) ALTER INDEX "index_hertz_notification_deliveries_on_notification_id" RENAME TO "index_hertz_deliveries_on_notification_id"
80
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160628084413"]]
81
+  (0.3ms) COMMIT
82
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
84
+ FROM pg_constraint c
85
+ JOIN pg_class t1 ON c.conrelid = t1.oid
86
+ JOIN pg_class t2 ON c.confrelid = t2.oid
87
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
88
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
89
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
90
+ WHERE c.contype = 'f'
91
+ AND t1.relname = 'hertz_deliveries'
92
+ AND t3.nspname = ANY (current_schemas(false))
93
+ ORDER BY c.conname
94
+
95
+  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
30
96
  FROM pg_constraint c
31
97
  JOIN pg_class t1 ON c.conrelid = t1.oid
32
98
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -38,7 +104,7 @@ WHERE c.contype = 'f'
38
104
  AND t3.nspname = ANY (current_schemas(false))
39
105
  ORDER BY c.conname
40
106
  
41
-  (2.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
107
+  (1.2ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
42
108
  FROM pg_constraint c
43
109
  JOIN pg_class t1 ON c.conrelid = t1.oid
44
110
  JOIN pg_class t2 ON c.confrelid = t2.oid
@@ -1,238 +1,155 @@
1
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
-  (0.6ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
3
-  (1.6ms)  SELECT schemaname || '.' || tablename
1
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
3
+  (0.7ms)  SELECT schemaname || '.' || tablename
4
4
  FROM pg_tables
5
5
  WHERE
6
6
  tablename !~ '_prt_' AND
7
7
  tablename <> 'schema_migrations' AND
8
8
  schemaname = ANY (current_schemas(false))
9
9
  
10
-  (1.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
11
-  (10.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
12
-  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
13
-  (0.2ms) BEGIN
14
-  (0.2ms) COMMIT
15
-  (0.3ms) BEGIN
16
- Rendered hertz/notification_mailer/test_notification.html.erb (1.0ms)
17
-
18
- Hertz::NotificationMailer#notification_email: processed outbound mail in 12.4ms
19
-  (0.4ms) ROLLBACK
20
-  (0.3ms) BEGIN
21
-  (0.3ms) COMMIT
22
-  (0.2ms) BEGIN
23
-  (0.5ms) ROLLBACK
24
-  (1.2ms) BEGIN
25
-  (3.0ms) COMMIT
26
-  (1.3ms) BEGIN
27
-  (0.3ms) SAVEPOINT active_record_1
28
- SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "mike_roberts@braunjohnston.name"], ["created_at", "2016-05-08 08:57:57.682543"], ["updated_at", "2016-05-08 08:57:57.682543"]]
29
- SQL (1.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-05-08 08:57:57.687486"]]
30
-  (0.3ms) RELEASE SAVEPOINT active_record_1
31
-  (0.3ms) ROLLBACK
32
-  (0.6ms) BEGIN
33
-  (0.2ms) COMMIT
34
-  (0.2ms) BEGIN
35
-  (0.4ms) SAVEPOINT active_record_1
36
- SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "kurt@boehm.net"], ["created_at", "2016-05-08 08:57:57.696993"], ["updated_at", "2016-05-08 08:57:57.696993"]]
37
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["created_at", "2016-05-08 08:57:57.698815"]]
38
-  (0.4ms) RELEASE SAVEPOINT active_record_1
39
-  (0.3ms) SAVEPOINT active_record_1
40
- SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "allan@mueller.info"], ["created_at", "2016-05-08 08:57:57.703030"], ["updated_at", "2016-05-08 08:57:57.703030"]]
41
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 08:57:57.702160"], ["receiver_id", 3], ["created_at", "2016-05-08 08:57:57.705189"]]
42
-  (0.3ms) RELEASE SAVEPOINT active_record_1
43
- Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
44
-  (0.3ms) ROLLBACK
45
-  (0.3ms) BEGIN
46
-  (0.3ms) COMMIT
47
-  (0.2ms) BEGIN
48
-  (0.3ms) SAVEPOINT active_record_1
49
- SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "cory@brakusvolkman.org"], ["created_at", "2016-05-08 08:57:57.714748"], ["updated_at", "2016-05-08 08:57:57.714748"]]
50
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 08:57:57.714057"], ["receiver_id", 4], ["created_at", "2016-05-08 08:57:57.716131"]]
51
-  (0.2ms) RELEASE SAVEPOINT active_record_1
52
-  (0.3ms) SAVEPOINT active_record_1
53
- SQL (1.0ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
54
-  (0.6ms) RELEASE SAVEPOINT active_record_1
55
-  (1.0ms) ROLLBACK
56
-  (2.5ms) BEGIN
57
-  (0.8ms) COMMIT
58
-  (1.6ms) BEGIN
59
-  (0.7ms) ROLLBACK
60
-  (0.3ms) BEGIN
61
-  (0.2ms) COMMIT
62
-  (0.2ms) BEGIN
63
-  (0.3ms) SAVEPOINT active_record_1
64
- SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "mateo_lang@mitchell.org"], ["created_at", "2016-05-08 08:57:57.744663"], ["updated_at", "2016-05-08 08:57:57.744663"]]
65
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-05-08 08:57:57.746242"]]
66
-  (0.3ms) RELEASE SAVEPOINT active_record_1
67
-  (0.2ms) SAVEPOINT active_record_1
68
- SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-08 08:57:57.748336"], ["id", 5]]
69
-  (0.2ms) RELEASE SAVEPOINT active_record_1
70
-  (0.2ms) ROLLBACK
71
-  (0.2ms) BEGIN
72
-  (0.7ms) COMMIT
73
-  (0.2ms) BEGIN
74
-  (0.3ms) ROLLBACK
75
-  (0.2ms) BEGIN
76
-  (0.3ms) COMMIT
77
-  (0.2ms) BEGIN
78
-  (0.5ms) ROLLBACK
79
-  (0.2ms) BEGIN
80
-  (0.2ms) COMMIT
81
-  (0.2ms) BEGIN
82
-  (0.3ms) SAVEPOINT active_record_1
83
- SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "retta@heathcote.org"], ["created_at", "2016-05-08 08:57:57.762738"], ["updated_at", "2016-05-08 08:57:57.762738"]]
84
-  (0.2ms) RELEASE SAVEPOINT active_record_1
85
-  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
86
-  (0.3ms) SAVEPOINT active_record_1
87
- SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 6], ["receiver_type", "User"], ["created_at", "2016-05-08 08:57:57.773577"]]
88
-  (0.3ms) RELEASE SAVEPOINT active_record_1
89
-  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
90
-  (0.2ms) ROLLBACK
91
-  (0.2ms) BEGIN
92
-  (0.2ms) COMMIT
93
-  (0.2ms) BEGIN
94
-  (0.2ms) SAVEPOINT active_record_1
95
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jerrod.dicki@larson.name"], ["created_at", "2016-05-08 08:57:57.780359"], ["updated_at", "2016-05-08 08:57:57.780359"]]
96
-  (0.2ms) RELEASE SAVEPOINT active_record_1
97
-  (0.2ms) SAVEPOINT active_record_1
98
- SQL (1.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 7], ["receiver_type", "User"], ["created_at", "2016-05-08 08:57:57.783114"]]
99
-  (0.3ms) RELEASE SAVEPOINT active_record_1
100
- Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
101
-  (0.2ms) ROLLBACK
102
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
103
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
104
-  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
105
-  (4.8ms)  SELECT schemaname || '.' || tablename
106
- FROM pg_tables
107
- WHERE
108
- tablename !~ '_prt_' AND
109
- tablename <> 'schema_migrations' AND
110
- schemaname = ANY (current_schemas(false))
111
- 
112
-  (3.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
113
-  (23.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
114
-  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
115
-  (0.2ms) BEGIN
116
-  (0.2ms) COMMIT
10
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
11
+  (3.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
12
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
13
+  (0.1ms) BEGIN
14
+  (0.1ms) COMMIT
117
15
   (0.1ms) BEGIN
118
-  (0.3ms) ROLLBACK
119
-  (1.2ms) BEGIN
120
-  (1.8ms) COMMIT
121
-  (0.3ms) BEGIN
122
-  (0.2ms) SAVEPOINT active_record_1
123
- SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "theresa@mayer.co"], ["created_at", "2016-05-08 09:42:59.820995"], ["updated_at", "2016-05-08 09:42:59.820995"]]
124
-  (0.2ms) RELEASE SAVEPOINT active_record_1
125
-  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
126
-  (0.1ms) SAVEPOINT active_record_1
127
- SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-05-08 09:42:59.837958"]]
128
-  (0.1ms) RELEASE SAVEPOINT active_record_1
129
-  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
130
16
   (0.2ms) ROLLBACK
131
-  (0.2ms) BEGIN
17
+  (0.1ms) BEGIN
132
18
   (0.1ms) COMMIT
133
19
   (0.1ms) BEGIN
134
20
   (0.1ms) SAVEPOINT active_record_1
135
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "lionel.murphy@blanda.io"], ["created_at", "2016-05-08 09:42:59.844332"], ["updated_at", "2016-05-08 09:42:59.844332"]]
21
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:48.993674"], ["updated_at", "2016-06-25 13:26:48.993674"]]
136
22
   (0.1ms) RELEASE SAVEPOINT active_record_1
137
-  (0.1ms) SAVEPOINT active_record_1
138
- SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2016-05-08 09:42:59.847061"]]
23
+  (0.2ms) SAVEPOINT active_record_1
24
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:26:49.005979"]]
139
25
   (0.1ms) RELEASE SAVEPOINT active_record_1
140
- Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
141
-  (0.2ms) ROLLBACK
26
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
27
+  (0.1ms) ROLLBACK
142
28
   (0.1ms) BEGIN
143
29
   (0.1ms) COMMIT
144
30
   (0.1ms) BEGIN
145
31
   (0.1ms) SAVEPOINT active_record_1
146
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "josefina@reinger.net"], ["created_at", "2016-05-08 09:42:59.856179"], ["updated_at", "2016-05-08 09:42:59.856179"]]
147
- SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-05-08 09:42:59.857535"]]
148
-  (0.1ms) RELEASE SAVEPOINT active_record_1
32
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:49.016221"], ["updated_at", "2016-06-25 13:26:49.016221"]]
33
+  (0.1ms) RELEASE SAVEPOINT active_record_1
34
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
35
+  (0.1ms) SAVEPOINT active_record_1
36
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2016-06-25 13:26:49.020239"]]
37
+  (0.1ms) RELEASE SAVEPOINT active_record_1
38
+  (0.1ms) SAVEPOINT active_record_1
39
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
149
41
   (0.1ms) ROLLBACK
150
42
   (0.1ms) BEGIN
151
43
   (0.1ms) COMMIT
152
44
   (0.1ms) BEGIN
153
-  (0.1ms) ROLLBACK
154
-  (0.2ms) BEGIN
155
-  (0.1ms) COMMIT
156
-  (0.1ms) BEGIN
45
+  (0.1ms) SAVEPOINT active_record_1
46
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:49.024836"], ["updated_at", "2016-06-25 13:26:49.024836"]]
47
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-06-25 13:26:49.025621"]]
48
+  (0.1ms) RELEASE SAVEPOINT active_record_1
157
49
   (0.1ms) ROLLBACK
158
50
   (0.1ms) BEGIN
159
51
   (0.1ms) COMMIT
160
52
   (0.1ms) BEGIN
161
-  (0.2ms) SAVEPOINT active_record_1
162
- SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "peyton@stamm.co"], ["created_at", "2016-05-08 09:42:59.869951"], ["updated_at", "2016-05-08 09:42:59.869951"]]
163
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:42:59.868270"], ["receiver_id", 4], ["created_at", "2016-05-08 09:42:59.872125"]]
164
-  (0.3ms) RELEASE SAVEPOINT active_record_1
165
-  (0.2ms) SAVEPOINT active_record_1
166
- SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
167
-  (1.0ms) RELEASE SAVEPOINT active_record_1
168
-  (0.3ms) ROLLBACK
169
-  (0.2ms) BEGIN
170
-  (1.5ms) COMMIT
171
-  (1.4ms) BEGIN
53
+  (0.1ms) SAVEPOINT active_record_1
54
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:49.028393"], ["updated_at", "2016-06-25 13:26:49.028393"]]
55
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 4], ["created_at", "2016-06-25 13:26:49.029101"]]
56
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57
+  (0.1ms) SAVEPOINT active_record_1
58
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 13:26:49.030270"], ["id", 4]]
59
+  (0.1ms) RELEASE SAVEPOINT active_record_1
60
+  (0.1ms) ROLLBACK
61
+  (0.1ms) BEGIN
62
+  (0.1ms) COMMIT
63
+  (0.1ms) BEGIN
64
+  (0.1ms) ROLLBACK
65
+  (0.1ms) BEGIN
66
+  (0.1ms) COMMIT
67
+  (0.1ms) BEGIN
68
+  (0.1ms) ROLLBACK
69
+  (0.1ms) BEGIN
70
+  (0.1ms) COMMIT
71
+  (0.1ms) BEGIN
172
72
   (0.1ms) SAVEPOINT active_record_1
173
- SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "fern.hackett@doyle.name"], ["created_at", "2016-05-08 09:42:59.895981"], ["updated_at", "2016-05-08 09:42:59.895981"]]
174
- SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-05-08 09:42:59.897512"]]
73
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:49.039305"], ["updated_at", "2016-06-25 13:26:49.039305"]]
74
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:26:49.038945"], ["receiver_id", 5], ["created_at", "2016-06-25 13:26:49.040151"]]
175
75
   (0.1ms) RELEASE SAVEPOINT active_record_1
176
-  (0.2ms) SAVEPOINT active_record_1
177
- SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "carroll.dubuque@hillchroeder.net"], ["created_at", "2016-05-08 09:42:59.900473"], ["updated_at", "2016-05-08 09:42:59.900473"]]
178
- SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:42:59.899860"], ["receiver_id", 6], ["created_at", "2016-05-08 09:42:59.903226"]]
179
-  (0.7ms) RELEASE SAVEPOINT active_record_1
180
- Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
181
-  (0.2ms) ROLLBACK
76
+  (0.1ms) SAVEPOINT active_record_1
77
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 5]]
78
+  (0.1ms) RELEASE SAVEPOINT active_record_1
79
+  (0.1ms) ROLLBACK
182
80
   (0.1ms) BEGIN
183
81
   (0.1ms) COMMIT
184
82
   (0.1ms) BEGIN
185
-  (0.8ms) SAVEPOINT active_record_1
186
- SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "beth@wolf.com"], ["created_at", "2016-05-08 09:42:59.914130"], ["updated_at", "2016-05-08 09:42:59.914130"]]
187
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 7], ["created_at", "2016-05-08 09:42:59.918024"]]
83
+  (0.1ms) SAVEPOINT active_record_1
84
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:49.044758"], ["updated_at", "2016-06-25 13:26:49.044758"]]
85
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 6], ["created_at", "2016-06-25 13:26:49.045640"]]
188
86
   (0.1ms) RELEASE SAVEPOINT active_record_1
189
-  (0.2ms) SAVEPOINT active_record_1
190
- SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-08 09:42:59.921735"], ["id", 7]]
191
-  (0.1ms) RELEASE SAVEPOINT active_record_1
87
+  (0.1ms) SAVEPOINT active_record_1
88
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:26:49.047241"], ["updated_at", "2016-06-25 13:26:49.047241"]]
89
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:26:49.046914"], ["receiver_id", 7], ["created_at", "2016-06-25 13:26:49.047885"]]
90
+  (0.1ms) RELEASE SAVEPOINT active_record_1
91
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
192
92
   (0.1ms) ROLLBACK
193
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
194
-  (106.8ms) DROP DATABASE IF EXISTS "hertz_test"
195
-  (367.6ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
196
- SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
197
- SQL (30.4ms) CREATE EXTENSION IF NOT EXISTS "hstore"
198
-  (9.5ms) CREATE TABLE "hertz_notifications" ("id" serial 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) 
199
-  (5.8ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
200
-  (4.3ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
201
-  (4.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
202
-  (0.6ms) SELECT version FROM "schema_migrations"
203
-  (1.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160508094342')
204
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
205
-  (1.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
206
-  (3.0ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
207
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
208
-  (0.4ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
209
-  (2.3ms) SELECT schemaname || '.' || tablename
93
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
94
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
95
+  (0.7ms)  SELECT schemaname || '.' || tablename
210
96
  FROM pg_tables
211
97
  WHERE
212
98
  tablename !~ '_prt_' AND
213
99
  tablename <> 'schema_migrations' AND
214
100
  schemaname = ANY (current_schemas(false))
215
-
216
-  (2.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
217
-  (22.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
218
-  (1.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
219
-  (0.3ms) BEGIN
220
-  (0.3ms) COMMIT
221
-  (0.2ms) BEGIN
222
-  (0.2ms) ROLLBACK
101
+ 
102
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
103
+  (3.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
104
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
105
+  (0.1ms) BEGIN
106
+  (0.1ms) COMMIT
107
+  (0.1ms) BEGIN
108
+  (0.3ms) SAVEPOINT active_record_1
109
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.074133"], ["updated_at", "2016-06-25 13:30:39.074133"]]
110
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:30:39.076937"]]
111
+  (0.1ms) RELEASE SAVEPOINT active_record_1
112
+  (0.1ms) ROLLBACK
113
+  (0.1ms) BEGIN
114
+  (0.1ms) COMMIT
115
+  (0.1ms) BEGIN
116
+  (0.1ms) SAVEPOINT active_record_1
117
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.098804"], ["updated_at", "2016-06-25 13:30:39.098804"]]
118
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:30:39.098417"], ["receiver_id", 2], ["created_at", "2016-06-25 13:30:39.099884"]]
119
+  (0.1ms) RELEASE SAVEPOINT active_record_1
120
+  (0.1ms) SAVEPOINT active_record_1
121
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 2]]
122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
123
+  (0.1ms) ROLLBACK
223
124
   (0.1ms) BEGIN
224
125
   (0.1ms) COMMIT
225
-  (0.3ms) BEGIN
226
-  (0.2ms) SAVEPOINT active_record_1
227
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.802237"], ["updated_at", "2016-05-08 09:44:03.802237"]]
228
- SQL (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-05-08 09:44:03.807237"]]
229
-  (0.4ms) RELEASE SAVEPOINT active_record_1
230
-  (1.1ms) ROLLBACK
231
-  (0.2ms) BEGIN
126
+  (0.1ms) BEGIN
127
+  (0.1ms) SAVEPOINT active_record_1
128
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.108502"], ["updated_at", "2016-06-25 13:30:39.108502"]]
129
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-06-25 13:30:39.109329"]]
130
+  (0.1ms) RELEASE SAVEPOINT active_record_1
131
+  (0.1ms) SAVEPOINT active_record_1
132
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.111102"], ["updated_at", "2016-06-25 13:30:39.111102"]]
133
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:30:39.110710"], ["receiver_id", 4], ["created_at", "2016-06-25 13:30:39.111881"]]
134
+  (0.1ms) RELEASE SAVEPOINT active_record_1
135
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
136
+  (0.1ms) ROLLBACK
137
+  (0.1ms) BEGIN
138
+  (0.1ms) COMMIT
139
+  (0.1ms) BEGIN
140
+  (0.1ms) SAVEPOINT active_record_1
141
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.116185"], ["updated_at", "2016-06-25 13:30:39.116185"]]
142
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-06-25 13:30:39.116934"]]
143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
144
+  (0.1ms) SAVEPOINT active_record_1
145
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 13:30:39.118006"], ["id", 5]]
146
+  (0.1ms) RELEASE SAVEPOINT active_record_1
147
+  (0.1ms) ROLLBACK
148
+  (0.1ms) BEGIN
232
149
   (0.1ms) COMMIT
233
150
   (0.1ms) BEGIN
234
-  (0.3ms) ROLLBACK
235
-  (0.2ms) BEGIN
151
+  (0.1ms) ROLLBACK
152
+  (0.1ms) BEGIN
236
153
   (0.1ms) COMMIT
237
154
   (0.1ms) BEGIN
238
155
   (0.1ms) ROLLBACK
@@ -240,147 +157,2266 @@ Hertz::NotificationMailer#notification_email: processed outbound mail in 12.4ms
240
157
   (0.1ms) COMMIT
241
158
   (0.1ms) BEGIN
242
159
   (0.1ms) SAVEPOINT active_record_1
243
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.828470"], ["updated_at", "2016-05-08 09:44:03.828470"]]
244
- SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 2], ["created_at", "2016-05-08 09:44:03.830017"]]
160
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.123817"], ["updated_at", "2016-06-25 13:30:39.123817"]]
161
+  (0.1ms) RELEASE SAVEPOINT active_record_1
162
+  (0.1ms) SAVEPOINT active_record_1
163
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 6], ["receiver_type", "User"], ["created_at", "2016-06-25 13:30:39.125163"]]
245
164
   (0.1ms) RELEASE SAVEPOINT active_record_1
246
-  (0.1ms) SAVEPOINT active_record_1
247
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.833328"], ["updated_at", "2016-05-08 09:44:03.833328"]]
248
- SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:03.832604"], ["receiver_id", 3], ["created_at", "2016-05-08 09:44:03.835174"]]
249
-  (0.2ms) RELEASE SAVEPOINT active_record_1
250
- Hertz::Notification Load (1.8ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
165
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
251
166
   (0.1ms) ROLLBACK
252
167
   (0.1ms) BEGIN
253
168
   (0.1ms) COMMIT
254
169
   (0.1ms) BEGIN
255
-  (0.3ms) SAVEPOINT active_record_1
256
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.847493"], ["updated_at", "2016-05-08 09:44:03.847493"]]
257
- SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:03.846419"], ["receiver_id", 4], ["created_at", "2016-05-08 09:44:03.850016"]]
258
-  (0.1ms) RELEASE SAVEPOINT active_record_1
259
170
   (0.1ms) SAVEPOINT active_record_1
260
- SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
171
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:30:39.134658"], ["updated_at", "2016-06-25 13:30:39.134658"]]
172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
173
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
174
+  (0.1ms) SAVEPOINT active_record_1
175
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 7], ["receiver_type", "User"], ["created_at", "2016-06-25 13:30:39.137678"]]
261
176
   (0.1ms) RELEASE SAVEPOINT active_record_1
262
-  (0.1ms) ROLLBACK
263
-  (0.4ms) BEGIN
264
-  (0.7ms) COMMIT
265
-  (0.1ms) BEGIN
266
177
   (0.1ms) SAVEPOINT active_record_1
267
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.866348"], ["updated_at", "2016-05-08 09:44:03.866348"]]
268
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-05-08 09:44:03.867947"]]
269
-  (0.2ms) RELEASE SAVEPOINT active_record_1
270
-  (0.2ms) SAVEPOINT active_record_1
271
- SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-08 09:44:03.870491"], ["id", 5]]
272
-  (0.2ms) RELEASE SAVEPOINT active_record_1
178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
179
+  (0.1ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
273
180
   (0.1ms) ROLLBACK
274
181
   (0.1ms) BEGIN
275
182
   (0.1ms) COMMIT
276
183
   (0.1ms) BEGIN
277
-  (0.1ms) SAVEPOINT active_record_1
278
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.879831"], ["updated_at", "2016-05-08 09:44:03.879831"]]
279
-  (0.7ms) RELEASE SAVEPOINT active_record_1
280
-  (0.2ms) SAVEPOINT active_record_1
281
- SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 6], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:03.886666"]]
282
-  (0.2ms) RELEASE SAVEPOINT active_record_1
283
- Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
284
-  (0.2ms) ROLLBACK
184
+  (0.2ms) ROLLBACK
185
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
186
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
187
+  (0.7ms)  SELECT schemaname || '.' || tablename
188
+ FROM pg_tables
189
+ WHERE
190
+ tablename !~ '_prt_' AND
191
+ tablename <> 'schema_migrations' AND
192
+ schemaname = ANY (current_schemas(false))
193
+ 
194
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
195
+  (3.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
196
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
197
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
198
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
199
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
285
200
   (0.1ms) BEGIN
286
-  (0.1ms) COMMIT
201
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:51.959400"], ["updated_at", "2016-06-25 13:31:51.959400"]]
202
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:31:51.962062"]]
203
+  (0.4ms) COMMIT
204
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
205
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
206
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
207
+  (0.1ms) BEGIN
208
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:51.969120"], ["updated_at", "2016-06-25 13:31:51.969120"]]
209
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:31:51.970089"]]
210
+  (0.3ms) COMMIT
211
+  (0.1ms) BEGIN
212
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 13:31:51.972921"], ["id", 1]]
213
+  (0.3ms) COMMIT
214
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
215
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
216
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
217
+  (0.1ms) BEGIN
218
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:51.982019"], ["updated_at", "2016-06-25 13:31:51.982019"]]
219
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:31:51.982945"]]
220
+  (0.3ms) COMMIT
221
+  (0.1ms) BEGIN
222
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:51.984761"], ["updated_at", "2016-06-25 13:31:51.984761"]]
223
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:31:51.984434"], ["receiver_id", 2], ["created_at", "2016-06-25 13:31:51.985423"]]
224
+  (0.3ms) COMMIT
225
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
226
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
227
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
228
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
229
+  (0.1ms) BEGIN
230
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:51.992740"], ["updated_at", "2016-06-25 13:31:51.992740"]]
231
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:31:51.992292"], ["receiver_id", 1], ["created_at", "2016-06-25 13:31:51.993706"]]
232
+  (0.3ms) COMMIT
233
+  (0.1ms) BEGIN
234
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
235
+  (0.3ms) COMMIT
236
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
237
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
238
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
239
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
240
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
241
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
242
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
243
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
244
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
245
+  (0.1ms) BEGIN
246
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:52.012695"], ["updated_at", "2016-06-25 13:31:52.012695"]]
247
+  (0.3ms) COMMIT
287
248
   (0.1ms) BEGIN
288
-  (0.2ms) SAVEPOINT active_record_1
289
- SQL (1.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:03.920255"], ["updated_at", "2016-05-08 09:44:03.920255"]]
290
-  (0.2ms) RELEASE SAVEPOINT active_record_1
291
-  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
292
-  (0.2ms) SAVEPOINT active_record_1
293
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 7], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:03.929978"]]
294
-  (0.2ms) RELEASE SAVEPOINT active_record_1
295
-  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
296
-  (0.5ms) ROLLBACK
297
- ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
298
-  (7.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
299
-  (1.4ms)  SELECT schemaname || '.' || tablename
249
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:31:52.014544"]]
250
+  (0.2ms) COMMIT
251
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
252
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
253
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
254
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
255
+  (0.1ms) BEGIN
256
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:31:52.027397"], ["updated_at", "2016-06-25 13:31:52.027397"]]
257
+  (0.3ms) COMMIT
258
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
259
+  (0.1ms) BEGIN
260
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:31:52.030519"]]
261
+  (0.3ms) COMMIT
262
+  (0.1ms) BEGIN
263
+  (0.1ms) COMMIT
264
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
265
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
266
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
267
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
268
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
269
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
270
+  (0.7ms)  SELECT schemaname || '.' || tablename
300
271
  FROM pg_tables
301
272
  WHERE
302
273
  tablename !~ '_prt_' AND
303
274
  tablename <> 'schema_migrations' AND
304
275
  schemaname = ANY (current_schemas(false))
305
276
  
306
-  (1.4ms) select table_name from information_schema.views where table_schema = 'hertz_test'
307
-  (9.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
308
-  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
309
-  (0.2ms) BEGIN
310
-  (0.2ms) COMMIT
277
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
278
+  (3.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
279
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
280
+  (0.1ms) BEGIN
281
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.561241"], ["updated_at", "2016-06-25 13:43:02.561241"]]
282
+  (0.3ms) COMMIT
283
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
311
284
   (0.2ms) BEGIN
312
-  (0.8ms) SAVEPOINT active_record_1
313
- SQL (3.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.578060"], ["updated_at", "2016-05-08 09:44:40.578060"]]
314
-  (0.3ms) RELEASE SAVEPOINT active_record_1
315
-  (0.5ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
316
-  (0.3ms) SAVEPOINT active_record_1
317
- SQL (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:40.620014"]]
318
-  (0.3ms) RELEASE SAVEPOINT active_record_1
319
-  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
320
-  (0.5ms) ROLLBACK
321
-  (0.3ms) BEGIN
285
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:43:02.584593"]]
286
+  (0.3ms) COMMIT
287
+  (0.1ms) BEGIN
288
+  (0.1ms) COMMIT
289
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
290
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
291
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
292
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
293
+  (0.1ms) BEGIN
294
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.592589"], ["updated_at", "2016-06-25 13:43:02.592589"]]
322
295
   (0.3ms) COMMIT
323
-  (0.3ms) BEGIN
324
-  (0.3ms) SAVEPOINT active_record_1
325
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.628528"], ["updated_at", "2016-05-08 09:44:40.628528"]]
326
-  (0.3ms) RELEASE SAVEPOINT active_record_1
327
-  (0.3ms) SAVEPOINT active_record_1
328
- SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 2], ["receiver_type", "User"], ["created_at", "2016-05-08 09:44:40.631941"]]
329
-  (0.3ms) RELEASE SAVEPOINT active_record_1
330
- Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
331
-  (0.5ms) ROLLBACK
332
-  (0.3ms) BEGIN
296
+  (0.1ms) BEGIN
297
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:43:02.594640"]]
333
298
   (0.3ms) COMMIT
334
-  (0.3ms) BEGIN
335
-  (1.5ms) ROLLBACK
336
-  (0.4ms) BEGIN
337
-  (0.8ms) COMMIT
338
-  (2.8ms) BEGIN
339
-  (0.8ms) SAVEPOINT active_record_1
340
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.665470"], ["updated_at", "2016-05-08 09:44:40.665470"]]
341
- SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-05-08 09:44:40.667555"]]
342
-  (0.1ms) RELEASE SAVEPOINT active_record_1
343
-  (0.1ms) ROLLBACK
299
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
300
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
301
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
302
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
344
303
   (0.1ms) BEGIN
345
-  (0.2ms) COMMIT
304
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.609207"], ["updated_at", "2016-06-25 13:43:02.609207"]]
305
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:43:02.610290"]]
306
+  (0.3ms) COMMIT
307
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
308
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
309
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
310
+  (0.1ms) BEGIN
311
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.617504"], ["updated_at", "2016-06-25 13:43:02.617504"]]
312
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:43:02.617084"], ["receiver_id", 1], ["created_at", "2016-06-25 13:43:02.618488"]]
313
+  (0.4ms) COMMIT
314
+  (0.1ms) BEGIN
315
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
316
+  (0.3ms) COMMIT
317
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
318
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
319
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
320
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
321
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
322
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
346
323
   (0.1ms) BEGIN
347
-  (0.2ms) SAVEPOINT active_record_1
348
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.675373"], ["updated_at", "2016-05-08 09:44:40.675373"]]
349
- SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 4], ["created_at", "2016-05-08 09:44:40.677479"]]
350
-  (0.3ms) RELEASE SAVEPOINT active_record_1
351
-  (0.1ms) SAVEPOINT active_record_1
352
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.681590"], ["updated_at", "2016-05-08 09:44:40.681590"]]
353
- SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:40.680667"], ["receiver_id", 5], ["created_at", "2016-05-08 09:44:40.683379"]]
354
-  (0.1ms) RELEASE SAVEPOINT active_record_1
355
- Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
356
-  (0.2ms) ROLLBACK
324
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.634105"], ["updated_at", "2016-06-25 13:43:02.634105"]]
325
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:43:02.634987"]]
326
+  (0.3ms) COMMIT
327
+  (0.1ms) BEGIN
328
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 13:43:02.636404"], ["id", 1]]
329
+  (0.3ms) COMMIT
330
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
331
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
332
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
333
+  (0.1ms) BEGIN
334
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.642971"], ["updated_at", "2016-06-25 13:43:02.642971"]]
335
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:43:02.643980"]]
336
+  (0.3ms) COMMIT
337
+  (0.1ms) BEGIN
338
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:43:02.646316"], ["updated_at", "2016-06-25 13:43:02.646316"]]
339
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:43:02.645886"], ["receiver_id", 2], ["created_at", "2016-06-25 13:43:02.647106"]]
340
+  (0.2ms) COMMIT
341
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
342
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
343
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
344
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
345
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
346
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
347
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
348
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
349
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
350
+  (0.7ms)  SELECT schemaname || '.' || tablename
351
+ FROM pg_tables
352
+ WHERE
353
+ tablename !~ '_prt_' AND
354
+ tablename <> 'schema_migrations' AND
355
+ schemaname = ANY (current_schemas(false))
356
+ 
357
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
358
+  (3.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
359
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
360
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
361
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
362
+  (0.7ms)  SELECT schemaname || '.' || tablename
363
+ FROM pg_tables
364
+ WHERE
365
+ tablename !~ '_prt_' AND
366
+ tablename <> 'schema_migrations' AND
367
+ schemaname = ANY (current_schemas(false))
368
+ 
369
+  (0.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
370
+  (3.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
371
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
357
372
   (0.2ms) BEGIN
358
-  (0.2ms) COMMIT
373
+ SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "created_at") VALUES ($1, $2) RETURNING "id" [["type", "Hertz::TestNotification"], ["created_at", "2016-06-25 13:46:47.183078"]]
374
+  (0.1ms) ROLLBACK
375
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
376
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
377
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
378
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
379
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
380
+  (0.7ms)  SELECT schemaname || '.' || tablename
381
+ FROM pg_tables
382
+ WHERE
383
+ tablename !~ '_prt_' AND
384
+ tablename <> 'schema_migrations' AND
385
+ schemaname = ANY (current_schemas(false))
386
+ 
387
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
388
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
389
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
390
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
391
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
392
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
393
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
394
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
395
+  (0.7ms)  SELECT schemaname || '.' || tablename
396
+ FROM pg_tables
397
+ WHERE
398
+ tablename !~ '_prt_' AND
399
+ tablename <> 'schema_migrations' AND
400
+ schemaname = ANY (current_schemas(false))
401
+ 
402
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
403
+  (3.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
404
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
405
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
406
+  (2.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
407
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
408
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
409
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
410
+  (0.7ms)  SELECT schemaname || '.' || tablename
411
+ FROM pg_tables
412
+ WHERE
413
+ tablename !~ '_prt_' AND
414
+ tablename <> 'schema_migrations' AND
415
+ schemaname = ANY (current_schemas(false))
416
+ 
417
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
418
+  (3.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
419
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
420
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
421
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
422
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
423
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
424
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
425
+  (0.9ms)  SELECT schemaname || '.' || tablename
426
+ FROM pg_tables
427
+ WHERE
428
+ tablename !~ '_prt_' AND
429
+ tablename <> 'schema_migrations' AND
430
+ schemaname = ANY (current_schemas(false))
431
+ 
432
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
433
+  (3.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
434
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
435
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
436
+  (2.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
437
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
438
+  (0.2ms) BEGIN
439
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.354825"], ["updated_at", "2016-06-25 13:48:15.354825"]]
440
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:48:15.357590"]]
441
+  (0.3ms) COMMIT
442
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
443
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
444
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
445
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
446
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
447
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
448
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
449
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
450
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
359
451
   (0.1ms) BEGIN
360
-  (0.3ms) ROLLBACK
361
-  (1.7ms) BEGIN
452
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.375839"], ["updated_at", "2016-06-25 13:48:15.375839"]]
453
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:48:15.376780"]]
362
454
   (0.3ms) COMMIT
455
+  (0.1ms) BEGIN
456
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 13:48:15.378497"], ["id", 1]]
457
+  (0.3ms) COMMIT
458
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
459
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
460
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
461
+  (0.1ms) BEGIN
462
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.388519"], ["updated_at", "2016-06-25 13:48:15.388519"]]
463
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:48:15.388121"], ["receiver_id", 1], ["created_at", "2016-06-25 13:48:15.389417"]]
464
+  (0.3ms) COMMIT
465
+  (0.1ms) BEGIN
466
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
467
+  (0.2ms) COMMIT
468
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
469
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
470
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
471
+  (0.1ms) BEGIN
472
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.396555"], ["updated_at", "2016-06-25 13:48:15.396555"]]
473
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 13:48:15.397456"]]
474
+  (0.3ms) COMMIT
475
+  (0.1ms) BEGIN
476
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.399338"], ["updated_at", "2016-06-25 13:48:15.399338"]]
477
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 13:48:15.398989"], ["receiver_id", 2], ["created_at", "2016-06-25 13:48:15.399970"]]
478
+  (0.2ms) COMMIT
479
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
480
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
481
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
482
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
483
+  (0.1ms) BEGIN
484
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.407311"], ["updated_at", "2016-06-25 13:48:15.407311"]]
485
+  (0.3ms) COMMIT
486
+  (0.1ms) BEGIN
487
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:48:15.409212"]]
488
+  (0.2ms) COMMIT
489
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
490
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
491
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
492
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
493
+  (0.1ms) BEGIN
494
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 13:48:15.422176"], ["updated_at", "2016-06-25 13:48:15.422176"]]
495
+  (0.2ms) COMMIT
496
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
497
+  (0.1ms) BEGIN
498
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 13:48:15.424889"]]
499
+  (0.3ms) COMMIT
500
+  (0.1ms) BEGIN
501
+  (0.1ms) COMMIT
502
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
503
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
504
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
505
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
506
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
507
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
508
+  (0.7ms)  SELECT schemaname || '.' || tablename
509
+ FROM pg_tables
510
+ WHERE
511
+ tablename !~ '_prt_' AND
512
+ tablename <> 'schema_migrations' AND
513
+ schemaname = ANY (current_schemas(false))
514
+ 
515
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
516
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
517
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
518
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
519
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
520
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
521
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
522
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
523
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
524
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
525
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
526
+  (0.7ms)  SELECT schemaname || '.' || tablename
527
+ FROM pg_tables
528
+ WHERE
529
+ tablename !~ '_prt_' AND
530
+ tablename <> 'schema_migrations' AND
531
+ schemaname = ANY (current_schemas(false))
532
+ 
533
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
534
+  (3.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
535
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
536
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
537
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
538
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
539
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
540
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
541
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
542
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
543
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
544
+  (0.7ms)  SELECT schemaname || '.' || tablename
545
+ FROM pg_tables
546
+ WHERE
547
+ tablename !~ '_prt_' AND
548
+ tablename <> 'schema_migrations' AND
549
+ schemaname = ANY (current_schemas(false))
550
+ 
551
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
552
+  (4.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
553
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
554
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
555
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
556
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
557
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
558
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
559
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
560
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
561
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
562
+  (0.9ms)  SELECT schemaname || '.' || tablename
563
+ FROM pg_tables
564
+ WHERE
565
+ tablename !~ '_prt_' AND
566
+ tablename <> 'schema_migrations' AND
567
+ schemaname = ANY (current_schemas(false))
568
+ 
569
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
570
+  (4.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
571
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
572
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
573
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
574
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
575
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
576
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
577
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
578
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
579
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
580
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
581
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
582
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
583
+  (0.7ms)  SELECT schemaname || '.' || tablename
584
+ FROM pg_tables
585
+ WHERE
586
+ tablename !~ '_prt_' AND
587
+ tablename <> 'schema_migrations' AND
588
+ schemaname = ANY (current_schemas(false))
589
+ 
590
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
591
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
592
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
593
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
594
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
595
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
596
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
597
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
598
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
599
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
600
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
601
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
602
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
603
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
604
+  (0.7ms)  SELECT schemaname || '.' || tablename
605
+ FROM pg_tables
606
+ WHERE
607
+ tablename !~ '_prt_' AND
608
+ tablename <> 'schema_migrations' AND
609
+ schemaname = ANY (current_schemas(false))
610
+ 
611
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
612
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
613
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
614
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
615
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
616
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
617
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
618
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
619
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
620
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
621
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
622
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
623
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
624
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
625
+  (0.7ms)  SELECT schemaname || '.' || tablename
626
+ FROM pg_tables
627
+ WHERE
628
+ tablename !~ '_prt_' AND
629
+ tablename <> 'schema_migrations' AND
630
+ schemaname = ANY (current_schemas(false))
631
+ 
632
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
633
+  (3.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
634
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
635
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
636
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
637
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
638
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
639
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
640
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
641
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
642
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
643
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
644
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
645
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
646
+  (0.7ms)  SELECT schemaname || '.' || tablename
647
+ FROM pg_tables
648
+ WHERE
649
+ tablename !~ '_prt_' AND
650
+ tablename <> 'schema_migrations' AND
651
+ schemaname = ANY (current_schemas(false))
652
+ 
653
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
654
+  (3.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
655
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
656
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
657
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
658
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
659
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
660
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
661
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
662
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
663
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
664
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
665
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
666
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
667
+  (0.7ms)  SELECT schemaname || '.' || tablename
668
+ FROM pg_tables
669
+ WHERE
670
+ tablename !~ '_prt_' AND
671
+ tablename <> 'schema_migrations' AND
672
+ schemaname = ANY (current_schemas(false))
673
+ 
674
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
675
+  (3.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
676
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
677
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
678
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
679
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
680
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
681
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
682
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
683
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
684
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
685
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
686
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
687
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
688
+  (0.7ms)  SELECT schemaname || '.' || tablename
689
+ FROM pg_tables
690
+ WHERE
691
+ tablename !~ '_prt_' AND
692
+ tablename <> 'schema_migrations' AND
693
+ schemaname = ANY (current_schemas(false))
694
+ 
695
+  (0.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
696
+  (4.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
697
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
698
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
699
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
700
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
701
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
702
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
703
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
704
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
705
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
706
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
707
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
708
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
709
+  (2.3ms)  SELECT schemaname || '.' || tablename
710
+ FROM pg_tables
711
+ WHERE
712
+ tablename !~ '_prt_' AND
713
+ tablename <> 'schema_migrations' AND
714
+ schemaname = ANY (current_schemas(false))
715
+ 
716
+  (1.3ms) select table_name from information_schema.views where table_schema = 'hertz_test'
717
+  (8.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
718
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
719
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
720
+  (4.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
721
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
722
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
723
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
724
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
725
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
726
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
727
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
728
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
729
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
730
+  (0.7ms)  SELECT schemaname || '.' || tablename
731
+ FROM pg_tables
732
+ WHERE
733
+ tablename !~ '_prt_' AND
734
+ tablename <> 'schema_migrations' AND
735
+ schemaname = ANY (current_schemas(false))
736
+ 
737
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
738
+  (3.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
739
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
363
740
   (0.2ms) BEGIN
364
-  (0.8ms) SAVEPOINT active_record_1
365
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.706615"], ["updated_at", "2016-05-08 09:44:40.706615"]]
366
- SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 6], ["created_at", "2016-05-08 09:44:40.708803"]]
367
-  (0.4ms) RELEASE SAVEPOINT active_record_1
368
-  (0.3ms) SAVEPOINT active_record_1
369
- SQL (3.8ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-05-08 09:44:40.711782"], ["id", 6]]
370
-  (1.0ms) RELEASE SAVEPOINT active_record_1
371
-  (1.9ms) ROLLBACK
741
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.758871"], ["updated_at", "2016-06-25 14:04:42.758871"]]
742
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:04:42.761527"]]
743
+  (0.3ms) COMMIT
744
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
745
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
746
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
747
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
748
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
749
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
750
+  (0.1ms) BEGIN
751
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.774642"], ["updated_at", "2016-06-25 14:04:42.774642"]]
752
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:04:42.774149"], ["receiver_id", 1], ["created_at", "2016-06-25 14:04:42.775584"]]
753
+  (0.3ms) COMMIT
754
+  (0.1ms) BEGIN
755
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
756
+  (0.3ms) COMMIT
757
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
758
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
759
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
760
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
761
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
762
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
763
+  (0.1ms) BEGIN
764
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.790944"], ["updated_at", "2016-06-25 14:04:42.790944"]]
765
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:04:42.791870"]]
766
+  (0.3ms) COMMIT
767
+  (0.2ms) BEGIN
768
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.794069"], ["updated_at", "2016-06-25 14:04:42.794069"]]
769
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:04:42.793549"], ["receiver_id", 2], ["created_at", "2016-06-25 14:04:42.794862"]]
770
+  (0.3ms) COMMIT
771
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
772
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
773
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
774
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
775
+  (0.1ms) BEGIN
776
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.801780"], ["updated_at", "2016-06-25 14:04:42.801780"]]
777
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:04:42.802639"]]
778
+  (0.3ms) COMMIT
779
+  (0.1ms) BEGIN
780
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:04:42.804012"], ["id", 1]]
781
+  (0.2ms) COMMIT
782
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
783
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
784
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
785
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
786
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
787
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
788
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
789
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
790
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
791
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
792
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
793
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
794
+  (0.1ms) BEGIN
795
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.841888"], ["updated_at", "2016-06-25 14:04:42.841888"]]
796
+  (0.3ms) COMMIT
797
+  (0.1ms) BEGIN
798
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:04:42.844024"]]
799
+  (0.2ms) COMMIT
800
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
801
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
802
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
803
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
804
+  (0.1ms) BEGIN
805
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:04:42.860039"], ["updated_at", "2016-06-25 14:04:42.860039"]]
806
+  (0.4ms) COMMIT
807
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
808
+  (0.1ms) BEGIN
809
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:04:42.863787"]]
810
+  (0.3ms) COMMIT
811
+  (0.1ms) BEGIN
812
+  (0.1ms) COMMIT
813
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
814
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
815
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
816
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
817
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
818
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
819
+  (0.7ms)  SELECT schemaname || '.' || tablename
820
+ FROM pg_tables
821
+ WHERE
822
+ tablename !~ '_prt_' AND
823
+ tablename <> 'schema_migrations' AND
824
+ schemaname = ANY (current_schemas(false))
825
+ 
826
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
827
+  (2.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
828
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
829
+  (0.1ms) BEGIN
830
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:05:48.314593"], ["updated_at", "2016-06-25 14:05:48.314593"]]
831
+  (0.3ms) COMMIT
832
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
833
+  (0.1ms) BEGIN
834
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:05:48.336403"]]
835
+  (0.3ms) COMMIT
836
+  (0.1ms) BEGIN
837
+  (0.1ms) COMMIT
838
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
839
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
840
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
841
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
842
+  (0.1ms) BEGIN
843
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:05:48.344348"], ["updated_at", "2016-06-25 14:05:48.344348"]]
844
+  (0.3ms) COMMIT
845
+  (0.1ms) BEGIN
846
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:05:48.346630"]]
847
+  (0.3ms) COMMIT
848
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
849
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
850
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
851
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
852
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
853
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
854
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
855
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
856
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
857
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
858
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
859
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
860
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
861
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
862
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
863
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
864
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
865
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
866
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
867
+  (0.1ms) BEGIN
868
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:05:48.409885"], ["updated_at", "2016-06-25 14:05:48.409885"]]
869
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:05:48.409268"], ["receiver_id", 1], ["created_at", "2016-06-25 14:05:48.411018"]]
870
+  (0.4ms) COMMIT
871
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
872
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
873
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
874
+  (0.1ms) BEGIN
875
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:05:48.423046"], ["updated_at", "2016-06-25 14:05:48.423046"]]
876
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:05:48.423898"]]
877
+  (0.3ms) COMMIT
878
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
879
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
880
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
881
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
882
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
883
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
884
+  (0.1ms) BEGIN
885
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:05:48.437619"], ["updated_at", "2016-06-25 14:05:48.437619"]]
886
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:05:48.438651"]]
887
+  (0.5ms) COMMIT
888
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
889
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
890
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
891
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
892
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
893
+  (0.7ms)  SELECT schemaname || '.' || tablename
894
+ FROM pg_tables
895
+ WHERE
896
+ tablename !~ '_prt_' AND
897
+ tablename <> 'schema_migrations' AND
898
+ schemaname = ANY (current_schemas(false))
899
+ 
900
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
901
+  (2.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
902
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
903
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
904
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
905
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
906
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
907
+  (3.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
908
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
909
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
910
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
911
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
912
+  (0.2ms) BEGIN
913
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.109387"], ["updated_at", "2016-06-25 14:06:15.109387"]]
914
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:15.112469"]]
915
+  (0.3ms) COMMIT
916
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
917
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
918
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
919
+  (0.1ms) BEGIN
920
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.119497"], ["updated_at", "2016-06-25 14:06:15.119497"]]
921
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:15.120403"]]
922
+  (0.3ms) COMMIT
923
+  (0.1ms) BEGIN
924
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.122489"], ["updated_at", "2016-06-25 14:06:15.122489"]]
925
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:06:15.122094"], ["receiver_id", 2], ["created_at", "2016-06-25 14:06:15.123292"]]
926
+  (0.3ms) COMMIT
927
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
928
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
929
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
930
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
931
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
932
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
933
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
934
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
935
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
936
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
937
+  (0.1ms) BEGIN
938
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.142409"], ["updated_at", "2016-06-25 14:06:15.142409"]]
939
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:15.143353"]]
940
+  (0.3ms) COMMIT
941
+  (0.1ms) BEGIN
942
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:06:15.144810"], ["id", 1]]
943
+  (0.3ms) COMMIT
944
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
945
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
946
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
947
+  (0.2ms) BEGIN
948
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.154169"], ["updated_at", "2016-06-25 14:06:15.154169"]]
949
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:06:15.153637"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:15.155126"]]
950
+  (0.3ms) COMMIT
951
+  (0.1ms) BEGIN
952
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
953
+  (0.2ms) COMMIT
954
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
955
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
956
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
957
+  (0.2ms) BEGIN
958
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.163744"], ["updated_at", "2016-06-25 14:06:15.163744"]]
959
+  (0.3ms) COMMIT
960
+  (0.1ms) BEGIN
961
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:06:15.165967"]]
962
+  (0.2ms) COMMIT
963
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
964
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
965
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
966
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
967
+  (0.1ms) BEGIN
968
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:15.181809"], ["updated_at", "2016-06-25 14:06:15.181809"]]
969
+  (0.3ms) COMMIT
970
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
971
+  (0.1ms) BEGIN
972
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:06:15.185409"]]
973
+  (0.3ms) COMMIT
974
+  (0.1ms) BEGIN
975
+  (0.1ms) COMMIT
976
+  (0.1ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
977
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
978
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
979
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
980
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
981
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
982
+  (0.7ms)  SELECT schemaname || '.' || tablename
983
+ FROM pg_tables
984
+ WHERE
985
+ tablename !~ '_prt_' AND
986
+ tablename <> 'schema_migrations' AND
987
+ schemaname = ANY (current_schemas(false))
988
+ 
989
+  (0.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
990
+  (3.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
991
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
992
+  (0.2ms) BEGIN
993
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.119996"], ["updated_at", "2016-06-25 14:06:36.119996"]]
994
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:36.122447"]]
995
+  (0.3ms) COMMIT
996
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
997
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
998
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
999
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1000
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1001
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1002
+  (0.1ms) BEGIN
1003
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.141041"], ["updated_at", "2016-06-25 14:06:36.141041"]]
1004
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:36.141905"]]
1005
+  (0.3ms) COMMIT
1006
+  (0.1ms) BEGIN
1007
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:06:36.143379"], ["id", 1]]
1008
+  (0.4ms) COMMIT
1009
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1010
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1011
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1012
+  (0.1ms) BEGIN
1013
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.153410"], ["updated_at", "2016-06-25 14:06:36.153410"]]
1014
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:06:36.152994"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:36.154280"]]
1015
+  (0.3ms) COMMIT
1016
+  (0.1ms) BEGIN
1017
+ SQL (0.1ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1018
+  (0.2ms) COMMIT
1019
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1020
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1021
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1022
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1023
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1024
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1025
+  (0.1ms) BEGIN
1026
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.168023"], ["updated_at", "2016-06-25 14:06:36.168023"]]
1027
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:36.169140"]]
1028
+  (0.3ms) COMMIT
1029
+  (0.1ms) BEGIN
1030
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.171241"], ["updated_at", "2016-06-25 14:06:36.171241"]]
1031
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:06:36.170781"], ["receiver_id", 2], ["created_at", "2016-06-25 14:06:36.172051"]]
1032
+  (0.3ms) COMMIT
1033
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1034
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1035
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1036
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1037
+  (0.1ms) BEGIN
1038
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.180418"], ["updated_at", "2016-06-25 14:06:36.180418"]]
1039
+  (0.3ms) COMMIT
1040
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1041
+  (0.1ms) BEGIN
1042
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:06:36.187752"]]
1043
+  (0.3ms) COMMIT
1044
+  (0.2ms) BEGIN
1045
+  (0.1ms) COMMIT
1046
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1047
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1048
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1049
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1050
+  (0.1ms) BEGIN
1051
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:36.195573"], ["updated_at", "2016-06-25 14:06:36.195573"]]
1052
+  (0.3ms) COMMIT
1053
+  (0.1ms) BEGIN
1054
+ SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:06:36.197450"]]
1055
+  (0.4ms) COMMIT
1056
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1057
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1058
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1059
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1060
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1061
+  (7.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1062
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1063
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1064
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1065
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1066
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1067
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1068
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1069
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1070
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1071
+  (0.7ms)  SELECT schemaname || '.' || tablename
1072
+ FROM pg_tables
1073
+ WHERE
1074
+ tablename !~ '_prt_' AND
1075
+ tablename <> 'schema_migrations' AND
1076
+ schemaname = ANY (current_schemas(false))
1077
+ 
1078
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1079
+  (3.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1080
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1081
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1082
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1083
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1084
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1085
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1086
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1087
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1088
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1089
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1090
+  (0.2ms) BEGIN
1091
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.280971"], ["updated_at", "2016-06-25 14:06:47.280971"]]
1092
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:47.283744"]]
1093
+  (0.3ms) COMMIT
1094
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1095
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1096
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1097
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1098
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1099
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1100
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1101
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1102
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1103
+  (0.1ms) BEGIN
1104
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.302381"], ["updated_at", "2016-06-25 14:06:47.302381"]]
1105
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:06:47.301970"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:47.303247"]]
1106
+  (0.3ms) COMMIT
1107
+  (0.1ms) BEGIN
1108
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1109
+  (0.3ms) COMMIT
1110
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1111
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1112
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1113
+  (0.1ms) BEGIN
1114
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.313451"], ["updated_at", "2016-06-25 14:06:47.313451"]]
1115
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:47.314489"]]
1116
+  (0.3ms) COMMIT
1117
+  (0.1ms) BEGIN
1118
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.316489"], ["updated_at", "2016-06-25 14:06:47.316489"]]
1119
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:06:47.316141"], ["receiver_id", 2], ["created_at", "2016-06-25 14:06:47.317162"]]
1120
+  (0.3ms) COMMIT
1121
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1122
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1123
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1124
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1125
+  (0.1ms) BEGIN
1126
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.324963"], ["updated_at", "2016-06-25 14:06:47.324963"]]
1127
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:06:47.325900"]]
1128
+  (0.3ms) COMMIT
1129
+  (0.1ms) BEGIN
1130
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:06:47.327367"], ["id", 1]]
1131
+  (0.2ms) COMMIT
1132
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1133
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1134
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1135
+  (0.1ms) BEGIN
1136
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.333399"], ["updated_at", "2016-06-25 14:06:47.333399"]]
1137
+  (0.2ms) COMMIT
1138
+  (0.1ms) BEGIN
1139
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:06:47.335206"]]
1140
+  (0.2ms) COMMIT
1141
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1142
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1143
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1144
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1145
+  (0.1ms) BEGIN
1146
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:06:47.347985"], ["updated_at", "2016-06-25 14:06:47.347985"]]
1147
+  (0.3ms) COMMIT
1148
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1149
+  (0.1ms) BEGIN
1150
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:06:47.351792"]]
1151
+  (0.3ms) COMMIT
1152
+  (0.1ms) BEGIN
1153
+  (0.1ms) COMMIT
1154
+  (0.1ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1155
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1156
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1157
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1158
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1159
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1160
+  (0.7ms)  SELECT schemaname || '.' || tablename
1161
+ FROM pg_tables
1162
+ WHERE
1163
+ tablename !~ '_prt_' AND
1164
+ tablename <> 'schema_migrations' AND
1165
+ schemaname = ANY (current_schemas(false))
1166
+ 
1167
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1168
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1169
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1170
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1171
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1172
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1173
+  (0.2ms) BEGIN
1174
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.728477"], ["updated_at", "2016-06-25 14:07:49.728477"]]
1175
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:49.731518"]]
1176
+  (0.3ms) COMMIT
1177
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1178
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1179
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1180
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1181
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1182
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1183
+  (0.1ms) BEGIN
1184
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.743528"], ["updated_at", "2016-06-25 14:07:49.743528"]]
1185
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:49.744899"]]
1186
+  (0.4ms) COMMIT
1187
+  (0.1ms) BEGIN
1188
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:07:49.747078"], ["id", 1]]
1189
+  (0.3ms) COMMIT
1190
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1191
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1192
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1193
+  (0.1ms) BEGIN
1194
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.757551"], ["updated_at", "2016-06-25 14:07:49.757551"]]
1195
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:07:49.757139"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:49.758471"]]
1196
+  (0.3ms) COMMIT
1197
+  (0.1ms) BEGIN
1198
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1199
+  (0.3ms) COMMIT
1200
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1201
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1202
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1203
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1204
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1205
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1206
+  (0.1ms) BEGIN
1207
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.772315"], ["updated_at", "2016-06-25 14:07:49.772315"]]
1208
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:49.773223"]]
1209
+  (0.3ms) COMMIT
1210
+  (0.1ms) BEGIN
1211
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.775132"], ["updated_at", "2016-06-25 14:07:49.775132"]]
1212
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:07:49.774799"], ["receiver_id", 2], ["created_at", "2016-06-25 14:07:49.775786"]]
1213
+  (0.3ms) COMMIT
1214
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1215
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1216
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1217
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1218
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1219
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1220
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1221
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1222
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1223
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1224
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1225
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1226
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1227
+  (0.1ms) BEGIN
1228
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.819627"], ["updated_at", "2016-06-25 14:07:49.819627"]]
1229
+  (0.4ms) COMMIT
1230
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1231
+  (0.1ms) BEGIN
1232
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:07:49.830219"]]
1233
+  (0.3ms) COMMIT
1234
+  (0.1ms) BEGIN
1235
+  (0.1ms) COMMIT
1236
+  (0.1ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1237
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1238
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1239
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1240
+  (0.1ms) BEGIN
1241
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:49.838278"], ["updated_at", "2016-06-25 14:07:49.838278"]]
1242
+  (0.3ms) COMMIT
1243
+  (0.1ms) BEGIN
1244
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:07:49.841068"]]
1245
+  (0.4ms) COMMIT
1246
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1247
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1248
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1249
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1250
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1251
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1252
+  (0.7ms)  SELECT schemaname || '.' || tablename
1253
+ FROM pg_tables
1254
+ WHERE
1255
+ tablename !~ '_prt_' AND
1256
+ tablename <> 'schema_migrations' AND
1257
+ schemaname = ANY (current_schemas(false))
1258
+ 
1259
+  (0.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1260
+  (3.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1261
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1262
+  (0.1ms) BEGIN
1263
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.840052"], ["updated_at", "2016-06-25 14:07:55.840052"]]
1264
+  (0.3ms) COMMIT
1265
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1266
+  (0.2ms) BEGIN
1267
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:07:55.862311"]]
1268
+  (0.3ms) COMMIT
1269
+  (0.1ms) BEGIN
1270
+  (0.1ms) COMMIT
1271
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1272
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1273
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1274
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1275
+  (0.1ms) BEGIN
1276
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.870105"], ["updated_at", "2016-06-25 14:07:55.870105"]]
1277
+  (0.3ms) COMMIT
1278
+  (0.1ms) BEGIN
1279
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:07:55.872144"]]
1280
+  (0.2ms) COMMIT
1281
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1282
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1283
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1284
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1285
+  (0.1ms) BEGIN
1286
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.885083"], ["updated_at", "2016-06-25 14:07:55.885083"]]
1287
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:55.886010"]]
1288
+  (0.3ms) COMMIT
1289
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1290
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1291
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1292
+  (0.1ms) BEGIN
1293
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.893058"], ["updated_at", "2016-06-25 14:07:55.893058"]]
1294
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:07:55.892642"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:55.894030"]]
1295
+  (0.3ms) COMMIT
1296
+  (0.1ms) BEGIN
1297
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1298
+  (0.3ms) COMMIT
1299
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1300
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1301
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1302
+  (0.1ms) BEGIN
1303
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.905266"], ["updated_at", "2016-06-25 14:07:55.905266"]]
1304
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:55.906126"]]
1305
+  (0.3ms) COMMIT
1306
+  (0.1ms) BEGIN
1307
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:07:55.907528"], ["id", 1]]
1308
+  (0.2ms) COMMIT
1309
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1310
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1311
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1312
+  (0.1ms) BEGIN
1313
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.913526"], ["updated_at", "2016-06-25 14:07:55.913526"]]
1314
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:07:55.914420"]]
1315
+  (0.3ms) COMMIT
1316
+  (0.1ms) BEGIN
1317
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:07:55.916236"], ["updated_at", "2016-06-25 14:07:55.916236"]]
1318
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:07:55.915859"], ["receiver_id", 2], ["created_at", "2016-06-25 14:07:55.916881"]]
1319
+  (0.2ms) COMMIT
1320
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1321
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1322
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1323
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1324
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1325
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1326
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1327
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1328
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1329
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1330
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1331
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1332
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1333
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1334
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1335
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1336
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1337
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1338
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1339
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1340
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1341
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1342
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1343
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1344
+  (0.8ms)  SELECT schemaname || '.' || tablename
1345
+ FROM pg_tables
1346
+ WHERE
1347
+ tablename !~ '_prt_' AND
1348
+ tablename <> 'schema_migrations' AND
1349
+ schemaname = ANY (current_schemas(false))
1350
+ 
1351
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1352
+  (3.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1353
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1354
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1355
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1356
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1357
+  (0.1ms) BEGIN
1358
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:08:17.388811"], ["updated_at", "2016-06-25 14:08:17.388811"]]
1359
+  (0.4ms) COMMIT
1360
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1361
+  (0.2ms) BEGIN
1362
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:08:17.410287"]]
1363
+  (0.3ms) COMMIT
1364
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1365
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1366
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1367
+  (0.1ms) BEGIN
1368
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:08:17.428604"], ["updated_at", "2016-06-25 14:08:17.428604"]]
1369
+  (0.3ms) COMMIT
1370
+  (0.1ms) BEGIN
1371
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:08:17.430738"]]
1372
+  (0.4ms) COMMIT
1373
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1374
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1375
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1376
+  (0.2ms) BEGIN
1377
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:08:17.444844"], ["updated_at", "2016-06-25 14:08:17.444844"]]
1378
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:08:17.446055"]]
1379
+  (0.3ms) COMMIT
1380
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1381
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1382
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1383
+  (0.1ms) BEGIN
1384
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:08:17.453517"], ["updated_at", "2016-06-25 14:08:17.453517"]]
1385
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:08:17.454628"]]
1386
+  (0.3ms) COMMIT
1387
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1388
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1389
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1390
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1391
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1392
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1393
+  (0.1ms) BEGIN
1394
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:08:17.468520"], ["updated_at", "2016-06-25 14:08:17.468520"]]
1395
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:08:17.468052"], ["receiver_id", 1], ["created_at", "2016-06-25 14:08:17.469571"]]
1396
+  (0.3ms) COMMIT
1397
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1398
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1399
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1400
+  (0.1ms) BEGIN
1401
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:08:17.477964"], ["updated_at", "2016-06-25 14:08:17.477964"]]
1402
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:08:17.478959"]]
1403
+  (0.3ms) COMMIT
1404
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1405
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1406
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1407
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1408
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1409
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1410
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1411
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1412
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1413
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1414
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1415
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1416
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1417
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1418
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1419
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1420
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1421
+  (0.8ms)  SELECT schemaname || '.' || tablename
1422
+ FROM pg_tables
1423
+ WHERE
1424
+ tablename !~ '_prt_' AND
1425
+ tablename <> 'schema_migrations' AND
1426
+ schemaname = ANY (current_schemas(false))
1427
+ 
1428
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1429
+  (3.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1430
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1431
+  (0.1ms) BEGIN
1432
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:09:21.871312"], ["updated_at", "2016-06-25 14:09:21.871312"]]
1433
+  (0.3ms) COMMIT
1434
+  (0.1ms) BEGIN
1435
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:09:21.883963"]]
1436
+  (0.3ms) COMMIT
1437
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1438
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1439
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1440
+  (0.2ms) BEGIN
1441
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:09:21.906099"], ["updated_at", "2016-06-25 14:09:21.906099"]]
1442
+  (0.3ms) COMMIT
1443
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1444
+  (0.1ms) BEGIN
1445
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:09:21.914725"]]
1446
+  (0.3ms) COMMIT
1447
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1448
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1449
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1450
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1451
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1452
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1453
+  (0.7ms)  SELECT schemaname || '.' || tablename
1454
+ FROM pg_tables
1455
+ WHERE
1456
+ tablename !~ '_prt_' AND
1457
+ tablename <> 'schema_migrations' AND
1458
+ schemaname = ANY (current_schemas(false))
1459
+ 
1460
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1461
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1462
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1463
+  (0.1ms) BEGIN
1464
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:29.335023"], ["updated_at", "2016-06-25 14:12:29.335023"]]
1465
+  (0.3ms) COMMIT
1466
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1467
+  (0.1ms) BEGIN
1468
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:12:29.353347"]]
1469
+  (0.3ms) COMMIT
1470
+  (0.3ms) BEGIN
1471
+  (0.3ms) COMMIT
1472
+  (1.1ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1473
+  (0.8ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1474
+  (13.9ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1475
+  (1.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
372
1476
   (0.7ms) BEGIN
373
-  (1.1ms) COMMIT
374
-  (1.2ms) BEGIN
375
-  (0.3ms) ROLLBACK
1477
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:44.002997"], ["updated_at", "2016-06-25 14:12:44.002997"]]
1478
+  (0.8ms) COMMIT
1479
+  (0.2ms) BEGIN
1480
+ SQL (0.9ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:12:44.008866"]]
1481
+  (0.8ms) COMMIT
1482
+ Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1483
+  (0.4ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1484
+  (9.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1485
+  (0.5ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1486
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1487
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1488
+  (0.7ms)  SELECT schemaname || '.' || tablename
1489
+ FROM pg_tables
1490
+ WHERE
1491
+ tablename !~ '_prt_' AND
1492
+ tablename <> 'schema_migrations' AND
1493
+ schemaname = ANY (current_schemas(false))
1494
+ 
1495
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1496
+  (3.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1497
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1498
+  (0.5ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1499
+  (10.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1500
+  (1.5ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1501
+  (0.6ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1502
+  (15.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1503
+  (0.4ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1504
+  (0.8ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1505
+  (16.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1506
+  (0.5ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1507
+  (0.5ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1508
+  (6.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1509
+  (0.5ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1510
+  (0.2ms) BEGIN
1511
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:49.591230"], ["updated_at", "2016-06-25 14:12:49.591230"]]
1512
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:12:49.595836"]]
1513
+  (0.6ms) COMMIT
1514
+  (0.3ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1515
+  (4.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1516
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1517
+  (0.1ms) BEGIN
1518
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:49.606555"], ["updated_at", "2016-06-25 14:12:49.606555"]]
1519
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:12:49.607775"]]
1520
+  (0.4ms) COMMIT
1521
+  (0.2ms) BEGIN
1522
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:12:49.696222"], ["id", 1]]
1523
+  (2.2ms) COMMIT
1524
+  (0.8ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1525
+  (15.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1526
+  (0.6ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1527
+  (0.5ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1528
+  (7.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1529
+  (0.5ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1530
+  (0.3ms) BEGIN
1531
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:49.907241"], ["updated_at", "2016-06-25 14:12:49.907241"]]
1532
+ SQL (0.8ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:12:49.909822"]]
1533
+  (0.8ms) COMMIT
1534
+  (0.2ms) BEGIN
1535
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:50.021776"], ["updated_at", "2016-06-25 14:12:50.021776"]]
1536
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:12:50.021270"], ["receiver_id", 2], ["created_at", "2016-06-25 14:12:50.022564"]]
1537
+  (1.3ms) COMMIT
1538
+ Hertz::Notification Load (1.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1539
+  (0.7ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1540
+  (12.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1541
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1542
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1543
+  (5.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1544
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1545
+  (0.4ms) BEGIN
1546
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:50.230531"], ["updated_at", "2016-06-25 14:12:50.230531"]]
1547
+ SQL (1.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:12:50.229299"], ["receiver_id", 1], ["created_at", "2016-06-25 14:12:50.232675"]]
1548
+  (0.6ms) COMMIT
1549
+  (0.2ms) BEGIN
1550
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1551
+  (2.0ms) COMMIT
1552
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1553
+  (7.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1554
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
376
1555
   (0.3ms) BEGIN
1556
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:50.500827"], ["updated_at", "2016-06-25 14:12:50.500827"]]
1557
+  (0.7ms) COMMIT
1558
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1559
+  (0.1ms) BEGIN
1560
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:12:50.520481"]]
1561
+  (0.5ms) COMMIT
1562
+  (0.6ms) BEGIN
1563
+  (0.5ms) COMMIT
1564
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1565
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1566
+  (3.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1567
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1568
+  (0.1ms) BEGIN
1569
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:12:50.808499"], ["updated_at", "2016-06-25 14:12:50.808499"]]
1570
+  (0.3ms) COMMIT
1571
+  (0.1ms) BEGIN
1572
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:12:50.811339"]]
1573
+  (1.2ms) COMMIT
1574
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1575
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1576
+  (12.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1577
+  (1.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1578
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1579
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1580
+  (0.7ms)  SELECT schemaname || '.' || tablename
1581
+ FROM pg_tables
1582
+ WHERE
1583
+ tablename !~ '_prt_' AND
1584
+ tablename <> 'schema_migrations' AND
1585
+ schemaname = ANY (current_schemas(false))
1586
+ 
1587
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1588
+  (3.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1589
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1590
+  (0.2ms) BEGIN
1591
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.391168"], ["updated_at", "2016-06-25 14:13:05.391168"]]
1592
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:05.393629"]]
1593
+  (0.4ms) COMMIT
1594
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1595
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1596
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1597
+  (0.1ms) BEGIN
1598
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.401219"], ["updated_at", "2016-06-25 14:13:05.401219"]]
1599
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:05.402118"]]
1600
+  (0.3ms) COMMIT
1601
+  (0.1ms) BEGIN
1602
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:13:05.404482"], ["id", 1]]
1603
+  (0.3ms) COMMIT
1604
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1605
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1606
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1607
+  (0.1ms) BEGIN
1608
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.413052"], ["updated_at", "2016-06-25 14:13:05.413052"]]
1609
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:05.413888"]]
1610
+  (0.3ms) COMMIT
1611
+  (0.1ms) BEGIN
1612
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.415660"], ["updated_at", "2016-06-25 14:13:05.415660"]]
1613
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:13:05.415323"], ["receiver_id", 2], ["created_at", "2016-06-25 14:13:05.416276"]]
1614
+  (0.2ms) COMMIT
1615
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1616
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1617
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1618
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1619
+  (0.1ms) BEGIN
1620
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.424185"], ["updated_at", "2016-06-25 14:13:05.424185"]]
1621
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:13:05.423788"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:05.425058"]]
1622
+  (0.4ms) COMMIT
1623
+  (0.1ms) BEGIN
1624
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1625
+  (0.3ms) COMMIT
1626
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1627
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1628
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1629
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1630
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1631
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1632
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1633
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1634
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1635
+  (0.1ms) BEGIN
1636
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.442290"], ["updated_at", "2016-06-25 14:13:05.442290"]]
1637
+  (0.2ms) COMMIT
1638
+  (0.1ms) BEGIN
1639
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:13:05.443988"]]
1640
+  (0.2ms) COMMIT
1641
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1642
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1643
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1644
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1645
+  (0.1ms) BEGIN
1646
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:05.460866"], ["updated_at", "2016-06-25 14:13:05.460866"]]
1647
+  (0.4ms) COMMIT
1648
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1649
+  (0.1ms) BEGIN
1650
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:13:05.464135"]]
1651
+  (0.3ms) COMMIT
1652
+  (0.1ms) BEGIN
1653
+  (0.1ms) COMMIT
1654
+  (0.1ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1655
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1656
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1657
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1658
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1659
+  (2.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1660
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1661
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1662
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1663
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1664
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1665
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1666
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1667
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1668
+  (2.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1669
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1670
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1671
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1672
+  (0.7ms)  SELECT schemaname || '.' || tablename
1673
+ FROM pg_tables
1674
+ WHERE
1675
+ tablename !~ '_prt_' AND
1676
+ tablename <> 'schema_migrations' AND
1677
+ schemaname = ANY (current_schemas(false))
1678
+ 
1679
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1680
+  (3.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1681
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1682
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1683
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1684
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1685
+  (0.2ms) BEGIN
1686
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:07.358179"], ["updated_at", "2016-06-25 14:13:07.358179"]]
1687
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:07.360924"]]
1688
+  (0.3ms) COMMIT
1689
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1690
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1691
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1692
+  (0.1ms) BEGIN
1693
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:07.367368"], ["updated_at", "2016-06-25 14:13:07.367368"]]
1694
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:07.368206"]]
1695
+  (0.3ms) COMMIT
1696
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1697
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1698
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1699
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1700
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1701
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1702
+  (0.1ms) BEGIN
1703
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:07.402501"], ["updated_at", "2016-06-25 14:13:07.402501"]]
1704
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:07.403480"]]
1705
+  (0.3ms) COMMIT
1706
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1707
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1708
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1709
+  (0.1ms) BEGIN
1710
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:07.412065"], ["updated_at", "2016-06-25 14:13:07.412065"]]
1711
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:13:07.411483"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:07.413175"]]
1712
+  (0.3ms) COMMIT
1713
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1714
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1715
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1716
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1717
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1718
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1719
+  (0.1ms) BEGIN
1720
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:07.426587"], ["updated_at", "2016-06-25 14:13:07.426587"]]
1721
+  (0.3ms) COMMIT
1722
+  (0.1ms) BEGIN
1723
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:13:07.428537"]]
1724
+  (0.2ms) COMMIT
1725
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1726
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1727
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1728
+  (0.1ms) BEGIN
1729
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:07.437023"], ["updated_at", "2016-06-25 14:13:07.437023"]]
1730
+  (0.3ms) COMMIT
1731
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1732
+  (0.1ms) BEGIN
1733
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:13:07.444781"]]
1734
+  (0.3ms) COMMIT
1735
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1736
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1737
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1738
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1739
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1740
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1741
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1742
+  (2.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1743
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1744
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1745
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1746
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1747
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1748
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1749
+  (0.7ms)  SELECT schemaname || '.' || tablename
1750
+ FROM pg_tables
1751
+ WHERE
1752
+ tablename !~ '_prt_' AND
1753
+ tablename <> 'schema_migrations' AND
1754
+ schemaname = ANY (current_schemas(false))
1755
+ 
1756
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1757
+  (3.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1758
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1759
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1760
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1761
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1762
+  (0.1ms) BEGIN
1763
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:18.570092"], ["updated_at", "2016-06-25 14:13:18.570092"]]
1764
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:18.572859"]]
1765
+  (0.4ms) COMMIT
1766
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1767
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1768
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1769
+  (0.1ms) BEGIN
1770
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:18.579960"], ["updated_at", "2016-06-25 14:13:18.579960"]]
1771
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:18.580987"]]
1772
+  (0.3ms) COMMIT
1773
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1774
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1775
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1776
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1777
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1778
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1779
+  (0.1ms) BEGIN
1780
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:18.614935"], ["updated_at", "2016-06-25 14:13:18.614935"]]
1781
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:18.616068"]]
1782
+  (0.3ms) COMMIT
1783
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1784
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1785
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1786
+  (0.1ms) BEGIN
1787
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:18.624652"], ["updated_at", "2016-06-25 14:13:18.624652"]]
1788
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:13:18.624253"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:18.625518"]]
1789
+  (0.3ms) COMMIT
1790
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1791
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1792
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1793
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1794
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1795
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1796
+  (0.1ms) BEGIN
1797
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:18.637619"], ["updated_at", "2016-06-25 14:13:18.637619"]]
1798
+  (0.3ms) COMMIT
1799
+  (0.1ms) BEGIN
1800
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:13:18.639594"]]
1801
+  (0.3ms) COMMIT
1802
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1803
+  (3.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1804
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1805
+  (0.1ms) BEGIN
1806
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:18.649263"], ["updated_at", "2016-06-25 14:13:18.649263"]]
1807
+  (0.3ms) COMMIT
1808
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1809
+  (0.1ms) BEGIN
1810
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:13:18.657640"]]
1811
+  (0.3ms) COMMIT
1812
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1813
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1814
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1815
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1816
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1817
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1818
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1819
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1820
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1821
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1822
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1823
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1824
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1825
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1826
+  (0.7ms)  SELECT schemaname || '.' || tablename
1827
+ FROM pg_tables
1828
+ WHERE
1829
+ tablename !~ '_prt_' AND
1830
+ tablename <> 'schema_migrations' AND
1831
+ schemaname = ANY (current_schemas(false))
1832
+ 
1833
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1834
+  (3.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1835
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1836
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1837
+  (2.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1838
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1839
+  (0.2ms) BEGIN
1840
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:24.157407"], ["updated_at", "2016-06-25 14:13:24.157407"]]
1841
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:24.160666"]]
377
1842
   (0.3ms) COMMIT
1843
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1844
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1845
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1846
+  (0.1ms) BEGIN
1847
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:24.167600"], ["updated_at", "2016-06-25 14:13:24.167600"]]
1848
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:24.168450"]]
1849
+  (0.3ms) COMMIT
1850
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1851
+  (9.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1852
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1853
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1854
+  (4.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1855
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1856
+  (0.1ms) BEGIN
1857
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:13:28.475093"], ["updated_at", "2016-06-25 14:13:28.475093"]]
1858
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:13:28.476280"]]
1859
+  (0.5ms) COMMIT
1860
+  (1.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1861
+  (17.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1862
+  (0.9ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
378
1863
   (0.3ms) BEGIN
379
-  (0.3ms) SAVEPOINT active_record_1
380
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-05-08 09:44:40.749248"], ["updated_at", "2016-05-08 09:44:40.749248"]]
381
- SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-05-08 09:44:40.748411"], ["receiver_id", 7], ["created_at", "2016-05-08 09:44:40.750785"]]
382
-  (0.8ms) RELEASE SAVEPOINT active_record_1
383
-  (0.3ms) SAVEPOINT active_record_1
384
- SQL (1.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
385
-  (2.2ms) RELEASE SAVEPOINT active_record_1
386
-  (0.7ms) ROLLBACK
1864
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:07.135789"], ["updated_at", "2016-06-25 14:16:07.135789"]]
1865
+ SQL (0.6ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:16:07.134642"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:07.138654"]]
1866
+  (0.7ms) COMMIT
1867
+  (0.4ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1868
+  (9.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1869
+  (0.5ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1870
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1871
+  (3.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1872
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1873
+  (0.1ms) BEGIN
1874
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:07.922175"], ["updated_at", "2016-06-25 14:16:07.922175"]]
1875
+  (0.4ms) COMMIT
1876
+  (0.1ms) BEGIN
1877
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:16:07.924930"]]
1878
+  (0.3ms) COMMIT
1879
+  (0.7ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1880
+  (16.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1881
+  (1.6ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1882
+  (0.2ms) BEGIN
1883
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:08.276197"], ["updated_at", "2016-06-25 14:16:08.276197"]]
1884
+  (0.7ms) COMMIT
1885
+  (0.5ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1886
+  (0.2ms) BEGIN
1887
+ SQL (0.5ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:16:08.293179"]]
1888
+  (0.6ms) COMMIT
1889
+  (0.7ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1890
+  (13.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1891
+  (0.8ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1892
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1893
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1894
+  (0.7ms)  SELECT schemaname || '.' || tablename
1895
+ FROM pg_tables
1896
+ WHERE
1897
+ tablename !~ '_prt_' AND
1898
+ tablename <> 'schema_migrations' AND
1899
+ schemaname = ANY (current_schemas(false))
1900
+ 
1901
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1902
+  (3.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1903
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1904
+  (0.1ms) BEGIN
1905
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.852013"], ["updated_at", "2016-06-25 14:16:15.852013"]]
1906
+  (0.4ms) COMMIT
1907
+  (0.1ms) BEGIN
1908
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:16:15.862537"]]
1909
+  (0.3ms) COMMIT
1910
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1911
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1912
+  (4.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1913
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1914
+  (0.1ms) BEGIN
1915
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.877376"], ["updated_at", "2016-06-25 14:16:15.877376"]]
1916
+  (0.3ms) COMMIT
1917
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1918
+  (0.1ms) BEGIN
1919
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:16:15.881316"]]
1920
+  (0.3ms) COMMIT
1921
+  (0.1ms) BEGIN
1922
+  (0.1ms) COMMIT
1923
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
1924
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1925
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1926
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1927
+  (0.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1928
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1929
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1930
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1931
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1932
+  (0.1ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1933
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1934
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1935
+  (0.2ms) ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1936
+  (0.1ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1937
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1938
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1939
+  (0.1ms) BEGIN
1940
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.937094"], ["updated_at", "2016-06-25 14:16:15.937094"]]
1941
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:15.938048"]]
1942
+  (0.3ms) COMMIT
1943
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1944
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1945
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1946
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1947
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1948
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1949
+  (0.1ms) BEGIN
1950
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.950163"], ["updated_at", "2016-06-25 14:16:15.950163"]]
1951
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:15.951020"]]
1952
+  (0.2ms) COMMIT
1953
+  (0.1ms) BEGIN
1954
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:16:15.952475"], ["id", 1]]
1955
+  (0.3ms) COMMIT
1956
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1957
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1958
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1959
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1960
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1961
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1962
+  (0.1ms) BEGIN
1963
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.968446"], ["updated_at", "2016-06-25 14:16:15.968446"]]
1964
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:16:15.968023"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:15.969314"]]
1965
+  (0.3ms) COMMIT
1966
+  (0.1ms) BEGIN
1967
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
1968
+  (0.2ms) COMMIT
1969
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1970
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1971
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1972
+  (0.1ms) BEGIN
1973
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.977715"], ["updated_at", "2016-06-25 14:16:15.977715"]]
1974
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:15.978618"]]
1975
+  (0.3ms) COMMIT
1976
+  (0.1ms) BEGIN
1977
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:15.980604"], ["updated_at", "2016-06-25 14:16:15.980604"]]
1978
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:16:15.980239"], ["receiver_id", 2], ["created_at", "2016-06-25 14:16:15.981296"]]
1979
+  (0.3ms) COMMIT
1980
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1981
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1982
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1983
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1984
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1985
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1986
+  (0.8ms)  SELECT schemaname || '.' || tablename
1987
+ FROM pg_tables
1988
+ WHERE
1989
+ tablename !~ '_prt_' AND
1990
+ tablename <> 'schema_migrations' AND
1991
+ schemaname = ANY (current_schemas(false))
1992
+ 
1993
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1994
+  (3.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1995
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1996
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1997
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1998
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1999
+  (0.2ms) BEGIN
2000
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.157561"], ["updated_at", "2016-06-25 14:16:18.157561"]]
2001
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:18.160776"]]
2002
+  (0.3ms) COMMIT
2003
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2004
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2005
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2006
+  (0.1ms) BEGIN
2007
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.168194"], ["updated_at", "2016-06-25 14:16:18.168194"]]
2008
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:18.169087"]]
2009
+  (0.3ms) COMMIT
2010
+  (0.1ms) BEGIN
2011
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-25 14:16:18.170591"], ["id", 1]]
2012
+  (0.3ms) COMMIT
2013
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2014
+  (2.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2015
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2016
+  (0.2ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2017
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2018
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2019
+  (0.1ms) BEGIN
2020
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.185015"], ["updated_at", "2016-06-25 14:16:18.185015"]]
2021
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:18.185875"]]
2022
+  (0.3ms) COMMIT
2023
+  (0.1ms) BEGIN
2024
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.187660"], ["updated_at", "2016-06-25 14:16:18.187660"]]
2025
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:16:18.187337"], ["receiver_id", 2], ["created_at", "2016-06-25 14:16:18.188272"]]
2026
+  (0.3ms) COMMIT
2027
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2028
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2029
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2030
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2031
+  (0.1ms) BEGIN
2032
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.196575"], ["updated_at", "2016-06-25 14:16:18.196575"]]
2033
+ SQL (0.4ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-25 14:16:18.196041"], ["receiver_id", 1], ["created_at", "2016-06-25 14:16:18.197670"]]
2034
+  (0.3ms) COMMIT
2035
+  (0.1ms) BEGIN
2036
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
2037
+  (0.3ms) COMMIT
2038
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2039
+  (2.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2040
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2041
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2042
+  (2.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2043
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2044
+  (0.1ms) BEGIN
2045
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.211106"], ["updated_at", "2016-06-25 14:16:18.211106"]]
2046
+  (0.3ms) COMMIT
2047
+  (0.1ms) BEGIN
2048
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:16:18.212940"]]
2049
+  (0.3ms) COMMIT
2050
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2051
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2052
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2053
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2054
+  (0.1ms) BEGIN
2055
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-25 14:16:18.229497"], ["updated_at", "2016-06-25 14:16:18.229497"]]
2056
+  (0.3ms) COMMIT
2057
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2058
+  (0.1ms) BEGIN
2059
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-25 14:16:18.232423"]]
2060
+  (0.3ms) COMMIT
2061
+  (0.1ms) BEGIN
2062
+  (0.1ms) COMMIT
2063
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2064
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2065
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2066
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2067
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2068
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2069
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2070
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2071
+  (2.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2072
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2073
+  (0.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2074
+  (2.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2075
+  (0.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2076
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
2077
+  (111.7ms) DROP DATABASE IF EXISTS "hertz_test"
2078
+  (298.7ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
2079
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
2080
+ SQL (21.8ms) CREATE EXTENSION IF NOT EXISTS "hstore"
2081
+  (5.6ms) CREATE TABLE "hertz_deliveries" ("id" serial primary key, "notification_id" integer NOT NULL, "courier" character varying NOT NULL, "created_at" timestamp NOT NULL) 
2082
+  (1.8ms) CREATE UNIQUE INDEX "index_hertz_notification_deliveries_on_notification_and_courier" ON "hertz_deliveries" USING btree ("notification_id", "courier")
2083
+  (0.9ms) CREATE INDEX "index_hertz_deliveries_on_notification_id" ON "hertz_deliveries" USING btree ("notification_id")
2084
+  (2.4ms) CREATE TABLE "hertz_notifications" ("id" serial 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)
2085
+  (1.5ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
2086
+  (1.2ms) ALTER TABLE "hertz_deliveries" ADD CONSTRAINT "fk_rails_eefe07f4cd"
2087
+ FOREIGN KEY ("notification_id")
2088
+ REFERENCES "hertz_notifications" ("id")
2089
+ ON DELETE CASCADE
2090
+  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2091
+  (1.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2092
+  (0.2ms) SELECT version FROM "schema_migrations"
2093
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20160628084413')
2094
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
2095
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
2096
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
2097
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160627084119')
2098
+  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20160508094342')
2099
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2100
+  (0.5ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
2101
+  (0.7ms) SELECT schemaname || '.' || tablename
2102
+ FROM pg_tables
2103
+ WHERE
2104
+ tablename !~ '_prt_' AND
2105
+ tablename <> 'schema_migrations' AND
2106
+ schemaname = ANY (current_schemas(false))
2107
+
2108
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2109
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2110
+  (0.3ms) 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
2111
+  (0.4ms) 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
2112
+  (4.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2113
+  (0.4ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL
2114
+  (0.4ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL
2115
+  (7.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2116
+  (0.4ms) 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
2117
+  (0.4ms) 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
2118
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2119
+  (0.3ms) 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
2120
+  (0.1ms) BEGIN
2121
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.140197"], ["updated_at", "2016-06-28 08:45:21.140197"]]
2122
+  (0.3ms) COMMIT
2123
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2124
+  (0.1ms) BEGIN
2125
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-28 08:45:21.160062"]]
2126
+  (0.3ms) COMMIT
2127
+  (0.1ms) BEGIN
2128
+  (0.1ms) COMMIT
2129
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2130
+  (0.4ms) 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
2131
+  (4.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2132
+  (0.3ms) 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
2133
+  (0.1ms) BEGIN
2134
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.171263"], ["updated_at", "2016-06-28 08:45:21.171263"]]
2135
+  (0.3ms) COMMIT
2136
+  (0.1ms) BEGIN
2137
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-28 08:45:21.173738"]]
2138
+  (0.2ms) COMMIT
2139
+ Hertz::Notification Load (0.1ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2140
+  (0.4ms) 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
2141
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2142
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2143
+  (0.4ms) 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
2144
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2145
+  (0.3ms) 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
2146
+  (0.3ms) 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
2147
+  (4.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2148
+  (0.3ms) 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
2149
+  (0.1ms) BEGIN
2150
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.364887"], ["updated_at", "2016-06-28 08:45:21.364887"]]
2151
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:45:21.365745"]]
2152
+  (0.3ms) COMMIT
2153
+  (0.3ms) 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
2154
+  (4.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2155
+  (0.3ms) 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
2156
+  (0.3ms) 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
2157
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2158
+  (0.3ms) 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
2159
+  (0.1ms) BEGIN
2160
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.381181"], ["updated_at", "2016-06-28 08:45:21.381181"]]
2161
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:45:21.382079"]]
2162
+  (0.3ms) COMMIT
2163
+  (0.1ms) BEGIN
2164
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-28 08:45:21.384033"], ["id", 1]]
2165
+  (0.3ms) COMMIT
2166
+  (0.4ms) 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
2167
+  (4.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2168
+  (0.4ms) 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
2169
+  (0.4ms) 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
2170
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2171
+  (0.3ms) 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
2172
+  (0.1ms) BEGIN
2173
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.404043"], ["updated_at", "2016-06-28 08:45:21.404043"]]
2174
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:45:21.404919"]]
2175
+  (0.3ms) COMMIT
2176
+  (0.1ms) BEGIN
2177
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.406774"], ["updated_at", "2016-06-28 08:45:21.406774"]]
2178
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-28 08:45:21.406427"], ["receiver_id", 2], ["created_at", "2016-06-28 08:45:21.407362"]]
2179
+  (0.3ms) COMMIT
2180
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2181
+  (0.3ms) 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
2182
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2183
+  (0.4ms) 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
2184
+  (0.1ms) BEGIN
2185
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:45:21.417395"], ["updated_at", "2016-06-28 08:45:21.417395"]]
2186
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-28 08:45:21.416817"], ["receiver_id", 1], ["created_at", "2016-06-28 08:45:21.418524"]]
2187
+  (0.3ms) COMMIT
2188
+  (0.1ms) BEGIN
2189
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
2190
+  (0.2ms) COMMIT
2191
+  (0.3ms) 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
2192
+  (4.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2193
+  (0.4ms) 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
2194
+  (0.4ms) 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
2195
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2196
+  (0.3ms) 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
2197
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2198
+  (0.5ms) 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
2199
+  (0.7ms)  SELECT schemaname || '.' || tablename
2200
+ FROM pg_tables
2201
+ WHERE
2202
+ tablename !~ '_prt_' AND
2203
+ tablename <> 'schema_migrations' AND
2204
+ schemaname = ANY (current_schemas(false))
2205
+ 
2206
+  (0.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2207
+  (4.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2208
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
2209
+  (1.5ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
2210
+  (4.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2211
+  (0.3ms) ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL;ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL
2212
+  (0.3ms) ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
2213
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2214
+  (0.4ms) 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
2215
+  (0.5ms) 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
2216
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2217
+  (0.3ms) 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
2218
+  (0.4ms) 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
2219
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2220
+  (0.4ms) 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
2221
+  (0.5ms) 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
2222
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2223
+  (0.4ms) 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
2224
+  (0.3ms) 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
2225
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2226
+  (0.4ms) 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
2227
+  (0.1ms) BEGIN
2228
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:08.985071"], ["updated_at", "2016-06-28 08:50:08.985071"]]
2229
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:08.987532"]]
2230
+  (0.3ms) COMMIT
2231
+  (0.3ms) 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
2232
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2233
+  (0.4ms) 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
2234
+  (0.1ms) BEGIN
2235
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:08.996629"], ["updated_at", "2016-06-28 08:50:08.996629"]]
2236
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:08.997471"]]
2237
+  (0.3ms) COMMIT
2238
+  (0.1ms) BEGIN
2239
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-28 08:50:08.998904"], ["id", 1]]
2240
+  (0.3ms) COMMIT
2241
+  (0.3ms) 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
2242
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2243
+  (0.3ms) 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
2244
+  (0.3ms) 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
2245
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2246
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2247
+  (0.5ms) 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
2248
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2249
+  (0.4ms) 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
2250
+  (0.4ms) 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
2251
+  (5.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2252
+  (0.4ms) 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
2253
+  (0.3ms) 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
2254
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2255
+  (0.3ms) 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
2256
+  (0.1ms) BEGIN
2257
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:09.071497"], ["updated_at", "2016-06-28 08:50:09.071497"]]
2258
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-28 08:50:09.071026"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:09.072306"]]
2259
+  (0.3ms) COMMIT
2260
+  (0.1ms) BEGIN
2261
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
2262
+  (0.2ms) COMMIT
2263
+  (0.3ms) 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
2264
+  (4.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2265
+  (0.5ms) 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
2266
+  (0.1ms) BEGIN
2267
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:09.083572"], ["updated_at", "2016-06-28 08:50:09.083572"]]
2268
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:09.084684"]]
2269
+  (0.3ms) COMMIT
2270
+  (0.1ms) BEGIN
2271
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:09.086893"], ["updated_at", "2016-06-28 08:50:09.086893"]]
2272
+ SQL (0.1ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-28 08:50:09.086540"], ["receiver_id", 2], ["created_at", "2016-06-28 08:50:09.087546"]]
2273
+  (0.2ms) COMMIT
2274
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2275
+  (0.4ms) 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
2276
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2277
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2278
+  (0.1ms) BEGIN
2279
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:09.097037"], ["updated_at", "2016-06-28 08:50:09.097037"]]
2280
+  (0.2ms) COMMIT
2281
+  (0.1ms) BEGIN
2282
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-28 08:50:09.098797"]]
2283
+  (0.2ms) COMMIT
2284
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2285
+  (0.4ms) 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
2286
+  (5.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2287
+  (0.3ms) 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
2288
+  (0.1ms) BEGIN
2289
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:09.119334"], ["updated_at", "2016-06-28 08:50:09.119334"]]
2290
+  (0.3ms) COMMIT
2291
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2292
+  (0.1ms) BEGIN
2293
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-28 08:50:09.122350"]]
2294
+  (0.3ms) COMMIT
2295
+  (0.1ms) BEGIN
2296
+  (0.1ms) COMMIT
2297
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2298
+  (0.5ms) 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
2299
+  (4.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2300
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2301
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
2302
+  (1.5ms) 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
2303
+  (0.8ms)  SELECT schemaname || '.' || tablename
2304
+ FROM pg_tables
2305
+ WHERE
2306
+ tablename !~ '_prt_' AND
2307
+ tablename <> 'schema_migrations' AND
2308
+ schemaname = ANY (current_schemas(false))
2309
+ 
2310
+  (0.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2311
+  (4.8ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2312
+  (0.4ms) 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
2313
+  (0.3ms) 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
2314
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2315
+  (0.5ms) 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
2316
+  (0.4ms) 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
2317
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2318
+  (0.3ms) 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
2319
+  (0.4ms) 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
2320
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2321
+  (0.4ms) 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
2322
+  (0.4ms) 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
2323
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2324
+  (0.3ms) 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
2325
+  (0.4ms) BEGIN
2326
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.216632"], ["updated_at", "2016-06-28 08:50:22.216632"]]
2327
+  (0.3ms) COMMIT
2328
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2329
+  (0.1ms) BEGIN
2330
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-28 08:50:22.234621"]]
2331
+  (0.3ms) COMMIT
2332
+  (0.1ms) BEGIN
2333
+  (0.1ms) COMMIT
2334
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2335
+  (0.4ms) 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
2336
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2337
+  (0.3ms) 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
2338
+  (0.1ms) BEGIN
2339
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.245445"], ["updated_at", "2016-06-28 08:50:22.245445"]]
2340
+  (0.2ms) COMMIT
2341
+  (0.1ms) BEGIN
2342
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 1], ["receiver_type", "User"], ["created_at", "2016-06-28 08:50:22.247522"]]
2343
+  (0.2ms) COMMIT
2344
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 1], ["receiver_type", "User"]]
2345
+  (0.4ms) 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
2346
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2347
+  (0.4ms) 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
2348
+  (0.4ms) 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
2349
+  (4.5ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2350
+  (0.3ms) 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
2351
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2352
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2353
+  (0.3ms) 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
2354
+  (0.1ms) BEGIN
2355
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.426497"], ["updated_at", "2016-06-28 08:50:22.426497"]]
2356
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:22.427348"]]
2357
+  (0.3ms) COMMIT
2358
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2359
+  (4.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2360
+  (0.3ms) 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
2361
+  (0.1ms) BEGIN
2362
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.435854"], ["updated_at", "2016-06-28 08:50:22.435854"]]
2363
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:22.436677"]]
2364
+  (0.3ms) COMMIT
2365
+  (0.1ms) BEGIN
2366
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-06-28 08:50:22.438101"], ["id", 1]]
2367
+  (0.3ms) COMMIT
2368
+  (0.3ms) 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
2369
+  (4.7ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2370
+  (0.4ms) 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
2371
+  (0.1ms) BEGIN
2372
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.449884"], ["updated_at", "2016-06-28 08:50:22.449884"]]
2373
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:22.450766"]]
2374
+  (0.3ms) COMMIT
2375
+ Hertz::Delivery Exists (0.3ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT 1 [["notification_id", 1], ["courier", "test"]]
2376
+  (0.1ms) BEGIN
2377
+ SQL (0.3ms) INSERT INTO "hertz_deliveries" ("notification_id", "courier", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["notification_id", 1], ["courier", "test"], ["created_at", "2016-06-28 08:50:22.458438"]]
2378
+  (0.3ms) COMMIT
2379
+ Hertz::Delivery Exists (0.1ms) SELECT 1 AS one FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 AND "hertz_deliveries"."courier" = $2 LIMIT 1 [["notification_id", 1], ["courier", "test"]]
2380
+  (0.4ms) 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
2381
+  (4.2ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2382
+  (0.3ms) 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
2383
+  (0.4ms) 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
2384
+  (4.3ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2385
+  (0.3ms) 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
2386
+  (0.1ms) BEGIN
2387
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.474798"], ["updated_at", "2016-06-28 08:50:22.474798"]]
2388
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:22.475687"]]
2389
+  (0.3ms) COMMIT
2390
+  (0.1ms) BEGIN
2391
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.477690"], ["updated_at", "2016-06-28 08:50:22.477690"]]
2392
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-28 08:50:22.477276"], ["receiver_id", 2], ["created_at", "2016-06-28 08:50:22.478402"]]
2393
+  (0.4ms) COMMIT
2394
+ Hertz::Notification Load (0.2ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2395
+  (0.4ms) 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
2396
+  (4.6ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2397
+  (0.5ms) 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
2398
+  (0.1ms) BEGIN
2399
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.489113"], ["updated_at", "2016-06-28 08:50:22.489113"]]
2400
+ SQL (0.2ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "read_at", "receiver_id", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["read_at", "2016-06-28 08:50:22.488610"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:22.490167"]]
2401
+  (0.3ms) COMMIT
2402
+  (0.1ms) BEGIN
2403
+ SQL (0.2ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
2404
+  (0.2ms) COMMIT
2405
+  (0.3ms) 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
2406
+  (4.1ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2407
+  (0.3ms) 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
2408
+  (0.4ms) 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
2409
+  (4.4ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2410
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" ENABLE TRIGGER ALL
2411
+  (0.1ms) BEGIN
2412
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-06-28 08:50:22.507017"], ["updated_at", "2016-06-28 08:50:22.507017"]]
2413
+ SQL (0.3ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 1], ["created_at", "2016-06-28 08:50:22.507927"]]
2414
+  (0.3ms) COMMIT
2415
+  (0.2ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
2416
+  (0.1ms) BEGIN
2417
+ SQL (0.3ms) INSERT INTO "hertz_deliveries" ("courier", "notification_id", "created_at") VALUES ($1, $2, $3) RETURNING "id" [["courier", "test"], ["notification_id", 1], ["created_at", "2016-06-28 08:50:22.511151"]]
2418
+  (0.3ms) COMMIT
2419
+  (0.1ms) SELECT COUNT(*) FROM "hertz_deliveries" WHERE "hertz_deliveries"."notification_id" = $1 [["notification_id", 1]]
2420
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "hertz_deliveries" DISABLE TRIGGER ALL
2421
+  (4.9ms) TRUNCATE TABLE "public"."users", "public"."hertz_notifications", "public"."hertz_deliveries" RESTART IDENTITY CASCADE;
2422
+  (0.5ms) 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