hertz 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +188 -0
  4. data/Rakefile +30 -0
  5. data/app/assets/javascripts/hertz/application.js +13 -0
  6. data/app/assets/stylesheets/hertz/application.css +15 -0
  7. data/app/controllers/hertz/application_controller.rb +6 -0
  8. data/app/helpers/hertz/application_helper.rb +5 -0
  9. data/app/mailers/hertz/notification_mailer.rb +24 -0
  10. data/app/models/hertz/notification.rb +46 -0
  11. data/app/views/layouts/hertz/application.html.erb +14 -0
  12. data/config/routes.rb +2 -0
  13. data/db/migrate/20160415174901_create_hertz_notifications.rb +14 -0
  14. data/lib/generators/hertz/install_generator.rb +11 -0
  15. data/lib/generators/hertz/templates/initializer.rb +5 -0
  16. data/lib/hertz.rb +19 -0
  17. data/lib/hertz/courier/base.rb +10 -0
  18. data/lib/hertz/courier/email.rb +10 -0
  19. data/lib/hertz/engine.rb +6 -0
  20. data/lib/hertz/notifiable.rb +18 -0
  21. data/lib/hertz/notification_deliverer.rb +18 -0
  22. data/lib/hertz/version.rb +4 -0
  23. data/lib/tasks/hertz_tasks.rake +4 -0
  24. data/spec/dummy/README.rdoc +28 -0
  25. data/spec/dummy/Rakefile +6 -0
  26. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  27. data/spec/dummy/app/assets/stylesheets/application.css +15 -0
  28. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  29. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  30. data/spec/dummy/app/mailers/application_mailer.rb +2 -0
  31. data/spec/dummy/app/models/test_notification.rb +7 -0
  32. data/spec/dummy/app/models/user.rb +7 -0
  33. data/spec/dummy/app/views/hertz/notification_mailer/test_notification.html.erb +1 -0
  34. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  35. data/spec/dummy/bin/bundle +3 -0
  36. data/spec/dummy/bin/rails +4 -0
  37. data/spec/dummy/bin/rake +4 -0
  38. data/spec/dummy/bin/setup +29 -0
  39. data/spec/dummy/config.ru +4 -0
  40. data/spec/dummy/config/application.rb +26 -0
  41. data/spec/dummy/config/boot.rb +5 -0
  42. data/spec/dummy/config/database.example.yml +19 -0
  43. data/spec/dummy/config/database.yml +28 -0
  44. data/spec/dummy/config/environment.rb +5 -0
  45. data/spec/dummy/config/environments/development.rb +41 -0
  46. data/spec/dummy/config/environments/production.rb +79 -0
  47. data/spec/dummy/config/environments/test.rb +42 -0
  48. data/spec/dummy/config/initializers/assets.rb +11 -0
  49. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  50. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  51. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  52. data/spec/dummy/config/initializers/hertz.rb +4 -0
  53. data/spec/dummy/config/initializers/inflections.rb +16 -0
  54. data/spec/dummy/config/initializers/mime_types.rb +4 -0
  55. data/spec/dummy/config/initializers/session_store.rb +3 -0
  56. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  57. data/spec/dummy/config/locales/en.yml +23 -0
  58. data/spec/dummy/config/routes.rb +4 -0
  59. data/spec/dummy/config/secrets.yml +22 -0
  60. data/spec/dummy/db/migrate/20160415175358_create_hertz_notifications.hertz.rb +15 -0
  61. data/spec/dummy/db/migrate/20160415175837_create_users.rb +8 -0
  62. data/spec/dummy/db/migrate/20160418122437_add_email_to_users.rb +5 -0
  63. data/spec/dummy/db/schema.rb +35 -0
  64. data/spec/dummy/log/development.log +136 -0
  65. data/spec/dummy/log/test.log +2618 -0
  66. data/spec/dummy/public/404.html +67 -0
  67. data/spec/dummy/public/422.html +67 -0
  68. data/spec/dummy/public/500.html +66 -0
  69. data/spec/dummy/public/favicon.ico +0 -0
  70. data/spec/examples.txt +13 -0
  71. data/spec/factories/hertz/notifications.rb +14 -0
  72. data/spec/factories/users.rb +6 -0
  73. data/spec/lib/hertz/courier/email_spec.rb +26 -0
  74. data/spec/lib/hertz/notifiable_spec.rb +22 -0
  75. data/spec/lib/hertz/notification_deliverer_spec.rb +31 -0
  76. data/spec/mailers/notification_mailer_spec.rb +13 -0
  77. data/spec/models/hertz/notification_spec.rb +61 -0
  78. data/spec/rails_helper.rb +24 -0
  79. data/spec/spec_helper.rb +73 -0
  80. data/spec/support/database_cleaner.rb +19 -0
  81. data/spec/support/factory_girl.rb +5 -0
  82. metadata +308 -0
@@ -0,0 +1,42 @@
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
14
+
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
20
+ config.consider_all_requests_local = true
21
+ config.action_controller.perform_caching = false
22
+
23
+ # Raise exceptions instead of rendering exception templates.
24
+ config.action_dispatch.show_exceptions = false
25
+
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
28
+
29
+ # Tell Action Mailer not to deliver emails to the real world.
30
+ # The :test delivery method accumulates sent emails in the
31
+ # ActionMailer::Base.deliveries array.
32
+ config.action_mailer.delivery_method = :test
33
+
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
36
+
37
+ # Print deprecation notices to the stderr.
38
+ config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
42
+ end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,7 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
+ # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
+
6
+ # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
+ # Rails.backtrace_cleaner.remove_silencers!
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -0,0 +1,4 @@
1
+ Hertz.configure do |config|
2
+ # Your base mailer class, for delivering notifications by email.
3
+ # config.base_mailer = '::ApplicationMailer'
4
+ end
@@ -0,0 +1,16 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
7
+ # inflect.plural /^(ox)$/i, '\1en'
8
+ # inflect.singular /^(ox)en/i, '\1'
9
+ # inflect.irregular 'person', 'people'
10
+ # inflect.uncountable %w( fish sheep )
11
+ # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Add new mime types for use in respond_to blocks:
4
+ # Mime::Type.register "text/richtext", :rtf
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -0,0 +1,23 @@
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
21
+
22
+ en:
23
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Rails.application.routes.draw do
2
+
3
+ mount Hertz::Engine => "/hertz"
4
+ end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 07d03430e50ca1fda90b6d01a9209579593d38ffc1e7d0398d46391439fc6ecfa41f3300a2271d09e8ae902e66f8ae3b0087513d3e8191f704040b0012a28c54
15
+
16
+ test:
17
+ secret_key_base: 62d389f62253060992c3b2a10126fa1fe0fe198663f30f51ca1f894928bb27accf504a3caff3b2741bbcb3ef6778c6e56743c318df2c3ec8750bd5398cab370b
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,15 @@
1
+ # This migration comes from hertz (originally 20160415174901)
2
+ class CreateHertzNotifications < ActiveRecord::Migration
3
+ def change
4
+ enable_extension 'hstore'
5
+
6
+ create_table :hertz_notifications do |t|
7
+ t.string :type, null: false
8
+ t.string :receiver_type, null: false
9
+ t.integer :receiver_id, null: false
10
+ t.hstore :meta, default: {}, null: false
11
+ t.datetime :read_at
12
+ t.datetime :created_at, null: false
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,8 @@
1
+ class CreateUsers < ActiveRecord::Migration
2
+ def change
3
+ create_table :users do |t|
4
+
5
+ t.timestamps null: false
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ class AddEmailToUsers < ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :email, :string, null: false
4
+ end
5
+ end
@@ -0,0 +1,35 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20160418122437) do
15
+
16
+ # These are extensions that must be enabled in order to support this database
17
+ enable_extension "plpgsql"
18
+ enable_extension "hstore"
19
+
20
+ create_table "hertz_notifications", force: :cascade do |t|
21
+ t.string "type", null: false
22
+ t.string "receiver_type", null: false
23
+ t.integer "receiver_id", null: false
24
+ t.hstore "meta", default: {}, null: false
25
+ t.datetime "read_at"
26
+ t.datetime "created_at", null: false
27
+ end
28
+
29
+ create_table "users", force: :cascade do |t|
30
+ t.datetime "created_at", null: false
31
+ t.datetime "updated_at", null: false
32
+ t.string "email", null: false
33
+ end
34
+
35
+ end
@@ -0,0 +1,136 @@
1
+  (4.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
2
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
5
+  (0.4ms) SELECT version FROM "schema_migrations"
6
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
7
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
8
+  (4.8ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
9
+  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
10
+  (0.3ms) SELECT version FROM "schema_migrations"
11
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
12
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
13
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
14
+ Migrating to CreateHertzNotifications (20160415175229)
15
+  (0.3ms) BEGIN
16
+  (6.6ms) 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" json NOT NULL, "read_at" timestamp, "created_at" timestamp NOT NULL) 
17
+ SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160415175229"]]
18
+  (1.3ms) COMMIT
19
+ ActiveRecord::SchemaMigration Load (1.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
20
+  (5.1ms) 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
21
+ FROM pg_constraint c
22
+ JOIN pg_class t1 ON c.conrelid = t1.oid
23
+ JOIN pg_class t2 ON c.confrelid = t2.oid
24
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
25
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
26
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
27
+ WHERE c.contype = 'f'
28
+ AND t1.relname = 'hertz_notifications'
29
+ AND t3.nspname = ANY (current_schemas(false))
30
+ ORDER BY c.conname
31
+ 
32
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
33
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
+ Migrating to CreateHertzNotifications (20160415175229)
35
+  (0.2ms) BEGIN
36
+  (1.6ms) DROP TABLE "hertz_notifications"
37
+ SQL (0.5ms) DELETE FROM "schema_migrations" WHERE "schema_migrations"."version" = $1 [["version", "20160415175229"]]
38
+  (1.2ms) COMMIT
39
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
40
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
41
+ Migrating to CreateHertzNotifications (20160415175358)
42
+  (0.2ms) BEGIN
43
+ SQL (19.0ms) CREATE EXTENSION IF NOT EXISTS "hstore"
44
+  (9.6ms) 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)
45
+ SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160415175358"]]
46
+  (3.4ms) COMMIT
47
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
48
+  (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
49
+ FROM pg_constraint c
50
+ JOIN pg_class t1 ON c.conrelid = t1.oid
51
+ JOIN pg_class t2 ON c.confrelid = t2.oid
52
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
53
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
54
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
55
+ WHERE c.contype = 'f'
56
+ AND t1.relname = 'hertz_notifications'
57
+ AND t3.nspname = ANY (current_schemas(false))
58
+ ORDER BY c.conname
59
+
60
+ ActiveRecord::SchemaMigration Load (0.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
+ Migrating to CreateUsers (20160415175837)
62
+  (0.2ms) BEGIN
63
+  (3.4ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
64
+ SQL (0.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160415175837"]]
65
+  (1.8ms) COMMIT
66
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
67
+  (2.1ms) 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
68
+ FROM pg_constraint c
69
+ JOIN pg_class t1 ON c.conrelid = t1.oid
70
+ JOIN pg_class t2 ON c.confrelid = t2.oid
71
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
72
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
73
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
74
+ WHERE c.contype = 'f'
75
+ AND t1.relname = 'hertz_notifications'
76
+ AND t3.nspname = ANY (current_schemas(false))
77
+ ORDER BY c.conname
78
+ 
79
+  (4.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
80
+ FROM pg_constraint c
81
+ JOIN pg_class t1 ON c.conrelid = t1.oid
82
+ JOIN pg_class t2 ON c.confrelid = t2.oid
83
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
84
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
85
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
86
+ WHERE c.contype = 'f'
87
+ AND t1.relname = 'users'
88
+ AND t3.nspname = ANY (current_schemas(false))
89
+ ORDER BY c.conname
90
+
91
+
92
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 5.9ms
93
+ ActiveRecord::SchemaMigration Load (2.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
94
+ Migrating to AddEmailToUsers (20160418122437)
95
+  (0.6ms) BEGIN
96
+  (25.4ms) ALTER TABLE "users" ADD "email" character varying NOT NULL
97
+ SQL (4.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20160418122437"]]
98
+  (5.0ms) COMMIT
99
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
100
+  (9.6ms) 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
101
+ FROM pg_constraint c
102
+ JOIN pg_class t1 ON c.conrelid = t1.oid
103
+ JOIN pg_class t2 ON c.confrelid = t2.oid
104
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
105
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
106
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
107
+ WHERE c.contype = 'f'
108
+ AND t1.relname = 'hertz_notifications'
109
+ AND t3.nspname = ANY (current_schemas(false))
110
+ ORDER BY c.conname
111
+ 
112
+  (9.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
113
+ FROM pg_constraint c
114
+ JOIN pg_class t1 ON c.conrelid = t1.oid
115
+ JOIN pg_class t2 ON c.confrelid = t2.oid
116
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
117
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
118
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
119
+ WHERE c.contype = 'f'
120
+ AND t1.relname = 'users'
121
+ AND t3.nspname = ANY (current_schemas(false))
122
+ ORDER BY c.conname
123
+
124
+  (1.0ms) BEGIN
125
+ SQL (2.1ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "foo@bar.com"], ["created_at", "2016-04-18 15:52:39.396262"], ["updated_at", "2016-04-18 15:52:39.396262"]]
126
+  (1.4ms) COMMIT
127
+  (0.8ms) BEGIN
128
+ SQL (1.9ms) INSERT INTO "hertz_notifications" ("receiver_id", "receiver_type", "meta", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["receiver_id", 1], ["receiver_type", "User"], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2016-04-18 15:52:39.426606"]]
129
+  (0.2ms) ROLLBACK
130
+  (0.3ms) BEGIN
131
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "foo@bar.com"], ["created_at", "2016-04-18 15:52:50.303993"], ["updated_at", "2016-04-18 15:52:50.303993"]]
132
+  (0.7ms) COMMIT
133
+  (0.2ms) BEGIN
134
+ SQL (0.9ms) INSERT INTO "hertz_notifications" ("type", "receiver_id", "receiver_type", "meta", "created_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_id", 2], ["receiver_type", "User"], ["meta", "\"foo\"=>\"bar\""], ["created_at", "2016-04-18 15:52:50.307752"]]
135
+  (0.5ms) COMMIT
136
+ Hertz::Notification Load (0.9ms) SELECT "hertz_notifications".* FROM "hertz_notifications" ORDER BY "hertz_notifications"."id" DESC LIMIT 1
@@ -0,0 +1,2618 @@
1
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2
+  (106.2ms) DROP DATABASE IF EXISTS "hertz_test"
3
+  (259.5ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
4
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
5
+  (4.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL)
6
+  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
7
+  (0.3ms) SELECT version FROM "schema_migrations"
8
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES ('0')
9
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
10
+ ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
11
+  (106.9ms) DROP DATABASE IF EXISTS "hertz_test"
12
+  (265.0ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
13
+ SQL (0.5ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
14
+ SQL (19.1ms) CREATE EXTENSION IF NOT EXISTS "hstore"
15
+  (6.7ms) 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) 
16
+  (3.1ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
17
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
18
+  (2.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
19
+  (0.4ms) SELECT version FROM "schema_migrations"
20
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
21
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
22
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
23
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
24
+  (1.2ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
25
+  (2.5ms)  SELECT schemaname || '.' || tablename
26
+ FROM pg_tables
27
+ WHERE
28
+ tablename !~ '_prt_' AND
29
+ tablename <> 'schema_migrations' AND
30
+ schemaname = ANY (current_schemas(false))
31
+ 
32
+  (2.9ms) select table_name from information_schema.views where table_schema = 'hertz_test'
33
+  (11.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
34
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
35
+  (0.2ms) BEGIN
36
+  (0.2ms) COMMIT
37
+  (0.1ms) BEGIN
38
+  (0.5ms) ROLLBACK
39
+  (0.2ms) BEGIN
40
+  (0.2ms) COMMIT
41
+  (0.3ms) BEGIN
42
+  (0.6ms) ROLLBACK
43
+  (0.3ms) BEGIN
44
+  (0.2ms) COMMIT
45
+  (0.2ms) BEGIN
46
+  (0.3ms) ROLLBACK
47
+  (0.2ms) BEGIN
48
+  (0.2ms) COMMIT
49
+  (0.2ms) BEGIN
50
+  (0.2ms) ROLLBACK
51
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
52
+  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
53
+  (2.6ms)  SELECT schemaname || '.' || tablename
54
+ FROM pg_tables
55
+ WHERE
56
+ tablename !~ '_prt_' AND
57
+ tablename <> 'schema_migrations' AND
58
+ schemaname = ANY (current_schemas(false))
59
+ 
60
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
61
+  (15.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
62
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
63
+  (0.2ms) BEGIN
64
+  (0.2ms) COMMIT
65
+  (0.2ms) BEGIN
66
+  (0.4ms) ROLLBACK
67
+  (0.2ms) BEGIN
68
+  (0.2ms) COMMIT
69
+  (0.2ms) BEGIN
70
+  (0.2ms) ROLLBACK
71
+  (0.2ms) BEGIN
72
+  (0.2ms) COMMIT
73
+  (0.2ms) BEGIN
74
+  (0.2ms) ROLLBACK
75
+  (0.4ms) BEGIN
76
+  (0.5ms) COMMIT
77
+  (0.3ms) BEGIN
78
+  (0.6ms) ROLLBACK
79
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
80
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
81
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
82
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
83
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
84
+  (2.3ms)  SELECT schemaname || '.' || tablename
85
+ FROM pg_tables
86
+ WHERE
87
+ tablename !~ '_prt_' AND
88
+ tablename <> 'schema_migrations' AND
89
+ schemaname = ANY (current_schemas(false))
90
+ 
91
+  (1.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
92
+  (8.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
93
+  (1.1ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
94
+  (0.5ms) BEGIN
95
+  (0.3ms) COMMIT
96
+  (0.2ms) BEGIN
97
+  (0.4ms) ROLLBACK
98
+  (0.6ms) BEGIN
99
+  (0.4ms) COMMIT
100
+  (0.6ms) BEGIN
101
+  (0.4ms) ROLLBACK
102
+  (0.2ms) BEGIN
103
+  (0.2ms) COMMIT
104
+  (0.2ms) BEGIN
105
+  (0.2ms) ROLLBACK
106
+  (0.2ms) BEGIN
107
+  (0.2ms) COMMIT
108
+  (0.2ms) BEGIN
109
+  (0.2ms) ROLLBACK
110
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
111
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
112
+  (2.5ms)  SELECT schemaname || '.' || tablename
113
+ FROM pg_tables
114
+ WHERE
115
+ tablename !~ '_prt_' AND
116
+ tablename <> 'schema_migrations' AND
117
+ schemaname = ANY (current_schemas(false))
118
+ 
119
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
120
+  (9.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
121
+  (1.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
122
+  (0.4ms) BEGIN
123
+  (0.5ms) COMMIT
124
+  (0.3ms) BEGIN
125
+  (0.5ms) ROLLBACK
126
+  (0.6ms) BEGIN
127
+  (0.4ms) COMMIT
128
+  (0.9ms) BEGIN
129
+  (0.6ms) ROLLBACK
130
+  (0.2ms) BEGIN
131
+  (0.2ms) COMMIT
132
+  (0.2ms) BEGIN
133
+  (0.2ms) ROLLBACK
134
+  (0.2ms) BEGIN
135
+  (0.2ms) COMMIT
136
+  (0.2ms) BEGIN
137
+  (0.2ms) ROLLBACK
138
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
139
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
140
+  (2.3ms)  SELECT schemaname || '.' || tablename
141
+ FROM pg_tables
142
+ WHERE
143
+ tablename !~ '_prt_' AND
144
+ tablename <> 'schema_migrations' AND
145
+ schemaname = ANY (current_schemas(false))
146
+ 
147
+  (1.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
148
+  (8.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
149
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
150
+  (0.9ms) BEGIN
151
+  (0.4ms) COMMIT
152
+  (0.3ms) BEGIN
153
+  (0.5ms) ROLLBACK
154
+  (0.2ms) BEGIN
155
+  (0.1ms) COMMIT
156
+  (0.2ms) BEGIN
157
+  (0.2ms) SAVEPOINT active_record_1
158
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-15 20:22:31.885617"], ["updated_at", "2016-04-15 20:22:31.885617"]]
159
+ 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-04-15 20:22:31.883238"], ["receiver_id", 1], ["created_at", "2016-04-15 20:22:31.889873"]]
160
+  (0.2ms) RELEASE SAVEPOINT active_record_1
161
+  (0.2ms) ROLLBACK
162
+  (0.4ms) BEGIN
163
+  (0.3ms) COMMIT
164
+  (0.1ms) BEGIN
165
+  (0.6ms) ROLLBACK
166
+  (0.2ms) BEGIN
167
+  (0.1ms) COMMIT
168
+  (0.1ms) BEGIN
169
+  (0.1ms) SAVEPOINT active_record_1
170
+ SQL (1.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-15 20:22:31.919731"], ["updated_at", "2016-04-15 20:22:31.919731"]]
171
+ 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", 2], ["created_at", "2016-04-15 20:22:31.922987"]]
172
+  (0.3ms) RELEASE SAVEPOINT active_record_1
173
+  (0.3ms) ROLLBACK
174
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
175
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
176
+  (2.2ms)  SELECT schemaname || '.' || tablename
177
+ FROM pg_tables
178
+ WHERE
179
+ tablename !~ '_prt_' AND
180
+ tablename <> 'schema_migrations' AND
181
+ schemaname = ANY (current_schemas(false))
182
+ 
183
+  (1.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
184
+  (8.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
185
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
186
+  (0.6ms) BEGIN
187
+  (0.3ms) COMMIT
188
+  (0.2ms) BEGIN
189
+  (0.4ms) SAVEPOINT active_record_1
190
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-15 20:22:59.945915"], ["updated_at", "2016-04-15 20:22:59.945915"]]
191
+ 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-04-15 20:22:59.943190"], ["receiver_id", 1], ["created_at", "2016-04-15 20:22:59.950076"]]
192
+  (0.2ms) RELEASE SAVEPOINT active_record_1
193
+  (0.2ms) SAVEPOINT active_record_1
194
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 1]]
195
+  (0.3ms) RELEASE SAVEPOINT active_record_1
196
+  (0.3ms) ROLLBACK
197
+  (0.2ms) BEGIN
198
+  (0.2ms) COMMIT
199
+  (0.2ms) BEGIN
200
+  (0.2ms) ROLLBACK
201
+  (0.2ms) BEGIN
202
+  (0.2ms) COMMIT
203
+  (0.2ms) BEGIN
204
+  (0.2ms) ROLLBACK
205
+  (0.2ms) BEGIN
206
+  (0.2ms) COMMIT
207
+  (0.2ms) BEGIN
208
+  (0.3ms) SAVEPOINT active_record_1
209
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-15 20:22:59.970004"], ["updated_at", "2016-04-15 20:22:59.970004"]]
210
+ 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-04-15 20:22:59.971288"]]
211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
212
+  (0.1ms) SAVEPOINT active_record_1
213
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-15 20:22:59.973599"], ["id", 2]]
214
+  (0.2ms) RELEASE SAVEPOINT active_record_1
215
+  (0.2ms) ROLLBACK
216
+ ActiveRecord::SchemaMigration Load (3.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
217
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
218
+  (3.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
219
+  (2.3ms)  SELECT schemaname || '.' || tablename
220
+ FROM pg_tables
221
+ WHERE
222
+ tablename !~ '_prt_' AND
223
+ tablename <> 'schema_migrations' AND
224
+ schemaname = ANY (current_schemas(false))
225
+ 
226
+  (5.3ms) select table_name from information_schema.views where table_schema = 'hertz_test'
227
+  (9.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
228
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
229
+  (0.4ms) BEGIN
230
+  (0.3ms) COMMIT
231
+  (0.3ms) BEGIN
232
+  (0.6ms) ROLLBACK
233
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
234
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
235
+  (1.1ms)  SELECT schemaname || '.' || tablename
236
+ FROM pg_tables
237
+ WHERE
238
+ tablename !~ '_prt_' AND
239
+ tablename <> 'schema_migrations' AND
240
+ schemaname = ANY (current_schemas(false))
241
+ 
242
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
243
+  (7.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
244
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
245
+  (0.6ms) BEGIN
246
+  (0.3ms) COMMIT
247
+  (0.2ms) BEGIN
248
+  (0.3ms) ROLLBACK
249
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
250
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
251
+  (2.3ms)  SELECT schemaname || '.' || tablename
252
+ FROM pg_tables
253
+ WHERE
254
+ tablename !~ '_prt_' AND
255
+ tablename <> 'schema_migrations' AND
256
+ schemaname = ANY (current_schemas(false))
257
+ 
258
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
259
+  (7.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
260
+  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
261
+  (0.8ms) BEGIN
262
+  (0.3ms) COMMIT
263
+  (0.2ms) BEGIN
264
+  (0.4ms) ROLLBACK
265
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
266
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
267
+  (2.2ms)  SELECT schemaname || '.' || tablename
268
+ FROM pg_tables
269
+ WHERE
270
+ tablename !~ '_prt_' AND
271
+ tablename <> 'schema_migrations' AND
272
+ schemaname = ANY (current_schemas(false))
273
+ 
274
+  (2.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
275
+  (8.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
276
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
277
+  (0.4ms) BEGIN
278
+  (0.3ms) COMMIT
279
+  (0.2ms) BEGIN
280
+  (0.4ms) ROLLBACK
281
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
282
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
283
+  (2.4ms)  SELECT schemaname || '.' || tablename
284
+ FROM pg_tables
285
+ WHERE
286
+ tablename !~ '_prt_' AND
287
+ tablename <> 'schema_migrations' AND
288
+ schemaname = ANY (current_schemas(false))
289
+ 
290
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
291
+  (8.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
292
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
293
+  (0.5ms) BEGIN
294
+  (0.3ms) COMMIT
295
+  (0.2ms) BEGIN
296
+  (0.3ms) ROLLBACK
297
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
298
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
299
+  (1.2ms)  SELECT schemaname || '.' || tablename
300
+ FROM pg_tables
301
+ WHERE
302
+ tablename !~ '_prt_' AND
303
+ tablename <> 'schema_migrations' AND
304
+ schemaname = ANY (current_schemas(false))
305
+ 
306
+  (2.2ms) select table_name from information_schema.views where table_schema = 'hertz_test'
307
+  (8.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
308
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
309
+  (0.3ms) BEGIN
310
+  (0.3ms) COMMIT
311
+  (0.2ms) BEGIN
312
+  (0.4ms) ROLLBACK
313
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
314
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
315
+  (1.4ms)  SELECT schemaname || '.' || tablename
316
+ FROM pg_tables
317
+ WHERE
318
+ tablename !~ '_prt_' AND
319
+ tablename <> 'schema_migrations' AND
320
+ schemaname = ANY (current_schemas(false))
321
+ 
322
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
323
+  (8.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
324
+  (2.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
325
+  (0.7ms) BEGIN
326
+  (0.5ms) COMMIT
327
+  (0.2ms) BEGIN
328
+  (0.8ms) ROLLBACK
329
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
330
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
331
+  (1.8ms)  SELECT schemaname || '.' || tablename
332
+ FROM pg_tables
333
+ WHERE
334
+ tablename !~ '_prt_' AND
335
+ tablename <> 'schema_migrations' AND
336
+ schemaname = ANY (current_schemas(false))
337
+ 
338
+  (2.2ms) select table_name from information_schema.views where table_schema = 'hertz_test'
339
+  (7.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
340
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
341
+  (0.4ms) BEGIN
342
+  (0.2ms) COMMIT
343
+  (0.2ms) BEGIN
344
+  (0.3ms) ROLLBACK
345
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
346
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
347
+  (1.1ms)  SELECT schemaname || '.' || tablename
348
+ FROM pg_tables
349
+ WHERE
350
+ tablename !~ '_prt_' AND
351
+ tablename <> 'schema_migrations' AND
352
+ schemaname = ANY (current_schemas(false))
353
+ 
354
+  (1.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
355
+  (10.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
356
+  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
357
+  (0.6ms) BEGIN
358
+  (0.2ms) COMMIT
359
+  (0.5ms) BEGIN
360
+  (0.3ms) SAVEPOINT active_record_1
361
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:08.918937"], ["updated_at", "2016-04-17 10:51:08.918937"]]
362
+ 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", 1], ["created_at", "2016-04-17 10:51:08.924245"]]
363
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
364
+  (0.2ms) ROLLBACK
365
+  (0.2ms) BEGIN
366
+  (0.2ms) COMMIT
367
+  (0.2ms) BEGIN
368
+  (0.3ms) ROLLBACK
369
+  (0.1ms) BEGIN
370
+  (0.2ms) COMMIT
371
+  (0.1ms) BEGIN
372
+  (0.3ms) ROLLBACK
373
+  (0.3ms) BEGIN
374
+  (0.2ms) COMMIT
375
+  (0.2ms) BEGIN
376
+  (0.4ms) SAVEPOINT active_record_1
377
+ SQL (1.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:08.962119"], ["updated_at", "2016-04-17 10:51:08.962119"]]
378
+ 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-04-17 10:51:08.960858"], ["receiver_id", 2], ["created_at", "2016-04-17 10:51:08.965090"]]
379
+  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1
380
+  (0.4ms) ROLLBACK
381
+  (0.2ms) BEGIN
382
+  (0.2ms) COMMIT
383
+  (0.3ms) BEGIN
384
+  (0.3ms) SAVEPOINT active_record_1
385
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:08.979124"], ["updated_at", "2016-04-17 10:51:08.979124"]]
386
+ 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-04-17 10:51:08.980467"]]
387
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
388
+  (0.1ms) ROLLBACK
389
+  (0.2ms) BEGIN
390
+  (0.2ms) COMMIT
391
+  (0.2ms) BEGIN
392
+  (0.6ms) SAVEPOINT active_record_1
393
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:08.993418"], ["updated_at", "2016-04-17 10:51:08.993418"]]
394
+ 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", 4], ["created_at", "2016-04-17 10:51:08.995697"]]
395
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
396
+  (0.5ms) ROLLBACK
397
+  (0.5ms) BEGIN
398
+  (0.4ms) COMMIT
399
+  (0.4ms) BEGIN
400
+  (0.3ms) SAVEPOINT active_record_1
401
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:09.009422"], ["updated_at", "2016-04-17 10:51:09.009422"]]
402
+  (0.4ms) RELEASE SAVEPOINT active_record_1
403
+  (0.2ms) SAVEPOINT active_record_1
404
+ 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", 5], ["receiver_type", "User"], ["created_at", "2016-04-17 10:51:09.013083"]]
405
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
406
+  (0.3ms) ROLLBACK
407
+  (0.2ms) BEGIN
408
+  (0.1ms) COMMIT
409
+  (0.4ms) BEGIN
410
+  (0.2ms) SAVEPOINT active_record_1
411
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:09.022212"], ["updated_at", "2016-04-17 10:51:09.022212"]]
412
+  (0.2ms) RELEASE SAVEPOINT active_record_1
413
+  (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"]]
414
+  (0.1ms) SAVEPOINT active_record_1
415
+ 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-04-17 10:51:09.048544"]]
416
+  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
417
+  (0.2ms) ROLLBACK
418
+  (0.3ms) BEGIN
419
+  (0.3ms) COMMIT
420
+  (0.2ms) BEGIN
421
+  (0.4ms) ROLLBACK
422
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
423
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
424
+  (2.3ms)  SELECT schemaname || '.' || tablename
425
+ FROM pg_tables
426
+ WHERE
427
+ tablename !~ '_prt_' AND
428
+ tablename <> 'schema_migrations' AND
429
+ schemaname = ANY (current_schemas(false))
430
+ 
431
+  (1.9ms) select table_name from information_schema.views where table_schema = 'hertz_test'
432
+  (9.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
433
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
434
+  (0.4ms) BEGIN
435
+  (0.2ms) COMMIT
436
+  (0.2ms) BEGIN
437
+  (0.7ms) ROLLBACK
438
+  (0.2ms) BEGIN
439
+  (0.2ms) COMMIT
440
+  (0.2ms) BEGIN
441
+  (0.3ms) SAVEPOINT active_record_1
442
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:24.087190"], ["updated_at", "2016-04-17 10:51:24.087190"]]
443
+ 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", 1], ["created_at", "2016-04-17 10:51:24.091722"]]
444
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
445
+  (0.5ms) ROLLBACK
446
+  (0.2ms) BEGIN
447
+  (0.2ms) COMMIT
448
+  (0.2ms) BEGIN
449
+  (0.3ms) SAVEPOINT active_record_1
450
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:24.111107"], ["updated_at", "2016-04-17 10:51:24.111107"]]
451
+ 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-04-17 10:51:24.112546"]]
452
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
453
+  (0.2ms) ROLLBACK
454
+  (0.2ms) BEGIN
455
+  (0.2ms) COMMIT
456
+  (0.2ms) BEGIN
457
+  (0.2ms) SAVEPOINT active_record_1
458
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:24.121244"], ["updated_at", "2016-04-17 10:51:24.121244"]]
459
+ SQL (0.9ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-04-17 10:51:24.122635"]]
460
+  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1
461
+  (0.7ms) ROLLBACK
462
+  (0.2ms) BEGIN
463
+  (0.2ms) COMMIT
464
+  (0.2ms) BEGIN
465
+  (0.5ms) ROLLBACK
466
+  (0.4ms) BEGIN
467
+  (0.4ms) COMMIT
468
+  (1.3ms) BEGIN
469
+  (0.3ms) ROLLBACK
470
+  (0.1ms) BEGIN
471
+  (0.1ms) COMMIT
472
+  (0.1ms) BEGIN
473
+  (0.2ms) SAVEPOINT active_record_1
474
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:24.156069"], ["updated_at", "2016-04-17 10:51:24.156069"]]
475
+ 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-04-17 10:51:24.155341"], ["receiver_id", 4], ["created_at", "2016-04-17 10:51:24.157495"]]
476
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
477
+  (0.1ms) ROLLBACK
478
+  (0.4ms) BEGIN
479
+  (0.3ms) COMMIT
480
+  (0.2ms) BEGIN
481
+  (0.4ms) SAVEPOINT active_record_1
482
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:24.170389"], ["updated_at", "2016-04-17 10:51:24.170389"]]
483
+  (0.3ms) RELEASE SAVEPOINT active_record_1
484
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 5], ["receiver_type", "User"]]
485
+  (0.2ms) SAVEPOINT active_record_1
486
+ 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", 5], ["receiver_type", "User"], ["created_at", "2016-04-17 10:51:24.190666"]]
487
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
488
+  (0.2ms) ROLLBACK
489
+  (0.2ms) BEGIN
490
+  (0.2ms) COMMIT
491
+  (0.3ms) BEGIN
492
+  (0.3ms) SAVEPOINT active_record_1
493
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:24.205493"], ["updated_at", "2016-04-17 10:51:24.205493"]]
494
+  (0.2ms) RELEASE SAVEPOINT active_record_1
495
+  (0.4ms) SAVEPOINT active_record_1
496
+ SQL (0.8ms) 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-04-17 10:51:24.209665"]]
497
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
498
+  (0.6ms) ROLLBACK
499
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
500
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
501
+  (2.1ms)  SELECT schemaname || '.' || tablename
502
+ FROM pg_tables
503
+ WHERE
504
+ tablename !~ '_prt_' AND
505
+ tablename <> 'schema_migrations' AND
506
+ schemaname = ANY (current_schemas(false))
507
+ 
508
+  (2.3ms) select table_name from information_schema.views where table_schema = 'hertz_test'
509
+  (7.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
510
+  (0.8ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
511
+  (0.5ms) BEGIN
512
+  (0.2ms) COMMIT
513
+  (0.2ms) BEGIN
514
+  (0.5ms) SAVEPOINT active_record_1
515
+ SQL (1.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:31.998264"], ["updated_at", "2016-04-17 10:51:31.998264"]]
516
+  (0.4ms) RELEASE SAVEPOINT active_record_1
517
+  (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"]]
518
+  (0.2ms) SAVEPOINT active_record_1
519
+ 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-04-17 10:51:32.032935"]]
520
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
521
+  (0.2ms) ROLLBACK
522
+  (0.2ms) BEGIN
523
+  (0.1ms) COMMIT
524
+  (0.2ms) BEGIN
525
+  (0.2ms) SAVEPOINT active_record_1
526
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:32.066353"], ["updated_at", "2016-04-17 10:51:32.066353"]]
527
+  (0.2ms) RELEASE SAVEPOINT active_record_1
528
+  (0.3ms) SAVEPOINT active_record_1
529
+ SQL (1.1ms) 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-04-17 10:51:32.070156"]]
530
+  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1
531
+  (0.5ms) ROLLBACK
532
+  (0.4ms) BEGIN
533
+  (0.2ms) COMMIT
534
+  (0.2ms) BEGIN
535
+  (0.5ms) ROLLBACK
536
+  (0.2ms) BEGIN
537
+  (0.2ms) COMMIT
538
+  (0.2ms) BEGIN
539
+  (0.2ms) SAVEPOINT active_record_1
540
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:32.117042"], ["updated_at", "2016-04-17 10:51:32.117042"]]
541
+ SQL (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 3], ["created_at", "2016-04-17 10:51:32.118553"]]
542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
543
+  (0.2ms) ROLLBACK
544
+  (0.3ms) BEGIN
545
+  (0.2ms) COMMIT
546
+  (0.2ms) BEGIN
547
+  (0.3ms) SAVEPOINT active_record_1
548
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:32.145232"], ["updated_at", "2016-04-17 10:51:32.145232"]]
549
+ 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", 4], ["created_at", "2016-04-17 10:51:32.146960"]]
550
+  (0.7ms) RELEASE SAVEPOINT active_record_1
551
+  (0.4ms) SAVEPOINT active_record_1
552
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-17 10:51:32.153826"], ["id", 4]]
553
+  (0.3ms) RELEASE SAVEPOINT active_record_1
554
+  (0.2ms) ROLLBACK
555
+  (0.1ms) BEGIN
556
+  (0.1ms) COMMIT
557
+  (0.1ms) BEGIN
558
+  (0.7ms) SAVEPOINT active_record_1
559
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:32.171113"], ["updated_at", "2016-04-17 10:51:32.171113"]]
560
+ 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", 5], ["created_at", "2016-04-17 10:51:32.175385"]]
561
+  (0.7ms) RELEASE SAVEPOINT active_record_1
562
+  (0.4ms) SAVEPOINT active_record_1
563
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:32.183241"], ["updated_at", "2016-04-17 10:51:32.183241"]]
564
+ 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-04-17 10:51:32.181569"], ["receiver_id", 6], ["created_at", "2016-04-17 10:51:32.184853"]]
565
+  (0.2ms) RELEASE SAVEPOINT active_record_1
566
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
567
+  (0.2ms) ROLLBACK
568
+  (0.3ms) BEGIN
569
+  (0.2ms) COMMIT
570
+  (0.1ms) BEGIN
571
+  (0.3ms) ROLLBACK
572
+  (0.3ms) BEGIN
573
+  (0.3ms) COMMIT
574
+  (1.2ms) BEGIN
575
+  (0.3ms) SAVEPOINT active_record_1
576
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:51:32.201215"], ["updated_at", "2016-04-17 10:51:32.201215"]]
577
+ SQL (0.9ms) 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-04-17 10:51:32.200270"], ["receiver_id", 7], ["created_at", "2016-04-17 10:51:32.204145"]]
578
+  (0.3ms) RELEASE SAVEPOINT active_record_1
579
+  (0.2ms) SAVEPOINT active_record_1
580
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
581
+  (0.3ms) RELEASE SAVEPOINT active_record_1
582
+  (0.2ms) ROLLBACK
583
+  (0.2ms) BEGIN
584
+  (0.2ms) COMMIT
585
+  (0.3ms) BEGIN
586
+  (0.6ms) ROLLBACK
587
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
588
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
589
+  (2.4ms)  SELECT schemaname || '.' || tablename
590
+ FROM pg_tables
591
+ WHERE
592
+ tablename !~ '_prt_' AND
593
+ tablename <> 'schema_migrations' AND
594
+ schemaname = ANY (current_schemas(false))
595
+ 
596
+  (1.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
597
+  (8.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
598
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
599
+  (0.6ms) BEGIN
600
+  (0.2ms) COMMIT
601
+  (0.2ms) BEGIN
602
+  (0.5ms) SAVEPOINT active_record_1
603
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.073017"], ["updated_at", "2016-04-17 10:52:05.073017"]]
604
+  (0.3ms) RELEASE SAVEPOINT active_record_1
605
+  (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"]]
606
+  (0.3ms) SAVEPOINT active_record_1
607
+ 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-04-17 10:52:05.104798"]]
608
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
609
+  (0.2ms) ROLLBACK
610
+  (0.3ms) BEGIN
611
+  (0.2ms) COMMIT
612
+  (0.2ms) BEGIN
613
+  (0.3ms) SAVEPOINT active_record_1
614
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.138469"], ["updated_at", "2016-04-17 10:52:05.138469"]]
615
+  (0.2ms) RELEASE SAVEPOINT active_record_1
616
+  (0.2ms) SAVEPOINT active_record_1
617
+ SQL (0.8ms) 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-04-17 10:52:05.141807"]]
618
+  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1
619
+  (0.5ms) ROLLBACK
620
+  (0.3ms) BEGIN
621
+  (0.2ms) COMMIT
622
+  (0.2ms) BEGIN
623
+  (0.3ms) ROLLBACK
624
+  (0.3ms) BEGIN
625
+  (0.2ms) COMMIT
626
+  (0.2ms) BEGIN
627
+  (0.3ms) SAVEPOINT active_record_1
628
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.198512"], ["updated_at", "2016-04-17 10:52:05.198512"]]
629
+ 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", 3], ["created_at", "2016-04-17 10:52:05.201051"]]
630
+  (0.4ms) RELEASE SAVEPOINT active_record_1
631
+  (0.2ms) ROLLBACK
632
+  (0.5ms) BEGIN
633
+  (0.4ms) COMMIT
634
+  (0.4ms) BEGIN
635
+  (0.3ms) SAVEPOINT active_record_1
636
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.214147"], ["updated_at", "2016-04-17 10:52:05.214147"]]
637
+ 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", 4], ["created_at", "2016-04-17 10:52:05.216551"]]
638
+  (0.3ms) RELEASE SAVEPOINT active_record_1
639
+  (0.6ms) SAVEPOINT active_record_1
640
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.221993"], ["updated_at", "2016-04-17 10:52:05.221993"]]
641
+ 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-04-17 10:52:05.220279"], ["receiver_id", 5], ["created_at", "2016-04-17 10:52:05.225508"]]
642
+  (0.6ms) RELEASE SAVEPOINT active_record_1
643
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
644
+  (0.3ms) ROLLBACK
645
+  (0.2ms) BEGIN
646
+  (0.2ms) COMMIT
647
+  (0.2ms) BEGIN
648
+  (0.2ms) ROLLBACK
649
+  (0.1ms) BEGIN
650
+  (0.3ms) COMMIT
651
+  (0.2ms) BEGIN
652
+  (0.1ms) ROLLBACK
653
+  (0.2ms) BEGIN
654
+  (0.3ms) COMMIT
655
+  (0.2ms) BEGIN
656
+  (0.4ms) SAVEPOINT active_record_1
657
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.246777"], ["updated_at", "2016-04-17 10:52:05.246777"]]
658
+ SQL (0.7ms) 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-04-17 10:52:05.244787"], ["receiver_id", 6], ["created_at", "2016-04-17 10:52:05.249497"]]
659
+  (0.6ms) RELEASE SAVEPOINT active_record_1
660
+  (0.2ms) SAVEPOINT active_record_1
661
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 6]]
662
+  (0.2ms) RELEASE SAVEPOINT active_record_1
663
+  (0.2ms) ROLLBACK
664
+  (0.2ms) BEGIN
665
+  (0.2ms) COMMIT
666
+  (0.2ms) BEGIN
667
+  (0.2ms) SAVEPOINT active_record_1
668
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:05.265971"], ["updated_at", "2016-04-17 10:52:05.265971"]]
669
+ 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", 7], ["created_at", "2016-04-17 10:52:05.268996"]]
670
+  (0.6ms) RELEASE SAVEPOINT active_record_1
671
+  (0.4ms) SAVEPOINT active_record_1
672
+ SQL (0.8ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-17 10:52:05.274273"], ["id", 7]]
673
+  (0.3ms) RELEASE SAVEPOINT active_record_1
674
+  (0.2ms) ROLLBACK
675
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
676
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
677
+  (1.2ms)  SELECT schemaname || '.' || tablename
678
+ FROM pg_tables
679
+ WHERE
680
+ tablename !~ '_prt_' AND
681
+ tablename <> 'schema_migrations' AND
682
+ schemaname = ANY (current_schemas(false))
683
+ 
684
+  (1.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
685
+  (8.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
686
+  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
687
+  (0.6ms) BEGIN
688
+  (0.3ms) COMMIT
689
+  (0.3ms) BEGIN
690
+  (0.5ms) SAVEPOINT active_record_1
691
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:15.802321"], ["updated_at", "2016-04-17 10:52:15.802321"]]
692
+ 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-04-17 10:52:15.806605"]]
693
+  (0.2ms) RELEASE SAVEPOINT active_record_1
694
+  (0.2ms) ROLLBACK
695
+  (0.2ms) BEGIN
696
+  (0.1ms) COMMIT
697
+  (0.2ms) BEGIN
698
+  (0.2ms) ROLLBACK
699
+  (0.1ms) BEGIN
700
+  (0.1ms) COMMIT
701
+  (0.1ms) BEGIN
702
+  (0.2ms) SAVEPOINT active_record_1
703
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:15.817353"], ["updated_at", "2016-04-17 10:52:15.817353"]]
704
+ 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-04-17 10:52:15.816737"], ["receiver_id", 2], ["created_at", "2016-04-17 10:52:15.818642"]]
705
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
706
+  (0.2ms) ROLLBACK
707
+  (0.4ms) BEGIN
708
+  (0.2ms) COMMIT
709
+  (0.2ms) BEGIN
710
+  (0.2ms) SAVEPOINT active_record_1
711
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:15.854604"], ["updated_at", "2016-04-17 10:52:15.854604"]]
712
+ 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", 3], ["created_at", "2016-04-17 10:52:15.855859"]]
713
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
714
+  (0.2ms) ROLLBACK
715
+  (0.2ms) BEGIN
716
+  (0.2ms) COMMIT
717
+  (0.1ms) BEGIN
718
+  (0.6ms) ROLLBACK
719
+  (0.3ms) BEGIN
720
+  (0.2ms) COMMIT
721
+  (0.2ms) BEGIN
722
+  (0.4ms) SAVEPOINT active_record_1
723
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:15.882462"], ["updated_at", "2016-04-17 10:52:15.882462"]]
724
+ 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-04-17 10:52:15.885809"]]
725
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
726
+  (0.2ms) ROLLBACK
727
+  (0.7ms) BEGIN
728
+  (0.5ms) COMMIT
729
+  (0.7ms) BEGIN
730
+  (0.3ms) ROLLBACK
731
+  (0.3ms) BEGIN
732
+  (0.2ms) COMMIT
733
+  (0.2ms) BEGIN
734
+  (0.2ms) SAVEPOINT active_record_1
735
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:15.922377"], ["updated_at", "2016-04-17 10:52:15.922377"]]
736
+  (0.2ms) RELEASE SAVEPOINT active_record_1
737
+  (0.2ms) SAVEPOINT active_record_1
738
+ 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", 5], ["receiver_type", "User"], ["created_at", "2016-04-17 10:52:15.925202"]]
739
+  (0.6ms) RELEASE SAVEPOINT active_record_1
740
+ 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", 5], ["receiver_type", "User"]]
741
+  (0.3ms) ROLLBACK
742
+  (0.1ms) BEGIN
743
+  (0.4ms) COMMIT
744
+  (0.2ms) BEGIN
745
+  (0.2ms) SAVEPOINT active_record_1
746
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:15.960407"], ["updated_at", "2016-04-17 10:52:15.960407"]]
747
+  (0.2ms) RELEASE SAVEPOINT active_record_1
748
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
749
+  (0.1ms) SAVEPOINT active_record_1
750
+ SQL (0.8ms) 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-04-17 10:52:15.964843"]]
751
+  (0.2ms) RELEASE SAVEPOINT active_record_1
752
+  (0.2ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
753
+  (0.2ms) ROLLBACK
754
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
755
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
756
+  (2.5ms)  SELECT schemaname || '.' || tablename
757
+ FROM pg_tables
758
+ WHERE
759
+ tablename !~ '_prt_' AND
760
+ tablename <> 'schema_migrations' AND
761
+ schemaname = ANY (current_schemas(false))
762
+ 
763
+  (1.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
764
+  (10.5ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
765
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
766
+  (0.6ms) BEGIN
767
+  (0.2ms) COMMIT
768
+  (0.2ms) BEGIN
769
+  (0.4ms) SAVEPOINT active_record_1
770
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:47.649455"], ["updated_at", "2016-04-17 10:52:47.649455"]]
771
+ 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", 1], ["created_at", "2016-04-17 10:52:47.653721"]]
772
+  (0.2ms) RELEASE SAVEPOINT active_record_1
773
+  (0.2ms) ROLLBACK
774
+  (0.2ms) BEGIN
775
+  (0.2ms) COMMIT
776
+  (0.2ms) BEGIN
777
+  (0.2ms) SAVEPOINT active_record_1
778
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:47.660280"], ["updated_at", "2016-04-17 10:52:47.660280"]]
779
+ 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-04-17 10:52:47.659652"], ["receiver_id", 2], ["created_at", "2016-04-17 10:52:47.661636"]]
780
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
781
+  (0.2ms) ROLLBACK
782
+  (0.5ms) BEGIN
783
+  (0.5ms) COMMIT
784
+  (0.4ms) BEGIN
785
+  (0.4ms) ROLLBACK
786
+  (0.2ms) BEGIN
787
+  (0.2ms) COMMIT
788
+  (0.2ms) BEGIN
789
+  (0.2ms) SAVEPOINT active_record_1
790
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:47.703616"], ["updated_at", "2016-04-17 10:52:47.703616"]]
791
+ 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", 3], ["created_at", "2016-04-17 10:52:47.705036"]]
792
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
793
+  (0.2ms) ROLLBACK
794
+  (0.5ms) BEGIN
795
+  (0.3ms) COMMIT
796
+  (0.5ms) BEGIN
797
+  (0.4ms) ROLLBACK
798
+  (0.3ms) BEGIN
799
+  (0.2ms) COMMIT
800
+  (0.2ms) BEGIN
801
+  (0.5ms) SAVEPOINT active_record_1
802
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:47.732716"], ["updated_at", "2016-04-17 10:52:47.732716"]]
803
+ 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", 4], ["created_at", "2016-04-17 10:52:47.734294"]]
804
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
805
+  (1.4ms) ROLLBACK
806
+  (0.5ms) BEGIN
807
+  (0.3ms) COMMIT
808
+  (0.2ms) BEGIN
809
+  (0.3ms) SAVEPOINT active_record_1
810
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:47.758452"], ["updated_at", "2016-04-17 10:52:47.758452"]]
811
+  (0.2ms) RELEASE SAVEPOINT active_record_1
812
+  (0.4ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 5], ["receiver_type", "User"]]
813
+  (0.2ms) SAVEPOINT active_record_1
814
+ 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", 5], ["receiver_type", "User"], ["created_at", "2016-04-17 10:52:47.779639"]]
815
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
816
+  (0.1ms) ROLLBACK
817
+  (0.3ms) BEGIN
818
+  (0.2ms) COMMIT
819
+  (0.1ms) BEGIN
820
+  (0.1ms) SAVEPOINT active_record_1
821
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:47.803212"], ["updated_at", "2016-04-17 10:52:47.803212"]]
822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
823
+  (0.2ms) SAVEPOINT active_record_1
824
+ 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", 6], ["receiver_type", "User"], ["created_at", "2016-04-17 10:52:47.806402"]]
825
+  (0.8ms) ROLLBACK TO SAVEPOINT active_record_1
826
+  (0.2ms) ROLLBACK
827
+  (0.4ms) BEGIN
828
+  (0.2ms) COMMIT
829
+  (0.3ms) BEGIN
830
+  (0.7ms) ROLLBACK
831
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
832
+  (1.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
833
+  (2.4ms)  SELECT schemaname || '.' || tablename
834
+ FROM pg_tables
835
+ WHERE
836
+ tablename !~ '_prt_' AND
837
+ tablename <> 'schema_migrations' AND
838
+ schemaname = ANY (current_schemas(false))
839
+ 
840
+  (1.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
841
+  (8.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
842
+  (0.6ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
843
+  (1.0ms) BEGIN
844
+  (0.2ms) COMMIT
845
+  (0.3ms) BEGIN
846
+  (0.4ms) SAVEPOINT active_record_1
847
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.392193"], ["updated_at", "2016-04-17 10:52:54.392193"]]
848
+ 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", 1], ["created_at", "2016-04-17 10:52:54.396598"]]
849
+  (0.2ms) RELEASE SAVEPOINT active_record_1
850
+  (0.2ms) ROLLBACK
851
+  (0.2ms) BEGIN
852
+  (0.2ms) COMMIT
853
+  (0.1ms) BEGIN
854
+  (0.2ms) SAVEPOINT active_record_1
855
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.403134"], ["updated_at", "2016-04-17 10:52:54.403134"]]
856
+ 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-04-17 10:52:54.402479"], ["receiver_id", 2], ["created_at", "2016-04-17 10:52:54.404360"]]
857
+  (0.2ms) RELEASE SAVEPOINT active_record_1
858
+  (0.2ms) SAVEPOINT active_record_1
859
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 2]]
860
+  (0.2ms) RELEASE SAVEPOINT active_record_1
861
+  (0.2ms) ROLLBACK
862
+  (0.2ms) BEGIN
863
+  (0.1ms) COMMIT
864
+  (0.2ms) BEGIN
865
+  (0.2ms) ROLLBACK
866
+  (0.2ms) BEGIN
867
+  (0.1ms) COMMIT
868
+  (0.2ms) BEGIN
869
+  (0.2ms) ROLLBACK
870
+  (0.2ms) BEGIN
871
+  (0.2ms) COMMIT
872
+  (0.2ms) BEGIN
873
+  (0.2ms) SAVEPOINT active_record_1
874
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.422470"], ["updated_at", "2016-04-17 10:52:54.422470"]]
875
+ 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", 3], ["created_at", "2016-04-17 10:52:54.423924"]]
876
+  (0.2ms) RELEASE SAVEPOINT active_record_1
877
+  (0.2ms) SAVEPOINT active_record_1
878
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.426909"], ["updated_at", "2016-04-17 10:52:54.426909"]]
879
+ 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-04-17 10:52:54.426320"], ["receiver_id", 4], ["created_at", "2016-04-17 10:52:54.427999"]]
880
+  (0.2ms) RELEASE SAVEPOINT active_record_1
881
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
882
+  (0.2ms) ROLLBACK
883
+  (0.2ms) BEGIN
884
+  (0.1ms) COMMIT
885
+  (0.1ms) BEGIN
886
+  (0.2ms) SAVEPOINT active_record_1
887
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.435566"], ["updated_at", "2016-04-17 10:52:54.435566"]]
888
+ 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", 5], ["created_at", "2016-04-17 10:52:54.436772"]]
889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
890
+  (0.3ms) SAVEPOINT active_record_1
891
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-17 10:52:54.438636"], ["id", 5]]
892
+  (0.2ms) RELEASE SAVEPOINT active_record_1
893
+  (0.2ms) ROLLBACK
894
+  (0.2ms) BEGIN
895
+  (0.2ms) COMMIT
896
+  (0.2ms) BEGIN
897
+  (0.6ms) ROLLBACK
898
+  (0.2ms) BEGIN
899
+  (0.1ms) COMMIT
900
+  (0.1ms) BEGIN
901
+  (0.2ms) SAVEPOINT active_record_1
902
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.455469"], ["updated_at", "2016-04-17 10:52:54.455469"]]
903
+  (0.2ms) RELEASE SAVEPOINT active_record_1
904
+  (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"]]
905
+  (0.2ms) SAVEPOINT active_record_1
906
+ 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-04-17 10:52:54.469307"]]
907
+  (0.2ms) RELEASE SAVEPOINT active_record_1
908
+  (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"]]
909
+  (0.3ms) ROLLBACK
910
+  (0.6ms) BEGIN
911
+  (0.5ms) COMMIT
912
+  (0.3ms) BEGIN
913
+  (0.4ms) SAVEPOINT active_record_1
914
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 10:52:54.480124"], ["updated_at", "2016-04-17 10:52:54.480124"]]
915
+  (0.5ms) RELEASE SAVEPOINT active_record_1
916
+  (0.2ms) SAVEPOINT active_record_1
917
+ 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-04-17 10:52:54.484758"]]
918
+  (0.2ms) RELEASE SAVEPOINT active_record_1
919
+ 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"]]
920
+  (0.2ms) ROLLBACK
921
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
922
+  (1.1ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
923
+  (2.2ms)  SELECT schemaname || '.' || tablename
924
+ FROM pg_tables
925
+ WHERE
926
+ tablename !~ '_prt_' AND
927
+ tablename <> 'schema_migrations' AND
928
+ schemaname = ANY (current_schemas(false))
929
+ 
930
+  (2.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
931
+  (8.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
932
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
933
+  (0.5ms) BEGIN
934
+  (0.3ms) COMMIT
935
+  (0.3ms) BEGIN
936
+  (0.3ms) SAVEPOINT active_record_1
937
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.245475"], ["updated_at", "2016-04-17 11:33:21.245475"]]
938
+ 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", 1], ["created_at", "2016-04-17 11:33:21.250192"]]
939
+  (0.2ms) RELEASE SAVEPOINT active_record_1
940
+  (0.2ms) ROLLBACK
941
+  (0.1ms) BEGIN
942
+  (0.2ms) COMMIT
943
+  (0.1ms) BEGIN
944
+  (0.2ms) SAVEPOINT active_record_1
945
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.255840"], ["updated_at", "2016-04-17 11:33:21.255840"]]
946
+ 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-04-17 11:33:21.257084"]]
947
+  (0.2ms) RELEASE SAVEPOINT active_record_1
948
+  (0.2ms) SAVEPOINT active_record_1
949
+ SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-17 11:33:21.260876"], ["id", 2]]
950
+  (0.2ms) RELEASE SAVEPOINT active_record_1
951
+  (0.2ms) ROLLBACK
952
+  (0.2ms) BEGIN
953
+  (0.2ms) COMMIT
954
+  (0.2ms) BEGIN
955
+  (0.3ms) ROLLBACK
956
+  (0.2ms) BEGIN
957
+  (0.2ms) COMMIT
958
+  (0.1ms) BEGIN
959
+  (0.2ms) ROLLBACK
960
+  (0.2ms) BEGIN
961
+  (0.2ms) COMMIT
962
+  (0.2ms) BEGIN
963
+  (0.2ms) SAVEPOINT active_record_1
964
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.275803"], ["updated_at", "2016-04-17 11:33:21.275803"]]
965
+ 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-04-17 11:33:21.277075"]]
966
+  (0.2ms) RELEASE SAVEPOINT active_record_1
967
+  (0.2ms) SAVEPOINT active_record_1
968
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.279822"], ["updated_at", "2016-04-17 11:33:21.279822"]]
969
+ 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-04-17 11:33:21.279109"], ["receiver_id", 4], ["created_at", "2016-04-17 11:33:21.281375"]]
970
+  (0.2ms) RELEASE SAVEPOINT active_record_1
971
+ Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
972
+  (0.2ms) ROLLBACK
973
+  (0.5ms) BEGIN
974
+  (0.4ms) COMMIT
975
+  (0.3ms) BEGIN
976
+  (0.5ms) SAVEPOINT active_record_1
977
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.296077"], ["updated_at", "2016-04-17 11:33:21.296077"]]
978
+ 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-04-17 11:33:21.294816"], ["receiver_id", 5], ["created_at", "2016-04-17 11:33:21.299232"]]
979
+  (0.2ms) RELEASE SAVEPOINT active_record_1
980
+  (0.2ms) SAVEPOINT active_record_1
981
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 5]]
982
+  (0.2ms) RELEASE SAVEPOINT active_record_1
983
+  (0.2ms) ROLLBACK
984
+  (0.2ms) BEGIN
985
+  (0.2ms) COMMIT
986
+  (0.2ms) BEGIN
987
+  (0.2ms) SAVEPOINT active_record_1
988
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.307770"], ["updated_at", "2016-04-17 11:33:21.307770"]]
989
+  (0.2ms) RELEASE SAVEPOINT active_record_1
990
+  (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"]]
991
+  (0.3ms) SAVEPOINT active_record_1
992
+ 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-04-17 11:33:21.324092"]]
993
+  (0.2ms) RELEASE SAVEPOINT active_record_1
994
+  (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"]]
995
+  (0.2ms) ROLLBACK
996
+  (0.4ms) BEGIN
997
+  (0.5ms) COMMIT
998
+  (0.7ms) BEGIN
999
+  (0.5ms) SAVEPOINT active_record_1
1000
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:33:21.334806"], ["updated_at", "2016-04-17 11:33:21.334806"]]
1001
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1002
+  (0.2ms) SAVEPOINT active_record_1
1003
+ 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", 7], ["receiver_type", "User"], ["created_at", "2016-04-17 11:33:21.339721"]]
1004
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1005
+ 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"]]
1006
+  (0.3ms) ROLLBACK
1007
+  (0.2ms) BEGIN
1008
+  (0.1ms) COMMIT
1009
+  (0.2ms) BEGIN
1010
+  (0.3ms) ROLLBACK
1011
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1012
+  (0.7ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1013
+  (2.3ms)  SELECT schemaname || '.' || tablename
1014
+ FROM pg_tables
1015
+ WHERE
1016
+ tablename !~ '_prt_' AND
1017
+ tablename <> 'schema_migrations' AND
1018
+ schemaname = ANY (current_schemas(false))
1019
+ 
1020
+  (2.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1021
+  (6.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1022
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1023
+  (0.5ms) BEGIN
1024
+  (0.4ms) COMMIT
1025
+  (0.3ms) BEGIN
1026
+  (0.5ms) ROLLBACK
1027
+  (0.3ms) BEGIN
1028
+  (0.2ms) COMMIT
1029
+  (0.2ms) BEGIN
1030
+  (0.3ms) SAVEPOINT active_record_1
1031
+ SQL (1.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.664363"], ["updated_at", "2016-04-17 11:35:14.664363"]]
1032
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1033
+  (0.3ms) SAVEPOINT active_record_1
1034
+ 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-04-17 11:35:14.677614"]]
1035
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1036
+ 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", 1], ["receiver_type", "User"]]
1037
+  (0.2ms) ROLLBACK
1038
+  (0.2ms) BEGIN
1039
+  (0.2ms) COMMIT
1040
+  (0.2ms) BEGIN
1041
+  (0.2ms) SAVEPOINT active_record_1
1042
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.697057"], ["updated_at", "2016-04-17 11:35:14.697057"]]
1043
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1044
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
1045
+  (0.2ms) SAVEPOINT active_record_1
1046
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-17 11:35:14.704608"]]
1047
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1048
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
1049
+  (0.2ms) ROLLBACK
1050
+  (0.2ms) BEGIN
1051
+  (0.2ms) COMMIT
1052
+  (0.2ms) BEGIN
1053
+  (0.2ms) SAVEPOINT active_record_1
1054
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.711976"], ["updated_at", "2016-04-17 11:35:14.711976"]]
1055
+ 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-04-17 11:35:14.713369"]]
1056
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1057
+  (0.2ms) ROLLBACK
1058
+  (0.2ms) BEGIN
1059
+  (0.2ms) COMMIT
1060
+  (0.2ms) BEGIN
1061
+  (0.2ms) SAVEPOINT active_record_1
1062
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.719968"], ["updated_at", "2016-04-17 11:35:14.719968"]]
1063
+ 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", 4], ["created_at", "2016-04-17 11:35:14.721878"]]
1064
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1065
+  (0.2ms) SAVEPOINT active_record_1
1066
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.726424"], ["updated_at", "2016-04-17 11:35:14.726424"]]
1067
+ 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-04-17 11:35:14.725323"], ["receiver_id", 5], ["created_at", "2016-04-17 11:35:14.728330"]]
1068
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1069
+ Hertz::Notification Load (1.0ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1070
+  (0.5ms) ROLLBACK
1071
+  (0.2ms) BEGIN
1072
+  (0.2ms) COMMIT
1073
+  (0.2ms) BEGIN
1074
+  (0.3ms) ROLLBACK
1075
+  (0.2ms) BEGIN
1076
+  (0.2ms) COMMIT
1077
+  (0.2ms) BEGIN
1078
+  (0.3ms) ROLLBACK
1079
+  (0.2ms) BEGIN
1080
+  (0.2ms) COMMIT
1081
+  (0.2ms) BEGIN
1082
+  (0.2ms) SAVEPOINT active_record_1
1083
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.746620"], ["updated_at", "2016-04-17 11:35:14.746620"]]
1084
+ 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", 6], ["created_at", "2016-04-17 11:35:14.748290"]]
1085
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1086
+  (0.2ms) SAVEPOINT active_record_1
1087
+ SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-17 11:35:14.751151"], ["id", 6]]
1088
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1089
+  (0.2ms) ROLLBACK
1090
+  (0.2ms) BEGIN
1091
+  (0.2ms) COMMIT
1092
+  (0.2ms) BEGIN
1093
+  (0.6ms) SAVEPOINT active_record_1
1094
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:35:14.766768"], ["updated_at", "2016-04-17 11:35:14.766768"]]
1095
+ 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-04-17 11:35:14.765176"], ["receiver_id", 7], ["created_at", "2016-04-17 11:35:14.769760"]]
1096
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1097
+  (0.1ms) SAVEPOINT active_record_1
1098
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
1099
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1100
+  (0.2ms) ROLLBACK
1101
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1102
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1103
+  (2.0ms)  SELECT schemaname || '.' || tablename
1104
+ FROM pg_tables
1105
+ WHERE
1106
+ tablename !~ '_prt_' AND
1107
+ tablename <> 'schema_migrations' AND
1108
+ schemaname = ANY (current_schemas(false))
1109
+ 
1110
+  (2.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1111
+  (7.3ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1112
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1113
+  (0.2ms) BEGIN
1114
+  (0.2ms) COMMIT
1115
+  (0.2ms) BEGIN
1116
+  (0.5ms) ROLLBACK
1117
+  (0.3ms) BEGIN
1118
+  (0.1ms) COMMIT
1119
+  (0.2ms) BEGIN
1120
+  (0.9ms) SAVEPOINT active_record_1
1121
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.512013"], ["updated_at", "2016-04-17 11:39:03.512013"]]
1122
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1123
+  (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"]]
1124
+  (0.2ms) SAVEPOINT active_record_1
1125
+ 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-04-17 11:39:03.544066"]]
1126
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1127
+  (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"]]
1128
+  (0.4ms) ROLLBACK
1129
+  (0.3ms) BEGIN
1130
+  (0.3ms) COMMIT
1131
+  (0.1ms) BEGIN
1132
+  (0.1ms) SAVEPOINT active_record_1
1133
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.552766"], ["updated_at", "2016-04-17 11:39:03.552766"]]
1134
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1135
+  (0.2ms) SAVEPOINT active_record_1
1136
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-17 11:39:03.556754"]]
1137
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1138
+ 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", 2], ["receiver_type", "User"]]
1139
+  (0.7ms) ROLLBACK
1140
+  (0.1ms) BEGIN
1141
+  (0.1ms) COMMIT
1142
+  (0.1ms) BEGIN
1143
+  (0.2ms) SAVEPOINT active_record_1
1144
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.579795"], ["updated_at", "2016-04-17 11:39:03.579795"]]
1145
+ 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-04-17 11:39:03.581408"]]
1146
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1147
+  (0.1ms) ROLLBACK
1148
+  (0.1ms) BEGIN
1149
+  (0.6ms) COMMIT
1150
+  (1.1ms) BEGIN
1151
+  (0.4ms) ROLLBACK
1152
+  (0.2ms) BEGIN
1153
+  (0.2ms) COMMIT
1154
+  (0.1ms) BEGIN
1155
+  (0.2ms) SAVEPOINT active_record_1
1156
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.600224"], ["updated_at", "2016-04-17 11:39:03.600224"]]
1157
+ 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-04-17 11:39:03.602450"]]
1158
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1159
+  (0.2ms) SAVEPOINT active_record_1
1160
+ SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-17 11:39:03.605606"], ["id", 4]]
1161
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1162
+  (0.2ms) ROLLBACK
1163
+  (0.5ms) BEGIN
1164
+  (1.8ms) COMMIT
1165
+  (0.4ms) BEGIN
1166
+  (0.5ms) ROLLBACK
1167
+  (0.3ms) BEGIN
1168
+  (0.2ms) COMMIT
1169
+  (0.2ms) BEGIN
1170
+  (0.4ms) SAVEPOINT active_record_1
1171
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.635119"], ["updated_at", "2016-04-17 11:39:03.635119"]]
1172
+ 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-04-17 11:39:03.633551"], ["receiver_id", 5], ["created_at", "2016-04-17 11:39:03.637238"]]
1173
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1174
+  (0.5ms) SAVEPOINT active_record_1
1175
+ SQL (1.0ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 5]]
1176
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1177
+  (0.4ms) ROLLBACK
1178
+  (1.2ms) BEGIN
1179
+  (0.5ms) COMMIT
1180
+  (0.4ms) BEGIN
1181
+  (0.6ms) SAVEPOINT active_record_1
1182
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.660091"], ["updated_at", "2016-04-17 11:39:03.660091"]]
1183
+ 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", 6], ["created_at", "2016-04-17 11:39:03.663108"]]
1184
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1185
+  (0.5ms) SAVEPOINT active_record_1
1186
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-17 11:39:03.669311"], ["updated_at", "2016-04-17 11:39:03.669311"]]
1187
+ 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-04-17 11:39:03.668186"], ["receiver_id", 7], ["created_at", "2016-04-17 11:39:03.671419"]]
1188
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1189
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1190
+  (0.4ms) ROLLBACK
1191
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1192
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1193
+  (1.1ms)  SELECT schemaname || '.' || tablename
1194
+ FROM pg_tables
1195
+ WHERE
1196
+ tablename !~ '_prt_' AND
1197
+ tablename <> 'schema_migrations' AND
1198
+ schemaname = ANY (current_schemas(false))
1199
+ 
1200
+  (1.9ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1201
+  (6.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1202
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1203
+  (0.5ms) BEGIN
1204
+  (0.2ms) COMMIT
1205
+  (0.2ms) BEGIN
1206
+  (0.2ms) SAVEPOINT active_record_1
1207
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.587601"], ["updated_at", "2016-04-18 10:04:31.587601"]]
1208
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1209
+  (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"]]
1210
+  (0.2ms) SAVEPOINT active_record_1
1211
+ 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-04-18 10:04:31.616159"]]
1212
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1213
+  (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"]]
1214
+  (0.2ms) ROLLBACK
1215
+  (0.2ms) BEGIN
1216
+  (0.3ms) COMMIT
1217
+  (0.2ms) BEGIN
1218
+  (0.2ms) SAVEPOINT active_record_1
1219
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.623337"], ["updated_at", "2016-04-18 10:04:31.623337"]]
1220
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1221
+  (0.2ms) SAVEPOINT active_record_1
1222
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-18 10:04:31.626131"]]
1223
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1224
+ 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", 2], ["receiver_type", "User"]]
1225
+  (0.2ms) ROLLBACK
1226
+  (0.2ms) BEGIN
1227
+  (0.2ms) COMMIT
1228
+  (0.2ms) BEGIN
1229
+  (0.3ms) SAVEPOINT active_record_1
1230
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.644885"], ["updated_at", "2016-04-18 10:04:31.644885"]]
1231
+ 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", 3], ["created_at", "2016-04-18 10:04:31.646748"]]
1232
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1233
+  (0.3ms) ROLLBACK
1234
+  (0.2ms) BEGIN
1235
+  (0.6ms) COMMIT
1236
+  (0.2ms) BEGIN
1237
+  (0.3ms) ROLLBACK
1238
+  (0.5ms) BEGIN
1239
+  (0.5ms) COMMIT
1240
+  (0.4ms) BEGIN
1241
+  (0.5ms) SAVEPOINT active_record_1
1242
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.662218"], ["updated_at", "2016-04-18 10:04:31.662218"]]
1243
+ 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-04-18 10:04:31.661070"], ["receiver_id", 4], ["created_at", "2016-04-18 10:04:31.664432"]]
1244
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1245
+  (0.2ms) SAVEPOINT active_record_1
1246
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
1247
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1248
+  (0.2ms) ROLLBACK
1249
+  (0.2ms) BEGIN
1250
+  (0.2ms) COMMIT
1251
+  (0.2ms) BEGIN
1252
+  (0.3ms) SAVEPOINT active_record_1
1253
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.678326"], ["updated_at", "2016-04-18 10:04:31.678326"]]
1254
+ 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-04-18 10:04:31.679993"]]
1255
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1256
+  (0.2ms) SAVEPOINT active_record_1
1257
+ SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 10:04:31.682872"], ["id", 5]]
1258
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1259
+  (0.4ms) ROLLBACK
1260
+  (0.5ms) BEGIN
1261
+  (0.5ms) COMMIT
1262
+  (1.0ms) BEGIN
1263
+  (0.4ms) ROLLBACK
1264
+  (0.2ms) BEGIN
1265
+  (0.2ms) COMMIT
1266
+  (0.2ms) BEGIN
1267
+  (0.2ms) SAVEPOINT active_record_1
1268
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.699599"], ["updated_at", "2016-04-18 10:04:31.699599"]]
1269
+ 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", 6], ["created_at", "2016-04-18 10:04:31.701181"]]
1270
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1271
+  (0.2ms) SAVEPOINT active_record_1
1272
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 10:04:31.704562"], ["updated_at", "2016-04-18 10:04:31.704562"]]
1273
+ 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-04-18 10:04:31.703758"], ["receiver_id", 7], ["created_at", "2016-04-18 10:04:31.705826"]]
1274
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1275
+ Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1276
+  (0.2ms) ROLLBACK
1277
+  (0.2ms) BEGIN
1278
+  (0.2ms) COMMIT
1279
+  (0.1ms) BEGIN
1280
+  (0.6ms) ROLLBACK
1281
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
1282
+  (0.6ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1283
+  (1.9ms)  SELECT schemaname || '.' || tablename
1284
+ FROM pg_tables
1285
+ WHERE
1286
+ tablename !~ '_prt_' AND
1287
+ tablename <> 'schema_migrations' AND
1288
+ schemaname = ANY (current_schemas(false))
1289
+ 
1290
+  (1.3ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1291
+  (10.6ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1292
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1293
+  (0.2ms) BEGIN
1294
+  (0.2ms) COMMIT
1295
+  (0.2ms) BEGIN
1296
+  (0.3ms) SAVEPOINT active_record_1
1297
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.178969"], ["updated_at", "2016-04-18 12:08:52.178969"]]
1298
+ 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", 1], ["created_at", "2016-04-18 12:08:52.183591"]]
1299
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1300
+  (0.4ms) ROLLBACK
1301
+  (0.2ms) BEGIN
1302
+  (0.2ms) COMMIT
1303
+  (0.2ms) BEGIN
1304
+  (0.2ms) SAVEPOINT active_record_1
1305
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.190476"], ["updated_at", "2016-04-18 12:08:52.190476"]]
1306
+ 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", 2], ["created_at", "2016-04-18 12:08:52.191910"]]
1307
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1308
+  (0.2ms) SAVEPOINT active_record_1
1309
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.194890"], ["updated_at", "2016-04-18 12:08:52.194890"]]
1310
+ 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-04-18 12:08:52.194205"], ["receiver_id", 3], ["created_at", "2016-04-18 12:08:52.196035"]]
1311
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1312
+ Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1313
+  (0.3ms) ROLLBACK
1314
+  (0.2ms) BEGIN
1315
+  (0.2ms) COMMIT
1316
+  (0.3ms) BEGIN
1317
+  (0.2ms) SAVEPOINT active_record_1
1318
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.204147"], ["updated_at", "2016-04-18 12:08:52.204147"]]
1319
+ 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-04-18 12:08:52.203467"], ["receiver_id", 4], ["created_at", "2016-04-18 12:08:52.205553"]]
1320
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1321
+  (0.2ms) SAVEPOINT active_record_1
1322
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
1323
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1324
+  (0.3ms) ROLLBACK
1325
+  (0.2ms) BEGIN
1326
+  (0.2ms) COMMIT
1327
+  (0.2ms) BEGIN
1328
+  (0.2ms) SAVEPOINT active_record_1
1329
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.222708"], ["updated_at", "2016-04-18 12:08:52.222708"]]
1330
+ SQL (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-04-18 12:08:52.226024"]]
1331
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1332
+  (0.4ms) SAVEPOINT active_record_1
1333
+ SQL (0.5ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:08:52.231677"], ["id", 5]]
1334
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1335
+  (0.2ms) ROLLBACK
1336
+  (0.5ms) BEGIN
1337
+  (0.2ms) COMMIT
1338
+  (0.2ms) BEGIN
1339
+  (0.2ms) ROLLBACK
1340
+  (0.2ms) BEGIN
1341
+  (0.2ms) COMMIT
1342
+  (0.3ms) BEGIN
1343
+  (0.2ms) ROLLBACK
1344
+  (0.2ms) BEGIN
1345
+  (0.2ms) COMMIT
1346
+  (0.2ms) BEGIN
1347
+  (0.4ms) ROLLBACK
1348
+  (0.4ms) BEGIN
1349
+  (0.4ms) COMMIT
1350
+  (0.7ms) BEGIN
1351
+  (0.4ms) SAVEPOINT active_record_1
1352
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.262161"], ["updated_at", "2016-04-18 12:08:52.262161"]]
1353
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1354
+  (0.2ms) SAVEPOINT active_record_1
1355
+ 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-04-18 12:08:52.266714"]]
1356
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1357
+ 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"]]
1358
+  (0.3ms) ROLLBACK
1359
+  (0.6ms) BEGIN
1360
+  (0.4ms) COMMIT
1361
+  (0.3ms) BEGIN
1362
+  (0.5ms) SAVEPOINT active_record_1
1363
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:08:52.294059"], ["updated_at", "2016-04-18 12:08:52.294059"]]
1364
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1365
+  (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"]]
1366
+  (0.3ms) SAVEPOINT active_record_1
1367
+ 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-04-18 12:08:52.300754"]]
1368
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1369
+  (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"]]
1370
+  (0.3ms) ROLLBACK
1371
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1372
+  (0.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1373
+  (1.5ms)  SELECT schemaname || '.' || tablename
1374
+ FROM pg_tables
1375
+ WHERE
1376
+ tablename !~ '_prt_' AND
1377
+ tablename <> 'schema_migrations' AND
1378
+ schemaname = ANY (current_schemas(false))
1379
+ 
1380
+  (1.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1381
+  (6.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1382
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1383
+  (0.5ms) BEGIN
1384
+  (0.2ms) COMMIT
1385
+  (0.2ms) BEGIN
1386
+  (0.4ms) SAVEPOINT active_record_1
1387
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.692352"], ["updated_at", "2016-04-18 12:09:10.692352"]]
1388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1389
+  (0.3ms) SAVEPOINT active_record_1
1390
+ 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-04-18 12:09:10.709903"]]
1391
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1392
+ 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", 1], ["receiver_type", "User"]]
1393
+  (0.3ms) ROLLBACK
1394
+  (0.2ms) BEGIN
1395
+  (0.2ms) COMMIT
1396
+  (0.2ms) BEGIN
1397
+  (0.2ms) SAVEPOINT active_record_1
1398
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.727430"], ["updated_at", "2016-04-18 12:09:10.727430"]]
1399
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1400
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
1401
+  (0.3ms) SAVEPOINT active_record_1
1402
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-18 12:09:10.733837"]]
1403
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1404
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
1405
+  (0.2ms) ROLLBACK
1406
+  (0.2ms) BEGIN
1407
+  (0.2ms) COMMIT
1408
+  (0.3ms) BEGIN
1409
+  (0.3ms) ROLLBACK
1410
+  (0.2ms) BEGIN
1411
+  (0.2ms) COMMIT
1412
+  (0.2ms) BEGIN
1413
+  (0.6ms) SAVEPOINT active_record_1
1414
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.765282"], ["updated_at", "2016-04-18 12:09:10.765282"]]
1415
+ 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", 3], ["created_at", "2016-04-18 12:09:10.768412"]]
1416
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1417
+  (0.2ms) ROLLBACK
1418
+  (0.2ms) BEGIN
1419
+  (0.2ms) COMMIT
1420
+  (0.2ms) BEGIN
1421
+  (0.2ms) ROLLBACK
1422
+  (0.3ms) BEGIN
1423
+  (0.2ms) COMMIT
1424
+  (0.2ms) BEGIN
1425
+  (0.2ms) SAVEPOINT active_record_1
1426
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.779024"], ["updated_at", "2016-04-18 12:09:10.779024"]]
1427
+ 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-04-18 12:09:10.780791"]]
1428
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1429
+  (0.2ms) SAVEPOINT active_record_1
1430
+ SQL (0.9ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:09:10.783731"], ["id", 4]]
1431
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1432
+  (0.3ms) ROLLBACK
1433
+  (0.3ms) BEGIN
1434
+  (0.3ms) COMMIT
1435
+  (0.2ms) BEGIN
1436
+  (0.2ms) ROLLBACK
1437
+  (0.2ms) BEGIN
1438
+  (0.3ms) COMMIT
1439
+  (0.2ms) BEGIN
1440
+  (0.2ms) SAVEPOINT active_record_1
1441
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.806738"], ["updated_at", "2016-04-18 12:09:10.806738"]]
1442
+ 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", 5], ["created_at", "2016-04-18 12:09:10.808206"]]
1443
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1444
+  (0.2ms) SAVEPOINT active_record_1
1445
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.812123"], ["updated_at", "2016-04-18 12:09:10.812123"]]
1446
+ 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-04-18 12:09:10.811466"], ["receiver_id", 6], ["created_at", "2016-04-18 12:09:10.813598"]]
1447
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1448
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1449
+  (0.3ms) ROLLBACK
1450
+  (0.1ms) BEGIN
1451
+  (0.2ms) COMMIT
1452
+  (0.2ms) BEGIN
1453
+  (0.2ms) SAVEPOINT active_record_1
1454
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:10.823727"], ["updated_at", "2016-04-18 12:09:10.823727"]]
1455
+ SQL (0.7ms) 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-04-18 12:09:10.822737"], ["receiver_id", 7], ["created_at", "2016-04-18 12:09:10.827631"]]
1456
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1457
+  (0.2ms) SAVEPOINT active_record_1
1458
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
1459
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1460
+  (0.2ms) ROLLBACK
1461
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1462
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1463
+  (2.1ms)  SELECT schemaname || '.' || tablename
1464
+ FROM pg_tables
1465
+ WHERE
1466
+ tablename !~ '_prt_' AND
1467
+ tablename <> 'schema_migrations' AND
1468
+ schemaname = ANY (current_schemas(false))
1469
+ 
1470
+  (3.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1471
+  (5.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1472
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1473
+  (0.2ms) BEGIN
1474
+  (0.1ms) COMMIT
1475
+  (0.1ms) BEGIN
1476
+  (0.4ms) ROLLBACK
1477
+  (0.2ms) BEGIN
1478
+  (0.2ms) COMMIT
1479
+  (0.2ms) BEGIN
1480
+  (0.5ms) SAVEPOINT active_record_1
1481
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.408793"], ["updated_at", "2016-04-18 12:09:28.408793"]]
1482
+ 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", 1], ["created_at", "2016-04-18 12:09:28.413842"]]
1483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1484
+  (0.2ms) ROLLBACK
1485
+  (0.2ms) BEGIN
1486
+  (0.1ms) COMMIT
1487
+  (0.2ms) BEGIN
1488
+  (0.3ms) SAVEPOINT active_record_1
1489
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.421350"], ["updated_at", "2016-04-18 12:09:28.421350"]]
1490
+ 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-04-18 12:09:28.420351"], ["receiver_id", 2], ["created_at", "2016-04-18 12:09:28.423869"]]
1491
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1492
+  (0.5ms) SAVEPOINT active_record_1
1493
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 2]]
1494
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1495
+  (0.2ms) ROLLBACK
1496
+  (0.2ms) BEGIN
1497
+  (0.1ms) COMMIT
1498
+  (0.1ms) BEGIN
1499
+  (0.2ms) SAVEPOINT active_record_1
1500
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.447168"], ["updated_at", "2016-04-18 12:09:28.447168"]]
1501
+ 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-04-18 12:09:28.448681"]]
1502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1503
+  (0.3ms) SAVEPOINT active_record_1
1504
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.452585"], ["updated_at", "2016-04-18 12:09:28.452585"]]
1505
+ 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-04-18 12:09:28.451568"], ["receiver_id", 4], ["created_at", "2016-04-18 12:09:28.454585"]]
1506
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1507
+ Hertz::Notification Load (1.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1508
+  (0.5ms) ROLLBACK
1509
+  (0.3ms) BEGIN
1510
+  (0.2ms) COMMIT
1511
+  (0.2ms) BEGIN
1512
+  (0.2ms) SAVEPOINT active_record_1
1513
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.470208"], ["updated_at", "2016-04-18 12:09:28.470208"]]
1514
+ 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-04-18 12:09:28.472009"]]
1515
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1516
+  (0.1ms) SAVEPOINT active_record_1
1517
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:09:28.474720"], ["id", 5]]
1518
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1519
+  (0.2ms) ROLLBACK
1520
+  (0.1ms) BEGIN
1521
+  (0.2ms) COMMIT
1522
+  (0.1ms) BEGIN
1523
+  (0.2ms) ROLLBACK
1524
+  (0.1ms) BEGIN
1525
+  (0.1ms) COMMIT
1526
+  (0.1ms) BEGIN
1527
+  (0.1ms) ROLLBACK
1528
+  (0.1ms) BEGIN
1529
+  (0.2ms) COMMIT
1530
+  (0.2ms) BEGIN
1531
+  (0.1ms) SAVEPOINT active_record_1
1532
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.487577"], ["updated_at", "2016-04-18 12:09:28.487577"]]
1533
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1534
+  (0.2ms) SAVEPOINT active_record_1
1535
+ SQL (0.7ms) 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-04-18 12:09:28.492252"]]
1536
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1537
+ 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", 6], ["receiver_type", "User"]]
1538
+  (0.2ms) ROLLBACK
1539
+  (0.2ms) BEGIN
1540
+  (0.1ms) COMMIT
1541
+  (0.1ms) BEGIN
1542
+  (0.2ms) SAVEPOINT active_record_1
1543
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:09:28.518315"], ["updated_at", "2016-04-18 12:09:28.518315"]]
1544
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1545
+  (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"]]
1546
+  (0.3ms) SAVEPOINT active_record_1
1547
+ 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", 7], ["receiver_type", "User"], ["created_at", "2016-04-18 12:09:28.523950"]]
1548
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1549
+  (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"]]
1550
+  (0.3ms) ROLLBACK
1551
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1552
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1553
+  (2.1ms)  SELECT schemaname || '.' || tablename
1554
+ FROM pg_tables
1555
+ WHERE
1556
+ tablename !~ '_prt_' AND
1557
+ tablename <> 'schema_migrations' AND
1558
+ schemaname = ANY (current_schemas(false))
1559
+ 
1560
+  (1.1ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1561
+  (6.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1562
+  (0.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1563
+  (0.2ms) BEGIN
1564
+  (0.2ms) COMMIT
1565
+  (0.1ms) BEGIN
1566
+  (0.4ms) ROLLBACK
1567
+  (0.2ms) BEGIN
1568
+  (0.2ms) COMMIT
1569
+  (0.1ms) BEGIN
1570
+  (0.6ms) ROLLBACK
1571
+  (0.3ms) BEGIN
1572
+  (0.3ms) COMMIT
1573
+  (0.2ms) BEGIN
1574
+  (0.2ms) SAVEPOINT active_record_1
1575
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.878406"], ["updated_at", "2016-04-18 12:14:37.878406"]]
1576
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1577
+  (0.5ms) SAVEPOINT active_record_1
1578
+ SQL (1.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-04-18 12:14:37.891344"]]
1579
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1580
+ 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", 1], ["receiver_type", "User"]]
1581
+  (0.2ms) ROLLBACK
1582
+  (0.2ms) BEGIN
1583
+  (0.1ms) COMMIT
1584
+  (0.2ms) BEGIN
1585
+  (0.2ms) SAVEPOINT active_record_1
1586
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.917550"], ["updated_at", "2016-04-18 12:14:37.917550"]]
1587
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1588
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
1589
+  (0.2ms) SAVEPOINT active_record_1
1590
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-18 12:14:37.925808"]]
1591
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1592
+  (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"]]
1593
+  (0.2ms) ROLLBACK
1594
+  (0.2ms) BEGIN
1595
+  (0.2ms) COMMIT
1596
+  (0.2ms) BEGIN
1597
+  (0.2ms) SAVEPOINT active_record_1
1598
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.933665"], ["updated_at", "2016-04-18 12:14:37.933665"]]
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", 3], ["created_at", "2016-04-18 12:14:37.934983"]]
1600
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1601
+  (0.2ms) ROLLBACK
1602
+  (0.2ms) BEGIN
1603
+  (0.1ms) COMMIT
1604
+  (0.1ms) BEGIN
1605
+  (0.3ms) ROLLBACK
1606
+  (0.2ms) BEGIN
1607
+  (0.2ms) COMMIT
1608
+  (0.2ms) BEGIN
1609
+  (0.3ms) SAVEPOINT active_record_1
1610
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.946029"], ["updated_at", "2016-04-18 12:14:37.946029"]]
1611
+ 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-04-18 12:14:37.945125"], ["receiver_id", 4], ["created_at", "2016-04-18 12:14:37.948132"]]
1612
+  (0.7ms) RELEASE SAVEPOINT active_record_1
1613
+  (0.5ms) SAVEPOINT active_record_1
1614
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
1615
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1616
+  (0.2ms) ROLLBACK
1617
+  (0.2ms) BEGIN
1618
+  (0.2ms) COMMIT
1619
+  (0.2ms) BEGIN
1620
+  (0.2ms) SAVEPOINT active_record_1
1621
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.967932"], ["updated_at", "2016-04-18 12:14:37.967932"]]
1622
+ 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-04-18 12:14:37.969247"]]
1623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1624
+  (0.3ms) SAVEPOINT active_record_1
1625
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:14:37.972288"], ["id", 5]]
1626
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1627
+  (0.3ms) ROLLBACK
1628
+  (0.2ms) BEGIN
1629
+  (0.3ms) COMMIT
1630
+  (0.2ms) BEGIN
1631
+  (0.3ms) ROLLBACK
1632
+  (0.2ms) BEGIN
1633
+  (0.3ms) COMMIT
1634
+  (1.2ms) BEGIN
1635
+  (0.6ms) SAVEPOINT active_record_1
1636
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.987417"], ["updated_at", "2016-04-18 12:14:37.987417"]]
1637
+ 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", 6], ["created_at", "2016-04-18 12:14:37.991028"]]
1638
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1639
+  (0.2ms) SAVEPOINT active_record_1
1640
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES ($1, $2) RETURNING "id" [["created_at", "2016-04-18 12:14:37.995537"], ["updated_at", "2016-04-18 12:14:37.995537"]]
1641
+ 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-04-18 12:14:37.994897"], ["receiver_id", 7], ["created_at", "2016-04-18 12:14:37.997063"]]
1642
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1643
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1644
+  (0.2ms) ROLLBACK
1645
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1646
+  (113.2ms) DROP DATABASE IF EXISTS "hertz_test"
1647
+  (273.4ms) CREATE DATABASE "hertz_test" ENCODING = 'utf8'
1648
+ SQL (0.7ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1649
+ SQL (21.8ms) CREATE EXTENSION IF NOT EXISTS "hstore"
1650
+  (6.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) 
1651
+  (4.9ms) CREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying NOT NULL)
1652
+  (2.9ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
1653
+  (2.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1654
+  (0.4ms) SELECT version FROM "schema_migrations"
1655
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160418122437')
1656
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175358')
1657
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20160415175837')
1658
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1659
+  (0.5ms) ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL;ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL
1660
+  (1.2ms) SELECT schemaname || '.' || tablename
1661
+ FROM pg_tables
1662
+ WHERE
1663
+ tablename !~ '_prt_' AND
1664
+ tablename <> 'schema_migrations' AND
1665
+ schemaname = ANY (current_schemas(false))
1666
+
1667
+  (1.4ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1668
+  (7.7ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1669
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1670
+  (0.2ms) BEGIN
1671
+  (0.2ms) COMMIT
1672
+  (0.2ms) BEGIN
1673
+  (0.2ms) ROLLBACK
1674
+  (0.2ms) BEGIN
1675
+  (0.1ms) COMMIT
1676
+  (0.1ms) BEGIN
1677
+  (0.2ms) ROLLBACK
1678
+  (0.2ms) BEGIN
1679
+  (0.1ms) COMMIT
1680
+  (0.2ms) BEGIN
1681
+  (0.2ms) ROLLBACK
1682
+  (0.6ms) BEGIN
1683
+  (0.2ms) COMMIT
1684
+  (0.2ms) BEGIN
1685
+  (0.4ms) ROLLBACK
1686
+  (0.3ms) BEGIN
1687
+  (0.4ms) COMMIT
1688
+  (0.3ms) BEGIN
1689
+  (0.7ms) ROLLBACK
1690
+  (0.2ms) BEGIN
1691
+  (0.2ms) COMMIT
1692
+  (0.1ms) BEGIN
1693
+  (0.2ms) ROLLBACK
1694
+  (0.4ms) BEGIN
1695
+  (0.3ms) COMMIT
1696
+  (0.3ms) BEGIN
1697
+  (0.4ms) ROLLBACK
1698
+  (0.2ms) BEGIN
1699
+  (0.2ms) COMMIT
1700
+  (0.2ms) BEGIN
1701
+  (0.4ms) ROLLBACK
1702
+  (0.2ms) BEGIN
1703
+  (0.2ms) COMMIT
1704
+  (0.2ms) BEGIN
1705
+  (0.4ms) ROLLBACK
1706
+  (0.2ms) BEGIN
1707
+  (0.2ms) COMMIT
1708
+  (0.2ms) BEGIN
1709
+  (0.6ms) ROLLBACK
1710
+  (0.2ms) BEGIN
1711
+  (0.2ms) COMMIT
1712
+  (0.2ms) BEGIN
1713
+  (0.7ms) ROLLBACK
1714
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1715
+  (1.0ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1716
+  (2.4ms)  SELECT schemaname || '.' || tablename
1717
+ FROM pg_tables
1718
+ WHERE
1719
+ tablename !~ '_prt_' AND
1720
+ tablename <> 'schema_migrations' AND
1721
+ schemaname = ANY (current_schemas(false))
1722
+ 
1723
+  (1.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1724
+  (11.0ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1725
+  (1.2ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1726
+  (0.3ms) BEGIN
1727
+  (0.1ms) COMMIT
1728
+  (0.1ms) BEGIN
1729
+  (0.4ms) SAVEPOINT active_record_1
1730
+ SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "clifford_beer@nienow.com"], ["created_at", "2016-04-18 12:27:17.210690"], ["updated_at", "2016-04-18 12:27:17.210690"]]
1731
+ 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", 1], ["created_at", "2016-04-18 12:27:17.215633"]]
1732
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1733
+  (0.2ms) ROLLBACK
1734
+  (0.2ms) BEGIN
1735
+  (0.2ms) COMMIT
1736
+  (0.2ms) BEGIN
1737
+  (0.2ms) SAVEPOINT active_record_1
1738
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "uriah@schuster.name"], ["created_at", "2016-04-18 12:27:17.222789"], ["updated_at", "2016-04-18 12:27:17.222789"]]
1739
+ 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", 2], ["created_at", "2016-04-18 12:27:17.224195"]]
1740
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1741
+  (0.2ms) SAVEPOINT active_record_1
1742
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "addison@crooks.net"], ["created_at", "2016-04-18 12:27:17.227217"], ["updated_at", "2016-04-18 12:27:17.227217"]]
1743
+ 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-04-18 12:27:17.226507"], ["receiver_id", 3], ["created_at", "2016-04-18 12:27:17.228444"]]
1744
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1745
+ Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1746
+  (0.2ms) ROLLBACK
1747
+  (0.2ms) BEGIN
1748
+  (0.2ms) COMMIT
1749
+  (0.2ms) BEGIN
1750
+  (0.2ms) ROLLBACK
1751
+  (0.2ms) BEGIN
1752
+  (0.2ms) COMMIT
1753
+  (0.2ms) BEGIN
1754
+  (0.2ms) ROLLBACK
1755
+  (0.2ms) BEGIN
1756
+  (0.2ms) COMMIT
1757
+  (0.2ms) BEGIN
1758
+  (0.3ms) SAVEPOINT active_record_1
1759
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "lottie.howell@nicolahields.net"], ["created_at", "2016-04-18 12:27:17.244264"], ["updated_at", "2016-04-18 12:27:17.244264"]]
1760
+ 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", 4], ["created_at", "2016-04-18 12:27:17.245768"]]
1761
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1762
+  (0.3ms) SAVEPOINT active_record_1
1763
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:27:17.247991"], ["id", 4]]
1764
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1765
+  (0.6ms) ROLLBACK
1766
+  (0.4ms) BEGIN
1767
+  (0.3ms) COMMIT
1768
+  (0.4ms) BEGIN
1769
+  (0.3ms) SAVEPOINT active_record_1
1770
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "melany.kuhic@johns.org"], ["created_at", "2016-04-18 12:27:17.265431"], ["updated_at", "2016-04-18 12:27:17.265431"]]
1771
+ 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-04-18 12:27:17.264538"], ["receiver_id", 5], ["created_at", "2016-04-18 12:27:17.266969"]]
1772
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1773
+  (0.2ms) SAVEPOINT active_record_1
1774
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 5]]
1775
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1776
+  (0.2ms) ROLLBACK
1777
+  (0.2ms) BEGIN
1778
+  (0.2ms) COMMIT
1779
+  (0.2ms) BEGIN
1780
+
1781
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 6.3ms
1782
+  (0.3ms) ROLLBACK
1783
+  (0.3ms) BEGIN
1784
+  (0.2ms) COMMIT
1785
+  (0.3ms) BEGIN
1786
+  (0.3ms) ROLLBACK
1787
+  (0.2ms) BEGIN
1788
+  (0.2ms) COMMIT
1789
+  (0.2ms) BEGIN
1790
+  (0.4ms) ROLLBACK
1791
+  (0.4ms) BEGIN
1792
+  (0.6ms) COMMIT
1793
+  (0.2ms) BEGIN
1794
+  (0.5ms) SAVEPOINT active_record_1
1795
+ SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "rosendo@deckow.name"], ["created_at", "2016-04-18 12:27:17.462338"], ["updated_at", "2016-04-18 12:27:17.462338"]]
1796
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1797
+  (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"]]
1798
+  (0.2ms) SAVEPOINT active_record_1
1799
+ 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", 6], ["receiver_type", "User"], ["created_at", "2016-04-18 12:27:17.478464"]]
1800
+  (0.5ms) RELEASE SAVEPOINT active_record_1
1801
+  (0.6ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
1802
+  (0.3ms) ROLLBACK
1803
+  (0.3ms) BEGIN
1804
+  (0.4ms) COMMIT
1805
+  (0.4ms) BEGIN
1806
+  (0.4ms) SAVEPOINT active_record_1
1807
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jettie.moen@mayert.co"], ["created_at", "2016-04-18 12:27:17.492050"], ["updated_at", "2016-04-18 12:27:17.492050"]]
1808
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1809
+  (0.5ms) SAVEPOINT active_record_1
1810
+ 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-04-18 12:27:17.496448"]]
1811
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1812
+ Hertz::Notification Load (0.6ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
1813
+  (0.7ms) ROLLBACK
1814
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1815
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1816
+  (2.0ms)  SELECT schemaname || '.' || tablename
1817
+ FROM pg_tables
1818
+ WHERE
1819
+ tablename !~ '_prt_' AND
1820
+ tablename <> 'schema_migrations' AND
1821
+ schemaname = ANY (current_schemas(false))
1822
+ 
1823
+  (1.4ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1824
+  (10.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1825
+  (0.5ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1826
+  (0.4ms) BEGIN
1827
+  (0.2ms) COMMIT
1828
+  (0.3ms) BEGIN
1829
+  (0.4ms) SAVEPOINT active_record_1
1830
+ SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "gwen.wolff@heeltrantow.info"], ["created_at", "2016-04-18 12:28:54.961679"], ["updated_at", "2016-04-18 12:28:54.961679"]]
1831
+ 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", 1], ["created_at", "2016-04-18 12:28:54.966449"]]
1832
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1833
+  (0.3ms) ROLLBACK
1834
+  (0.2ms) BEGIN
1835
+  (0.2ms) COMMIT
1836
+  (0.2ms) BEGIN
1837
+  (0.2ms) ROLLBACK
1838
+  (0.2ms) BEGIN
1839
+  (0.1ms) COMMIT
1840
+  (0.2ms) BEGIN
1841
+  (0.3ms) ROLLBACK
1842
+  (0.3ms) BEGIN
1843
+  (0.2ms) COMMIT
1844
+  (0.2ms) BEGIN
1845
+  (0.2ms) SAVEPOINT active_record_1
1846
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jon_abshire@brownhomenick.co"], ["created_at", "2016-04-18 12:28:54.980291"], ["updated_at", "2016-04-18 12:28:54.980291"]]
1847
+ 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-04-18 12:28:54.981605"]]
1848
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1849
+  (0.2ms) SAVEPOINT active_record_1
1850
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "darwin@robertsgreen.com"], ["created_at", "2016-04-18 12:28:54.985999"], ["updated_at", "2016-04-18 12:28:54.985999"]]
1851
+ 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-04-18 12:28:54.985409"], ["receiver_id", 3], ["created_at", "2016-04-18 12:28:54.987217"]]
1852
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1853
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1854
+  (0.2ms) ROLLBACK
1855
+  (0.2ms) BEGIN
1856
+  (0.2ms) COMMIT
1857
+  (0.2ms) BEGIN
1858
+  (0.2ms) SAVEPOINT active_record_1
1859
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "maddison@gislason.org"], ["created_at", "2016-04-18 12:28:54.994824"], ["updated_at", "2016-04-18 12:28:54.994824"]]
1860
+ 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-04-18 12:28:54.994125"], ["receiver_id", 4], ["created_at", "2016-04-18 12:28:54.996014"]]
1861
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1862
+  (0.1ms) SAVEPOINT active_record_1
1863
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
1864
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1865
+  (0.4ms) ROLLBACK
1866
+  (0.4ms) BEGIN
1867
+  (0.3ms) COMMIT
1868
+  (0.3ms) BEGIN
1869
+  (0.4ms) SAVEPOINT active_record_1
1870
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "stephania@steuber.io"], ["created_at", "2016-04-18 12:28:55.012811"], ["updated_at", "2016-04-18 12:28:55.012811"]]
1871
+ 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-04-18 12:28:55.014979"]]
1872
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1873
+  (0.2ms) SAVEPOINT active_record_1
1874
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:28:55.017327"], ["id", 5]]
1875
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1876
+  (0.4ms) ROLLBACK
1877
+  (0.2ms) BEGIN
1878
+  (0.2ms) COMMIT
1879
+  (0.2ms) BEGIN
1880
+  (0.2ms) ROLLBACK
1881
+  (0.2ms) BEGIN
1882
+  (0.2ms) COMMIT
1883
+  (0.2ms) BEGIN
1884
+  (0.3ms) ROLLBACK
1885
+  (0.2ms) BEGIN
1886
+  (0.2ms) COMMIT
1887
+  (0.2ms) BEGIN
1888
+
1889
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 7.9ms
1890
+  (0.4ms) ROLLBACK
1891
+  (0.2ms) BEGIN
1892
+  (0.2ms) COMMIT
1893
+  (0.2ms) BEGIN
1894
+  (0.2ms) SAVEPOINT active_record_1
1895
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "estell@fritschwilkinson.io"], ["created_at", "2016-04-18 12:28:55.207770"], ["updated_at", "2016-04-18 12:28:55.207770"]]
1896
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1897
+  (0.6ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
1898
+  (0.7ms) SAVEPOINT active_record_1
1899
+ 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", 6], ["receiver_type", "User"], ["created_at", "2016-04-18 12:28:55.223595"]]
1900
+  (0.9ms) RELEASE SAVEPOINT active_record_1
1901
+  (0.7ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 6], ["receiver_type", "User"]]
1902
+  (0.3ms) ROLLBACK
1903
+  (0.2ms) BEGIN
1904
+  (0.2ms) COMMIT
1905
+  (0.1ms) BEGIN
1906
+  (0.1ms) SAVEPOINT active_record_1
1907
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "danny_little@crooksdibbert.org"], ["created_at", "2016-04-18 12:28:55.235362"], ["updated_at", "2016-04-18 12:28:55.235362"]]
1908
+  (0.6ms) RELEASE SAVEPOINT active_record_1
1909
+  (0.2ms) SAVEPOINT active_record_1
1910
+ 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", 7], ["receiver_type", "User"], ["created_at", "2016-04-18 12:28:55.238279"]]
1911
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1912
+ 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", 7], ["receiver_type", "User"]]
1913
+  (0.6ms) ROLLBACK
1914
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1915
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
1916
+  (2.3ms)  SELECT schemaname || '.' || tablename
1917
+ FROM pg_tables
1918
+ WHERE
1919
+ tablename !~ '_prt_' AND
1920
+ tablename <> 'schema_migrations' AND
1921
+ schemaname = ANY (current_schemas(false))
1922
+ 
1923
+  (1.6ms) select table_name from information_schema.views where table_schema = 'hertz_test'
1924
+  (11.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
1925
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
1926
+  (0.6ms) BEGIN
1927
+  (0.2ms) COMMIT
1928
+  (0.2ms) BEGIN
1929
+  (0.3ms) SAVEPOINT active_record_1
1930
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "sydnie.braun@oberbrunner.co"], ["created_at", "2016-04-18 12:30:56.763036"], ["updated_at", "2016-04-18 12:30:56.763036"]]
1931
+ 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", 1], ["created_at", "2016-04-18 12:30:56.767317"]]
1932
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1933
+  (0.3ms) ROLLBACK
1934
+  (0.2ms) BEGIN
1935
+  (0.2ms) COMMIT
1936
+  (0.2ms) BEGIN
1937
+  (0.2ms) ROLLBACK
1938
+  (0.2ms) BEGIN
1939
+  (0.2ms) COMMIT
1940
+  (0.2ms) BEGIN
1941
+  (0.2ms) ROLLBACK
1942
+  (0.2ms) BEGIN
1943
+  (0.2ms) COMMIT
1944
+  (0.2ms) BEGIN
1945
+  (0.2ms) SAVEPOINT active_record_1
1946
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jermaine_toy@shanahanjerde.name"], ["created_at", "2016-04-18 12:30:56.782412"], ["updated_at", "2016-04-18 12:30:56.782412"]]
1947
+ 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", 2], ["created_at", "2016-04-18 12:30:56.783827"]]
1948
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1949
+  (0.3ms) SAVEPOINT active_record_1
1950
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:30:56.786167"], ["id", 2]]
1951
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1952
+  (0.3ms) ROLLBACK
1953
+  (0.2ms) BEGIN
1954
+  (0.2ms) COMMIT
1955
+  (0.2ms) BEGIN
1956
+  (0.2ms) SAVEPOINT active_record_1
1957
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jameson.connelly@nikolauspollich.biz"], ["created_at", "2016-04-18 12:30:56.796466"], ["updated_at", "2016-04-18 12:30:56.796466"]]
1958
+ 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", 3], ["created_at", "2016-04-18 12:30:56.797958"]]
1959
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1960
+  (0.3ms) SAVEPOINT active_record_1
1961
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "annalise.parisian@spencerstamm.net"], ["created_at", "2016-04-18 12:30:56.801844"], ["updated_at", "2016-04-18 12:30:56.801844"]]
1962
+ 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-04-18 12:30:56.800903"], ["receiver_id", 4], ["created_at", "2016-04-18 12:30:56.803103"]]
1963
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1964
+ Hertz::Notification Load (1.0ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
1965
+  (0.6ms) ROLLBACK
1966
+  (0.3ms) BEGIN
1967
+  (0.3ms) COMMIT
1968
+  (0.2ms) BEGIN
1969
+  (0.4ms) SAVEPOINT active_record_1
1970
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "dallas.white@gerlachmetz.com"], ["created_at", "2016-04-18 12:30:56.817048"], ["updated_at", "2016-04-18 12:30:56.817048"]]
1971
+ 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-04-18 12:30:56.816028"], ["receiver_id", 5], ["created_at", "2016-04-18 12:30:56.818521"]]
1972
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1973
+  (0.2ms) SAVEPOINT active_record_1
1974
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 5]]
1975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1976
+  (0.2ms) ROLLBACK
1977
+  (0.2ms) BEGIN
1978
+  (0.2ms) COMMIT
1979
+  (0.2ms) BEGIN
1980
+  (0.2ms) SAVEPOINT active_record_1
1981
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "sienna_okon@lesch.name"], ["created_at", "2016-04-18 12:30:56.826407"], ["updated_at", "2016-04-18 12:30:56.826407"]]
1982
+  (0.4ms) RELEASE SAVEPOINT active_record_1
1983
+  (0.2ms) SAVEPOINT active_record_1
1984
+ 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-04-18 12:30:56.829006"]]
1985
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1986
+ 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"]]
1987
+  (0.3ms) ROLLBACK
1988
+  (0.2ms) BEGIN
1989
+  (0.2ms) COMMIT
1990
+  (0.2ms) BEGIN
1991
+  (0.2ms) SAVEPOINT active_record_1
1992
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "roel.skiles@schuppe.name"], ["created_at", "2016-04-18 12:30:56.850610"], ["updated_at", "2016-04-18 12:30:56.850610"]]
1993
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1994
+  (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"]]
1995
+  (0.2ms) SAVEPOINT active_record_1
1996
+ 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-04-18 12:30:56.854800"]]
1997
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1998
+  (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"]]
1999
+  (0.2ms) ROLLBACK
2000
+  (0.2ms) BEGIN
2001
+  (0.2ms) COMMIT
2002
+  (0.2ms) BEGIN
2003
+
2004
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 7.6ms
2005
+  (0.3ms) ROLLBACK
2006
+  (0.2ms) BEGIN
2007
+  (0.2ms) COMMIT
2008
+  (0.2ms) BEGIN
2009
+  (0.3ms) ROLLBACK
2010
+  (0.3ms) BEGIN
2011
+  (0.2ms) COMMIT
2012
+  (0.1ms) BEGIN
2013
+  (0.5ms) ROLLBACK
2014
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2015
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2016
+  (2.3ms)  SELECT schemaname || '.' || tablename
2017
+ FROM pg_tables
2018
+ WHERE
2019
+ tablename !~ '_prt_' AND
2020
+ tablename <> 'schema_migrations' AND
2021
+ schemaname = ANY (current_schemas(false))
2022
+ 
2023
+  (2.3ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2024
+  (12.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2025
+  (0.7ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2026
+  (0.5ms) BEGIN
2027
+  (0.2ms) COMMIT
2028
+  (0.1ms) BEGIN
2029
+  (0.3ms) SAVEPOINT active_record_1
2030
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "rhiannon@gerlach.name"], ["created_at", "2016-04-18 12:31:28.930530"], ["updated_at", "2016-04-18 12:31:28.930530"]]
2031
+ 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", 1], ["created_at", "2016-04-18 12:31:28.935043"]]
2032
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2033
+  (0.3ms) ROLLBACK
2034
+  (0.2ms) BEGIN
2035
+  (0.2ms) COMMIT
2036
+  (0.2ms) BEGIN
2037
+  (0.3ms) ROLLBACK
2038
+  (0.2ms) BEGIN
2039
+  (0.2ms) COMMIT
2040
+  (0.2ms) BEGIN
2041
+  (0.3ms) SAVEPOINT active_record_1
2042
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "buck_doyle@lebsack.biz"], ["created_at", "2016-04-18 12:31:28.947703"], ["updated_at", "2016-04-18 12:31:28.947703"]]
2043
+ 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-04-18 12:31:28.946929"], ["receiver_id", 2], ["created_at", "2016-04-18 12:31:28.949118"]]
2044
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2045
+  (0.2ms) SAVEPOINT active_record_1
2046
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 2]]
2047
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2048
+  (0.3ms) ROLLBACK
2049
+  (0.2ms) BEGIN
2050
+  (0.2ms) COMMIT
2051
+  (0.2ms) BEGIN
2052
+  (0.2ms) ROLLBACK
2053
+  (0.2ms) BEGIN
2054
+  (0.2ms) COMMIT
2055
+  (0.2ms) BEGIN
2056
+  (0.2ms) SAVEPOINT active_record_1
2057
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "eliseo@brown.io"], ["created_at", "2016-04-18 12:31:28.963980"], ["updated_at", "2016-04-18 12:31:28.963980"]]
2058
+ 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", 3], ["created_at", "2016-04-18 12:31:28.965415"]]
2059
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2060
+  (0.3ms) SAVEPOINT active_record_1
2061
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "raoul_schowalter@rolfson.org"], ["created_at", "2016-04-18 12:31:28.968738"], ["updated_at", "2016-04-18 12:31:28.968738"]]
2062
+ 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-04-18 12:31:28.968000"], ["receiver_id", 4], ["created_at", "2016-04-18 12:31:28.970165"]]
2063
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2064
+ Hertz::Notification Load (0.8ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2065
+  (0.6ms) ROLLBACK
2066
+  (0.3ms) BEGIN
2067
+  (0.2ms) COMMIT
2068
+  (0.2ms) BEGIN
2069
+  (0.3ms) SAVEPOINT active_record_1
2070
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "chelsey.kirlin@haag.biz"], ["created_at", "2016-04-18 12:31:28.983131"], ["updated_at", "2016-04-18 12:31:28.983131"]]
2071
+ 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", 5], ["created_at", "2016-04-18 12:31:28.984594"]]
2072
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2073
+  (0.3ms) SAVEPOINT active_record_1
2074
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:31:28.986766"], ["id", 5]]
2075
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2076
+  (0.2ms) ROLLBACK
2077
+  (0.2ms) BEGIN
2078
+  (0.2ms) COMMIT
2079
+  (0.2ms) BEGIN
2080
+
2081
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 5.8ms
2082
+  (0.3ms) ROLLBACK
2083
+  (0.2ms) BEGIN
2084
+  (0.2ms) COMMIT
2085
+  (0.2ms) BEGIN
2086
+  (0.3ms) ROLLBACK
2087
+  (0.2ms) BEGIN
2088
+  (0.2ms) COMMIT
2089
+  (0.1ms) BEGIN
2090
+  (0.2ms) SAVEPOINT active_record_1
2091
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "kira_moen@mayert.biz"], ["created_at", "2016-04-18 12:31:29.171005"], ["updated_at", "2016-04-18 12:31:29.171005"]]
2092
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2093
+  (0.5ms) SAVEPOINT active_record_1
2094
+ 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", 6], ["receiver_type", "User"], ["created_at", "2016-04-18 12:31:29.176034"]]
2095
+  (0.5ms) RELEASE SAVEPOINT active_record_1
2096
+ 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", 6], ["receiver_type", "User"]]
2097
+  (0.2ms) ROLLBACK
2098
+  (0.2ms) BEGIN
2099
+  (0.1ms) COMMIT
2100
+  (0.2ms) BEGIN
2101
+  (0.2ms) SAVEPOINT active_record_1
2102
+ SQL (0.2ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "hugh@goyette.io"], ["created_at", "2016-04-18 12:31:29.198006"], ["updated_at", "2016-04-18 12:31:29.198006"]]
2103
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2104
+  (0.6ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
2105
+  (0.4ms) SAVEPOINT active_record_1
2106
+ SQL (0.7ms) 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-04-18 12:31:29.205822"]]
2107
+  (0.7ms) RELEASE SAVEPOINT active_record_1
2108
+  (0.6ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 7], ["receiver_type", "User"]]
2109
+  (0.3ms) ROLLBACK
2110
+  (0.2ms) BEGIN
2111
+  (0.2ms) COMMIT
2112
+  (0.2ms) BEGIN
2113
+  (0.4ms) ROLLBACK
2114
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2115
+  (0.9ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2116
+  (2.4ms)  SELECT schemaname || '.' || tablename
2117
+ FROM pg_tables
2118
+ WHERE
2119
+ tablename !~ '_prt_' AND
2120
+ tablename <> 'schema_migrations' AND
2121
+ schemaname = ANY (current_schemas(false))
2122
+ 
2123
+  (2.8ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2124
+  (12.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2125
+  (0.3ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2126
+  (0.3ms) BEGIN
2127
+  (0.2ms) COMMIT
2128
+  (0.2ms) BEGIN
2129
+  (0.4ms) SAVEPOINT active_record_1
2130
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "tabitha@abbott.co"], ["created_at", "2016-04-18 12:33:43.408440"], ["updated_at", "2016-04-18 12:33:43.408440"]]
2131
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2132
+  (0.3ms) SAVEPOINT active_record_1
2133
+ 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-04-18 12:33:43.424784"]]
2134
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2135
+ 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", 1], ["receiver_type", "User"]]
2136
+  (0.4ms) ROLLBACK
2137
+  (0.2ms) BEGIN
2138
+  (0.3ms) COMMIT
2139
+  (0.2ms) BEGIN
2140
+  (0.2ms) SAVEPOINT active_record_1
2141
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "taurean@christiansenwalter.info"], ["created_at", "2016-04-18 12:33:43.442425"], ["updated_at", "2016-04-18 12:33:43.442425"]]
2142
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2143
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
2144
+  (0.2ms) SAVEPOINT active_record_1
2145
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-18 12:33:43.448583"]]
2146
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2147
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
2148
+  (0.2ms) ROLLBACK
2149
+  (0.2ms) BEGIN
2150
+  (0.2ms) COMMIT
2151
+  (0.2ms) BEGIN
2152
+ Rendered hertz/notification_mailer/test_notification.html.erb (1.4ms)
2153
+
2154
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 15.8ms
2155
+  (0.3ms) ROLLBACK
2156
+  (0.2ms) BEGIN
2157
+  (0.2ms) COMMIT
2158
+  (0.2ms) BEGIN
2159
+  (0.3ms) SAVEPOINT active_record_1
2160
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "katelin@treutel.biz"], ["created_at", "2016-04-18 12:33:43.670175"], ["updated_at", "2016-04-18 12:33:43.670175"]]
2161
+ 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", 3], ["created_at", "2016-04-18 12:33:43.672145"]]
2162
+  (0.5ms) RELEASE SAVEPOINT active_record_1
2163
+  (0.4ms) ROLLBACK
2164
+  (0.6ms) BEGIN
2165
+  (0.3ms) COMMIT
2166
+  (0.2ms) BEGIN
2167
+  (1.0ms) ROLLBACK
2168
+  (0.2ms) BEGIN
2169
+  (0.2ms) COMMIT
2170
+  (0.2ms) BEGIN
2171
+  (0.6ms) SAVEPOINT active_record_1
2172
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "ada@strackeborer.com"], ["created_at", "2016-04-18 12:33:43.691223"], ["updated_at", "2016-04-18 12:33:43.691223"]]
2173
+ 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-04-18 12:33:43.690086"], ["receiver_id", 4], ["created_at", "2016-04-18 12:33:43.692746"]]
2174
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2175
+  (0.2ms) SAVEPOINT active_record_1
2176
+ SQL (0.8ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
2177
+  (0.6ms) RELEASE SAVEPOINT active_record_1
2178
+  (0.6ms) ROLLBACK
2179
+  (0.2ms) BEGIN
2180
+  (0.2ms) COMMIT
2181
+  (0.2ms) BEGIN
2182
+  (0.4ms) SAVEPOINT active_record_1
2183
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "arnoldo_borer@quitzonrunte.net"], ["created_at", "2016-04-18 12:33:43.713440"], ["updated_at", "2016-04-18 12:33:43.713440"]]
2184
+ 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-04-18 12:33:43.715163"]]
2185
+  (0.7ms) RELEASE SAVEPOINT active_record_1
2186
+  (0.6ms) SAVEPOINT active_record_1
2187
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "judah@jacobs.biz"], ["created_at", "2016-04-18 12:33:43.722182"], ["updated_at", "2016-04-18 12:33:43.722182"]]
2188
+ 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-04-18 12:33:43.720507"], ["receiver_id", 6], ["created_at", "2016-04-18 12:33:43.724621"]]
2189
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2190
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2191
+  (0.2ms) ROLLBACK
2192
+  (0.2ms) BEGIN
2193
+  (0.2ms) COMMIT
2194
+  (0.2ms) BEGIN
2195
+  (0.2ms) SAVEPOINT active_record_1
2196
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "norval_runte@quigley.io"], ["created_at", "2016-04-18 12:33:43.732576"], ["updated_at", "2016-04-18 12:33:43.732576"]]
2197
+ 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-04-18 12:33:43.733977"]]
2198
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2199
+  (0.3ms) SAVEPOINT active_record_1
2200
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:33:43.737434"], ["id", 7]]
2201
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2202
+  (0.2ms) ROLLBACK
2203
+  (0.3ms) BEGIN
2204
+  (0.3ms) COMMIT
2205
+  (0.4ms) BEGIN
2206
+  (0.5ms) ROLLBACK
2207
+  (0.3ms) BEGIN
2208
+  (0.2ms) COMMIT
2209
+  (0.2ms) BEGIN
2210
+  (0.2ms) ROLLBACK
2211
+  (0.2ms) BEGIN
2212
+  (0.2ms) COMMIT
2213
+  (0.2ms) BEGIN
2214
+  (0.2ms) ROLLBACK
2215
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
2216
+  (0.8ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2217
+  (2.0ms)  SELECT schemaname || '.' || tablename
2218
+ FROM pg_tables
2219
+ WHERE
2220
+ tablename !~ '_prt_' AND
2221
+ tablename <> 'schema_migrations' AND
2222
+ schemaname = ANY (current_schemas(false))
2223
+ 
2224
+  (1.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2225
+  (10.1ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2226
+  (1.0ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2227
+  (0.3ms) BEGIN
2228
+  (0.1ms) COMMIT
2229
+  (0.1ms) BEGIN
2230
+ Rendered hertz/notification_mailer/test_notification.html.erb (1.3ms)
2231
+
2232
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 13.3ms
2233
+  (0.5ms) ROLLBACK
2234
+  (0.2ms) BEGIN
2235
+  (0.2ms) COMMIT
2236
+  (0.1ms) BEGIN
2237
+  (0.2ms) SAVEPOINT active_record_1
2238
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "murl@quitzoncrooks.biz"], ["created_at", "2016-04-18 12:34:04.526952"], ["updated_at", "2016-04-18 12:34:04.526952"]]
2239
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2240
+  (0.2ms) SAVEPOINT active_record_1
2241
+ 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-04-18 12:34:04.533831"]]
2242
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2243
+ 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", 1], ["receiver_type", "User"]]
2244
+  (0.3ms) ROLLBACK
2245
+  (0.2ms) BEGIN
2246
+  (0.2ms) COMMIT
2247
+  (0.1ms) BEGIN
2248
+  (0.2ms) SAVEPOINT active_record_1
2249
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "maude@miller.com"], ["created_at", "2016-04-18 12:34:04.550980"], ["updated_at", "2016-04-18 12:34:04.550980"]]
2250
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2251
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
2252
+  (0.3ms) SAVEPOINT active_record_1
2253
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-18 12:34:04.558093"]]
2254
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2255
+  (0.3ms) SELECT COUNT(*) FROM "hertz_notifications" WHERE "hertz_notifications"."receiver_id" = $1 AND "hertz_notifications"."receiver_type" = $2 [["receiver_id", 2], ["receiver_type", "User"]]
2256
+  (0.3ms) ROLLBACK
2257
+  (0.2ms) BEGIN
2258
+  (0.2ms) COMMIT
2259
+  (0.2ms) BEGIN
2260
+  (0.5ms) ROLLBACK
2261
+  (0.3ms) BEGIN
2262
+  (0.2ms) COMMIT
2263
+  (0.2ms) BEGIN
2264
+  (0.3ms) ROLLBACK
2265
+  (0.2ms) BEGIN
2266
+  (0.3ms) COMMIT
2267
+  (0.2ms) BEGIN
2268
+  (0.2ms) SAVEPOINT active_record_1
2269
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "madeline_windler@stroman.biz"], ["created_at", "2016-04-18 12:34:04.589407"], ["updated_at", "2016-04-18 12:34:04.589407"]]
2270
+ 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", 3], ["created_at", "2016-04-18 12:34:04.590919"]]
2271
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2272
+  (0.2ms) ROLLBACK
2273
+  (0.2ms) BEGIN
2274
+  (0.2ms) COMMIT
2275
+  (0.2ms) BEGIN
2276
+  (0.2ms) SAVEPOINT active_record_1
2277
+ SQL (0.9ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "deven@toy.info"], ["created_at", "2016-04-18 12:34:04.596804"], ["updated_at", "2016-04-18 12:34:04.596804"]]
2278
+ SQL (1.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-04-18 12:34:04.599604"]]
2279
+  (0.5ms) RELEASE SAVEPOINT active_record_1
2280
+  (0.5ms) SAVEPOINT active_record_1
2281
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "katheryn.little@bartellschuster.name"], ["created_at", "2016-04-18 12:34:04.607250"], ["updated_at", "2016-04-18 12:34:04.607250"]]
2282
+ 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-04-18 12:34:04.605789"], ["receiver_id", 5], ["created_at", "2016-04-18 12:34:04.608957"]]
2283
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2284
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2285
+  (0.2ms) ROLLBACK
2286
+  (0.2ms) BEGIN
2287
+  (0.2ms) COMMIT
2288
+  (0.2ms) BEGIN
2289
+  (0.2ms) SAVEPOINT active_record_1
2290
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "cade.thompson@schimmel.co"], ["created_at", "2016-04-18 12:34:04.616497"], ["updated_at", "2016-04-18 12:34:04.616497"]]
2291
+ 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-04-18 12:34:04.615857"], ["receiver_id", 6], ["created_at", "2016-04-18 12:34:04.618864"]]
2292
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2293
+  (0.4ms) SAVEPOINT active_record_1
2294
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 6]]
2295
+  (0.4ms) RELEASE SAVEPOINT active_record_1
2296
+  (0.5ms) ROLLBACK
2297
+  (0.5ms) BEGIN
2298
+  (0.3ms) COMMIT
2299
+  (0.2ms) BEGIN
2300
+  (0.4ms) ROLLBACK
2301
+  (0.3ms) BEGIN
2302
+  (0.2ms) COMMIT
2303
+  (0.2ms) BEGIN
2304
+  (0.2ms) ROLLBACK
2305
+  (0.2ms) BEGIN
2306
+  (0.1ms) COMMIT
2307
+  (0.2ms) BEGIN
2308
+  (0.2ms) SAVEPOINT active_record_1
2309
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "mable.barrows@shanahan.net"], ["created_at", "2016-04-18 12:34:04.643829"], ["updated_at", "2016-04-18 12:34:04.643829"]]
2310
+ 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", 7], ["created_at", "2016-04-18 12:34:04.645197"]]
2311
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2312
+  (0.3ms) SAVEPOINT active_record_1
2313
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 12:34:04.647824"], ["id", 7]]
2314
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2315
+  (0.2ms) ROLLBACK
2316
+ ActiveRecord::SchemaMigration Load (0.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
2317
+  (0.5ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2318
+  (1.1ms)  SELECT schemaname || '.' || tablename
2319
+ FROM pg_tables
2320
+ WHERE
2321
+ tablename !~ '_prt_' AND
2322
+ tablename <> 'schema_migrations' AND
2323
+ schemaname = ANY (current_schemas(false))
2324
+ 
2325
+  (1.5ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2326
+  (20.2ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2327
+  (0.9ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2328
+  (0.6ms) BEGIN
2329
+  (0.3ms) COMMIT
2330
+  (0.2ms) BEGIN
2331
+  (0.4ms) SAVEPOINT active_record_1
2332
+ SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "alexandro_ruel@crist.com"], ["created_at", "2016-04-18 14:40:07.153132"], ["updated_at", "2016-04-18 14:40:07.153132"]]
2333
+ 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", 1], ["created_at", "2016-04-18 14:40:07.157580"]]
2334
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2335
+  (0.3ms) ROLLBACK
2336
+  (0.3ms) BEGIN
2337
+  (0.2ms) COMMIT
2338
+  (0.2ms) BEGIN
2339
+  (0.3ms) SAVEPOINT active_record_1
2340
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "chelsea@kuphal.io"], ["created_at", "2016-04-18 14:40:07.164893"], ["updated_at", "2016-04-18 14:40:07.164893"]]
2341
+ 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-04-18 14:40:07.166349"]]
2342
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2343
+  (0.2ms) SAVEPOINT active_record_1
2344
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "valerie_breitenberg@williamson.org"], ["created_at", "2016-04-18 14:40:07.169882"], ["updated_at", "2016-04-18 14:40:07.169882"]]
2345
+ 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-04-18 14:40:07.169251"], ["receiver_id", 3], ["created_at", "2016-04-18 14:40:07.171205"]]
2346
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2347
+ Hertz::Notification Load (0.5ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2348
+  (0.2ms) ROLLBACK
2349
+  (0.2ms) BEGIN
2350
+  (0.2ms) COMMIT
2351
+  (0.2ms) BEGIN
2352
+  (0.2ms) SAVEPOINT active_record_1
2353
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "bertha_moriette@grimes.net"], ["created_at", "2016-04-18 14:40:07.180448"], ["updated_at", "2016-04-18 14:40:07.180448"]]
2354
+ 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-04-18 14:40:07.179728"], ["receiver_id", 4], ["created_at", "2016-04-18 14:40:07.182157"]]
2355
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2356
+  (0.2ms) SAVEPOINT active_record_1
2357
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 4]]
2358
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2359
+  (0.2ms) ROLLBACK
2360
+  (0.2ms) BEGIN
2361
+  (0.2ms) COMMIT
2362
+  (0.2ms) BEGIN
2363
+  (0.5ms) SAVEPOINT active_record_1
2364
+ SQL (1.0ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "marian.fisher@murray.net"], ["created_at", "2016-04-18 14:40:07.198152"], ["updated_at", "2016-04-18 14:40:07.198152"]]
2365
+ SQL (0.7ms) INSERT INTO "hertz_notifications" ("type", "receiver_type", "receiver_id", "created_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["type", "Hertz::Notification"], ["receiver_type", "User"], ["receiver_id", 5], ["created_at", "2016-04-18 14:40:07.202283"]]
2366
+  (0.5ms) RELEASE SAVEPOINT active_record_1
2367
+  (0.3ms) SAVEPOINT active_record_1
2368
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 14:40:07.206670"], ["id", 5]]
2369
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2370
+  (0.2ms) ROLLBACK
2371
+  (0.2ms) BEGIN
2372
+  (0.3ms) COMMIT
2373
+  (0.3ms) BEGIN
2374
+  (0.2ms) ROLLBACK
2375
+  (0.2ms) BEGIN
2376
+  (0.3ms) COMMIT
2377
+  (0.2ms) BEGIN
2378
+  (0.2ms) ROLLBACK
2379
+  (0.2ms) BEGIN
2380
+  (0.2ms) COMMIT
2381
+  (0.2ms) BEGIN
2382
+  (0.3ms) ROLLBACK
2383
+  (0.2ms) BEGIN
2384
+  (0.2ms) COMMIT
2385
+  (0.2ms) BEGIN
2386
+ Rendered hertz/notification_mailer/test_notification.html.erb (1.2ms)
2387
+
2388
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 16.8ms
2389
+  (0.3ms) ROLLBACK
2390
+  (0.2ms) BEGIN
2391
+  (0.2ms) COMMIT
2392
+  (0.2ms) BEGIN
2393
+  (0.2ms) SAVEPOINT active_record_1
2394
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "alysha@rohan.net"], ["created_at", "2016-04-18 14:40:07.406200"], ["updated_at", "2016-04-18 14:40:07.406200"]]
2395
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2396
+  (0.2ms) SAVEPOINT active_record_1
2397
+ 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-04-18 14:40:07.409302"]]
2398
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2399
+ 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", 6], ["receiver_type", "User"]]
2400
+  (0.2ms) ROLLBACK
2401
+  (0.2ms) BEGIN
2402
+  (0.2ms) COMMIT
2403
+  (0.2ms) BEGIN
2404
+  (0.2ms) SAVEPOINT active_record_1
2405
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "thurman_kautzer@zulauf.biz"], ["created_at", "2016-04-18 14:40:07.426364"], ["updated_at", "2016-04-18 14:40:07.426364"]]
2406
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2407
+  (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"]]
2408
+  (0.3ms) SAVEPOINT active_record_1
2409
+ 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-04-18 14:40:07.430861"]]
2410
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2411
+  (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"]]
2412
+  (0.3ms) ROLLBACK
2413
+  (0.2ms) BEGIN
2414
+  (0.2ms) COMMIT
2415
+  (0.2ms) BEGIN
2416
+  (0.2ms) ROLLBACK
2417
+ ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2418
+  (0.4ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2419
+  (1.2ms)  SELECT schemaname || '.' || tablename
2420
+ FROM pg_tables
2421
+ WHERE
2422
+ tablename !~ '_prt_' AND
2423
+ tablename <> 'schema_migrations' AND
2424
+ schemaname = ANY (current_schemas(false))
2425
+ 
2426
+  (1.0ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2427
+  (6.4ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2428
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2429
+  (0.2ms) BEGIN
2430
+  (0.3ms) COMMIT
2431
+  (0.2ms) BEGIN
2432
+  (0.4ms) SAVEPOINT active_record_1
2433
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "maggie@barrows.co"], ["created_at", "2016-04-18 14:58:00.766412"], ["updated_at", "2016-04-18 14:58:00.766412"]]
2434
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2435
+  (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"]]
2436
+  (0.3ms) SAVEPOINT active_record_1
2437
+ 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-04-18 14:58:00.792017"]]
2438
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2439
+  (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"]]
2440
+  (0.3ms) ROLLBACK
2441
+  (0.2ms) BEGIN
2442
+  (0.2ms) COMMIT
2443
+  (0.2ms) BEGIN
2444
+  (0.3ms) SAVEPOINT active_record_1
2445
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "jacynthe.spinka@sanford.net"], ["created_at", "2016-04-18 14:58:00.799157"], ["updated_at", "2016-04-18 14:58:00.799157"]]
2446
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2447
+  (0.2ms) SAVEPOINT active_record_1
2448
+ 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", 2], ["receiver_type", "User"], ["created_at", "2016-04-18 14:58:00.802060"]]
2449
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2450
+ 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", 2], ["receiver_type", "User"]]
2451
+  (0.3ms) ROLLBACK
2452
+  (0.2ms) BEGIN
2453
+  (0.2ms) COMMIT
2454
+  (0.2ms) BEGIN
2455
+  (0.3ms) ROLLBACK
2456
+  (0.3ms) BEGIN
2457
+  (0.2ms) COMMIT
2458
+  (0.2ms) BEGIN
2459
+  (0.3ms) SAVEPOINT active_record_1
2460
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "gust.simonis@kozey.net"], ["created_at", "2016-04-18 14:58:00.824867"], ["updated_at", "2016-04-18 14:58:00.824867"]]
2461
+ 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-04-18 14:58:00.826599"]]
2462
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2463
+  (0.2ms) ROLLBACK
2464
+  (0.2ms) BEGIN
2465
+  (0.2ms) COMMIT
2466
+  (0.5ms) BEGIN
2467
+  (0.6ms) ROLLBACK
2468
+  (0.3ms) BEGIN
2469
+  (0.2ms) COMMIT
2470
+  (0.2ms) BEGIN
2471
+  (0.3ms) ROLLBACK
2472
+  (0.2ms) BEGIN
2473
+  (0.2ms) COMMIT
2474
+  (0.2ms) BEGIN
2475
+  (0.2ms) SAVEPOINT active_record_1
2476
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "federico@nolan.net"], ["created_at", "2016-04-18 14:58:00.844554"], ["updated_at", "2016-04-18 14:58:00.844554"]]
2477
+ 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", 4], ["created_at", "2016-04-18 14:58:00.845885"]]
2478
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2479
+  (0.2ms) SAVEPOINT active_record_1
2480
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-18 14:58:00.848057"], ["id", 4]]
2481
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2482
+  (0.2ms) ROLLBACK
2483
+  (0.1ms) BEGIN
2484
+  (0.2ms) COMMIT
2485
+  (0.2ms) BEGIN
2486
+  (0.2ms) SAVEPOINT active_record_1
2487
+ SQL (0.4ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "eden.dibbert@breitenbergleannon.name"], ["created_at", "2016-04-18 14:58:00.858608"], ["updated_at", "2016-04-18 14:58:00.858608"]]
2488
+ 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-04-18 14:58:00.860442"]]
2489
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2490
+  (0.7ms) SAVEPOINT active_record_1
2491
+ SQL (0.8ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "mariela@aufderhar.co"], ["created_at", "2016-04-18 14:58:00.866352"], ["updated_at", "2016-04-18 14:58:00.866352"]]
2492
+ 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-04-18 14:58:00.864328"], ["receiver_id", 6], ["created_at", "2016-04-18 14:58:00.869164"]]
2493
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2494
+ Hertz::Notification Load (0.3ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2495
+  (0.3ms) ROLLBACK
2496
+  (0.2ms) BEGIN
2497
+  (0.2ms) COMMIT
2498
+  (0.2ms) BEGIN
2499
+  (0.2ms) SAVEPOINT active_record_1
2500
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "yasmeen@rath.biz"], ["created_at", "2016-04-18 14:58:00.877965"], ["updated_at", "2016-04-18 14:58:00.877965"]]
2501
+ 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-04-18 14:58:00.877349"], ["receiver_id", 7], ["created_at", "2016-04-18 14:58:00.879141"]]
2502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2503
+  (0.2ms) SAVEPOINT active_record_1
2504
+ SQL (0.3ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
2505
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2506
+  (0.2ms) ROLLBACK
2507
+  (0.2ms) BEGIN
2508
+  (0.2ms) COMMIT
2509
+  (0.2ms) BEGIN
2510
+  (0.2ms) ROLLBACK
2511
+  (0.2ms) BEGIN
2512
+  (0.2ms) COMMIT
2513
+  (0.2ms) BEGIN
2514
+ Rendered hertz/notification_mailer/test_notification.html.erb (1.1ms)
2515
+
2516
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 11.5ms
2517
+  (0.3ms) ROLLBACK
2518
+ ActiveRecord::SchemaMigration Load (1.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
2519
+  (2.3ms) ALTER TABLE "schema_migrations" DISABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" DISABLE TRIGGER ALL;ALTER TABLE "users" DISABLE TRIGGER ALL
2520
+  (1.4ms)  SELECT schemaname || '.' || tablename
2521
+ FROM pg_tables
2522
+ WHERE
2523
+ tablename !~ '_prt_' AND
2524
+ tablename <> 'schema_migrations' AND
2525
+ schemaname = ANY (current_schemas(false))
2526
+ 
2527
+  (4.7ms) select table_name from information_schema.views where table_schema = 'hertz_test'
2528
+  (16.8ms) TRUNCATE TABLE "public"."hertz_notifications", "public"."users" RESTART IDENTITY CASCADE;
2529
+  (0.4ms) ALTER TABLE "schema_migrations" ENABLE TRIGGER ALL;ALTER TABLE "hertz_notifications" ENABLE TRIGGER ALL;ALTER TABLE "users" ENABLE TRIGGER ALL
2530
+  (0.3ms) BEGIN
2531
+  (0.2ms) COMMIT
2532
+  (0.2ms) BEGIN
2533
+  (0.4ms) SAVEPOINT active_record_1
2534
+ SQL (0.7ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "nayeli.hoeger@crona.io"], ["created_at", "2016-04-20 08:35:39.795523"], ["updated_at", "2016-04-20 08:35:39.795523"]]
2535
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2536
+  (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"]]
2537
+  (0.3ms) SAVEPOINT active_record_1
2538
+ 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-04-20 08:35:39.832689"]]
2539
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2540
+  (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"]]
2541
+  (0.3ms) ROLLBACK
2542
+  (0.2ms) BEGIN
2543
+  (0.2ms) COMMIT
2544
+  (0.2ms) BEGIN
2545
+  (0.2ms) SAVEPOINT active_record_1
2546
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "leanne@franecki.io"], ["created_at", "2016-04-20 08:35:39.839618"], ["updated_at", "2016-04-20 08:35:39.839618"]]
2547
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2548
+  (0.2ms) SAVEPOINT active_record_1
2549
+ 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-04-20 08:35:39.842217"]]
2550
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2551
+ 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", 2], ["receiver_type", "User"]]
2552
+  (0.3ms) ROLLBACK
2553
+  (0.2ms) BEGIN
2554
+  (0.2ms) COMMIT
2555
+  (0.2ms) BEGIN
2556
+  (0.5ms) ROLLBACK
2557
+  (0.6ms) BEGIN
2558
+  (0.4ms) COMMIT
2559
+  (0.2ms) BEGIN
2560
+  (0.3ms) ROLLBACK
2561
+  (0.3ms) BEGIN
2562
+  (0.2ms) COMMIT
2563
+  (0.2ms) BEGIN
2564
+ Rendered hertz/notification_mailer/test_notification.html.erb (1.6ms)
2565
+
2566
+ Hertz::NotificationMailer#notification_email: processed outbound mail in 18.0ms
2567
+  (0.3ms) ROLLBACK
2568
+  (0.2ms) BEGIN
2569
+  (0.2ms) COMMIT
2570
+  (0.2ms) BEGIN
2571
+  (0.2ms) SAVEPOINT active_record_1
2572
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "danika.kutch@collier.name"], ["created_at", "2016-04-20 08:35:40.078990"], ["updated_at", "2016-04-20 08:35:40.078990"]]
2573
+ 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", 3], ["created_at", "2016-04-20 08:35:40.080311"]]
2574
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2575
+  (0.2ms) ROLLBACK
2576
+  (0.2ms) BEGIN
2577
+  (0.2ms) COMMIT
2578
+  (0.2ms) BEGIN
2579
+  (0.2ms) SAVEPOINT active_record_1
2580
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "noah_gusikowski@feest.net"], ["created_at", "2016-04-20 08:35:40.086463"], ["updated_at", "2016-04-20 08:35:40.086463"]]
2581
+ 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", 4], ["created_at", "2016-04-20 08:35:40.087720"]]
2582
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2583
+  (0.2ms) SAVEPOINT active_record_1
2584
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", "2016-04-20 08:35:40.090713"], ["id", 4]]
2585
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2586
+  (0.2ms) ROLLBACK
2587
+  (0.2ms) BEGIN
2588
+  (0.2ms) COMMIT
2589
+  (0.2ms) BEGIN
2590
+  (0.2ms) ROLLBACK
2591
+  (0.2ms) BEGIN
2592
+  (0.2ms) COMMIT
2593
+  (0.2ms) BEGIN
2594
+  (0.2ms) SAVEPOINT active_record_1
2595
+ SQL (0.5ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "virginie@strosin.name"], ["created_at", "2016-04-20 08:35:40.106442"], ["updated_at", "2016-04-20 08:35:40.106442"]]
2596
+ 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", 5], ["created_at", "2016-04-20 08:35:40.108455"]]
2597
+  (0.7ms) RELEASE SAVEPOINT active_record_1
2598
+  (0.7ms) SAVEPOINT active_record_1
2599
+ SQL (0.6ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "santino@gusikowski.info"], ["created_at", "2016-04-20 08:35:40.116578"], ["updated_at", "2016-04-20 08:35:40.116578"]]
2600
+ 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-04-20 08:35:40.114689"], ["receiver_id", 6], ["created_at", "2016-04-20 08:35:40.119063"]]
2601
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2602
+ Hertz::Notification Load (0.4ms) SELECT "hertz_notifications".* FROM "hertz_notifications" WHERE (read_at IS NULL)
2603
+  (0.2ms) ROLLBACK
2604
+  (0.2ms) BEGIN
2605
+  (0.2ms) COMMIT
2606
+  (0.2ms) BEGIN
2607
+  (0.2ms) ROLLBACK
2608
+  (0.2ms) BEGIN
2609
+  (0.2ms) COMMIT
2610
+  (0.3ms) BEGIN
2611
+  (0.3ms) SAVEPOINT active_record_1
2612
+ SQL (0.3ms) INSERT INTO "users" ("email", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["email", "janis_howell@hyattferry.org"], ["created_at", "2016-04-20 08:35:40.130799"], ["updated_at", "2016-04-20 08:35:40.130799"]]
2613
+ 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-04-20 08:35:40.129969"], ["receiver_id", 7], ["created_at", "2016-04-20 08:35:40.132306"]]
2614
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2615
+  (0.2ms) SAVEPOINT active_record_1
2616
+ SQL (0.4ms) UPDATE "hertz_notifications" SET "read_at" = $1 WHERE "hertz_notifications"."id" = $2 [["read_at", nil], ["id", 7]]
2617
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2618
+  (0.2ms) ROLLBACK