notify_user 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/notify_user/base_notification.rb +7 -1
  3. data/lib/notify_user/version.rb +1 -1
  4. data/spec/dummy/rails-4.0.4/config/initializers/secret_token.rb +1 -1
  5. data/spec/dummy/{rails-4.0.2/db/migrate/20140428015529_create_users.rb → rails-4.0.4/db/migrate/20140624075850_create_users.rb} +0 -0
  6. data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531189189694000_create_notify_user_notifications.rb → rails-4.0.4/db/migrate/20140624075852587587217000_create_notify_user_notifications.rb} +0 -0
  7. data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531190190743000_create_notify_user_unsubscribes.rb → rails-4.0.4/db/migrate/20140624075852588588765000_create_notify_user_unsubscribes.rb} +0 -0
  8. data/spec/dummy/{rails-4.0.2/db/migrate/20140428015531191191953000_create_notify_user_user_hashes.rb → rails-4.0.4/db/migrate/20140624075852590590153000_create_notify_user_user_hashes.rb} +0 -0
  9. data/spec/dummy/rails-4.0.4/db/schema.rb +1 -1
  10. data/spec/dummy/rails-4.0.4/log/test.log +8421 -19580
  11. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  12. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  13. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  14. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{461686bcf3d7c88e0499f60b83be1fbd → 80e5f8379c6b79f7685b1a2124c2c032} +0 -0
  15. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/{8347cdde4e97e62f293aab2e5e6fcc2a → 8b79deab756579c0e92b62a86f6a5fef} +0 -0
  16. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  17. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  18. data/spec/dummy/rails-4.0.4/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  19. data/spec/models/notify_user/notification_spec.rb +7 -0
  20. metadata +52 -190
  21. data/spec/dummy/rails-4.0.2/Gemfile +0 -45
  22. data/spec/dummy/rails-4.0.2/README.rdoc +0 -28
  23. data/spec/dummy/rails-4.0.2/Rakefile +0 -6
  24. data/spec/dummy/rails-4.0.2/app/assets/javascripts/application.js +0 -16
  25. data/spec/dummy/rails-4.0.2/app/assets/stylesheets/application.css +0 -13
  26. data/spec/dummy/rails-4.0.2/app/controllers/application_controller.rb +0 -5
  27. data/spec/dummy/rails-4.0.2/app/controllers/notify_user/notifications_controller.rb +0 -9
  28. data/spec/dummy/rails-4.0.2/app/helpers/application_helper.rb +0 -2
  29. data/spec/dummy/rails-4.0.2/app/models/user.rb +0 -2
  30. data/spec/dummy/rails-4.0.2/app/notifications/new_post_notification.rb +0 -11
  31. data/spec/dummy/rails-4.0.2/app/views/layouts/application.html.erb +0 -14
  32. data/spec/dummy/rails-4.0.2/app/views/notify_user/layouts/action_mailer.html.erb +0 -39
  33. data/spec/dummy/rails-4.0.2/app/views/notify_user/new_post_notification/action_mailer/notification.html.erb +0 -1
  34. data/spec/dummy/rails-4.0.2/app/views/notify_user/new_post_notification/mobile_sdk/notification.html.erb +0 -1
  35. data/spec/dummy/rails-4.0.2/bin/bundle +0 -3
  36. data/spec/dummy/rails-4.0.2/bin/rails +0 -4
  37. data/spec/dummy/rails-4.0.2/bin/rake +0 -4
  38. data/spec/dummy/rails-4.0.2/config/application.rb +0 -23
  39. data/spec/dummy/rails-4.0.2/config/boot.rb +0 -4
  40. data/spec/dummy/rails-4.0.2/config/database.yml +0 -54
  41. data/spec/dummy/rails-4.0.2/config/database2.yml +0 -57
  42. data/spec/dummy/rails-4.0.2/config/environment.rb +0 -5
  43. data/spec/dummy/rails-4.0.2/config/environments/development.rb +0 -29
  44. data/spec/dummy/rails-4.0.2/config/environments/production.rb +0 -80
  45. data/spec/dummy/rails-4.0.2/config/environments/test.rb +0 -36
  46. data/spec/dummy/rails-4.0.2/config/initializers/backtrace_silencers.rb +0 -7
  47. data/spec/dummy/rails-4.0.2/config/initializers/filter_parameter_logging.rb +0 -4
  48. data/spec/dummy/rails-4.0.2/config/initializers/inflections.rb +0 -16
  49. data/spec/dummy/rails-4.0.2/config/initializers/mime_types.rb +0 -5
  50. data/spec/dummy/rails-4.0.2/config/initializers/notify_user.rb +0 -14
  51. data/spec/dummy/rails-4.0.2/config/initializers/secret_token.rb +0 -12
  52. data/spec/dummy/rails-4.0.2/config/initializers/session_store.rb +0 -3
  53. data/spec/dummy/rails-4.0.2/config/initializers/wrap_parameters.rb +0 -14
  54. data/spec/dummy/rails-4.0.2/config/locales/en.yml +0 -23
  55. data/spec/dummy/rails-4.0.2/config/routes.rb +0 -56
  56. data/spec/dummy/rails-4.0.2/config.ru +0 -4
  57. data/spec/dummy/rails-4.0.2/db/schema.rb +0 -53
  58. data/spec/dummy/rails-4.0.2/db/seeds.rb +0 -7
  59. data/spec/dummy/rails-4.0.2/log/test.log +0 -3146
  60. data/spec/dummy/rails-4.0.2/public/404.html +0 -58
  61. data/spec/dummy/rails-4.0.2/public/422.html +0 -58
  62. data/spec/dummy/rails-4.0.2/public/500.html +0 -57
  63. data/spec/dummy/rails-4.0.2/public/favicon.ico +0 -0
  64. data/spec/dummy/rails-4.0.2/public/robots.txt +0 -5
  65. data/spec/dummy/rails-4.0.2/test/fixtures/users.yml +0 -7
  66. data/spec/dummy/rails-4.0.2/test/models/user_test.rb +0 -7
  67. data/spec/dummy/rails-4.0.2/test/test_helper.rb +0 -15
  68. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13195a56ea8581e42f709ea01ea4604f +0 -0
  69. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  70. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/148f39f7dc2ea6cb194598111dbd4598 +0 -0
  71. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/1d6bc1877ba2bbb89f393e10e8303d39 +0 -0
  72. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  73. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/311d2b645a860b78f79ff156f12092ce +0 -0
  74. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  75. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/39651f0f2ac78423732234ebf092c632 +0 -0
  76. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/5c85b1b5ac27b699c5f800c4e7ec82fb +0 -0
  77. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/68752c7ddc300bee3e9823db8befc306 +0 -0
  78. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/6961013077b8573ed19d1e33abb8ebc5 +0 -0
  79. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/7a316b3629b980c6d3a28924cb5fbbd8 +0 -0
  80. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/8698d6fed0ef2f173a377160752b959f +0 -0
  81. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/8bab520aad78da438df1c428288cf229 +0 -0
  82. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  83. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  84. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  85. data/spec/dummy/rails-4.0.2/tmp/cache/assets/test/sprockets/fa138a16887e031c0ae1b4caccfb4c05 +0 -0
  86. data/spec/dummy/rails-4.0.4/db/migrate/20140519075749_create_users.rb +0 -9
  87. data/spec/dummy/rails-4.0.4/db/migrate/20140519075751424424898000_create_notify_user_notifications.rb +0 -13
  88. data/spec/dummy/rails-4.0.4/db/migrate/20140519075751426426728000_create_notify_user_unsubscribes.rb +0 -10
  89. data/spec/dummy/rails-4.0.4/db/migrate/20140519075751428428230000_create_notify_user_user_hashes.rb +0 -12
@@ -1,36 +0,0 @@
1
- Rails402::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 asset server for tests with Cache-Control for performance.
16
- config.serve_static_assets = 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
- # Print deprecation notices to the stderr.
35
- config.active_support.deprecation = :stderr
36
- end
@@ -1,7 +0,0 @@
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!
@@ -1,4 +0,0 @@
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]
@@ -1,16 +0,0 @@
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
@@ -1,5 +0,0 @@
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
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,14 +0,0 @@
1
- NotifyUser.setup do |config|
2
-
3
- # Override the email address from which notifications appear to be sent.
4
- config.mailer_sender = "please-change-me-at-config-initializers-notify-user@example.com"
5
-
6
- # NotifyUser will call this within NotificationsController to ensure the user is authenticated.
7
- config.authentication_method = :authenticate_user!
8
-
9
- # NotifyUser will call this within NotificationsController to return the current logged in user.
10
- config.current_user_method = :current_user
11
-
12
- # Override the default notification type
13
- config.unsubscribable_notifications = ['NewPostNotification']
14
- end
@@ -1,12 +0,0 @@
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 your secret_key_base is kept private
11
- # if you're sharing your code publicly.
12
- Rails402::Application.config.secret_key_base = '465f947d799056a01ee40200c89105d0564deb9563d487a774b2ff7dfc6cf4fde48bbcb7043f6dfa15e22f238ccd68d06e52b36ea233d9e22885f5f6d6811f2e'
@@ -1,3 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Rails402::Application.config.session_store :cookie_store, key: '_rails-4_0_2_session'
@@ -1,14 +0,0 @@
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
@@ -1,23 +0,0 @@
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"
@@ -1,56 +0,0 @@
1
- Rails402::Application.routes.draw do
2
- # The priority is based upon order of creation: first created -> highest priority.
3
- # See how all your routes lay out with "rake routes".
4
-
5
- # You can have the root of your site routed with "root"
6
- # root 'welcome#index'
7
-
8
- # Example of regular route:
9
- # get 'products/:id' => 'catalog#view'
10
-
11
- # Example of named route that can be invoked with purchase_url(id: product.id)
12
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13
-
14
- # Example resource route (maps HTTP verbs to controller actions automatically):
15
- # resources :products
16
-
17
- # Example resource route with options:
18
- # resources :products do
19
- # member do
20
- # get 'short'
21
- # post 'toggle'
22
- # end
23
- #
24
- # collection do
25
- # get 'sold'
26
- # end
27
- # end
28
-
29
- # Example resource route with sub-resources:
30
- # resources :products do
31
- # resources :comments, :sales
32
- # resource :seller
33
- # end
34
-
35
- # Example resource route with more complex sub-resources:
36
- # resources :products do
37
- # resources :comments
38
- # resources :sales do
39
- # get 'recent', on: :collection
40
- # end
41
- # end
42
-
43
- # Example resource route with concerns:
44
- # concern :toggleable do
45
- # post 'toggle'
46
- # end
47
- # resources :posts, concerns: :toggleable
48
- # resources :photos, concerns: :toggleable
49
-
50
- # Example resource route within a namespace:
51
- # namespace :admin do
52
- # # Directs /admin/products/* to Admin::ProductsController
53
- # # (app/controllers/admin/products_controller.rb)
54
- # resources :products
55
- # end
56
- end
@@ -1,4 +0,0 @@
1
- # This file is used by Rack-based servers to start the application.
2
-
3
- require ::File.expand_path('../config/environment', __FILE__)
4
- run Rails.application
@@ -1,53 +0,0 @@
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: 20140428015531191191953000) do
15
-
16
- # These are extensions that must be enabled in order to support this database
17
- enable_extension "plpgsql"
18
-
19
- create_table "notify_user_notifications", force: true do |t|
20
- t.string "type"
21
- t.integer "target_id"
22
- t.string "target_type"
23
- t.json "params"
24
- t.string "state"
25
- t.datetime "created_at"
26
- t.datetime "updated_at"
27
- end
28
-
29
- create_table "notify_user_unsubscribes", force: true do |t|
30
- t.string "type"
31
- t.integer "target_id"
32
- t.string "target_type"
33
- t.datetime "created_at"
34
- t.datetime "updated_at"
35
- end
36
-
37
- create_table "notify_user_user_hashes", force: true do |t|
38
- t.string "type"
39
- t.integer "target_id"
40
- t.string "target_type"
41
- t.string "token"
42
- t.boolean "active", default: true
43
- t.datetime "created_at"
44
- t.datetime "updated_at"
45
- end
46
-
47
- create_table "users", force: true do |t|
48
- t.string "email"
49
- t.datetime "created_at"
50
- t.datetime "updated_at"
51
- end
52
-
53
- end
@@ -1,7 +0,0 @@
1
- # This file should contain all the record creation needed to seed the database with its default values.
2
- # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
3
- #
4
- # Examples:
5
- #
6
- # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
- # Mayor.create(name: 'Emanuel', city: cities.first)
@@ -1,3146 +0,0 @@
1
-  (3.6ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL) 
2
-  (2.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3
- ActiveRecord::SchemaMigration Load (0.7ms) SELECT "schema_migrations".* FROM "schema_migrations"
4
- Migrating to CreateUsers (20140428015529)
5
-  (0.2ms) BEGIN
6
-  (5.8ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
7
- SQL (1.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015529"]]
8
-  (0.6ms) COMMIT
9
- Migrating to CreateNotifyUserNotifications (20140428015531189189694000)
10
-  (0.4ms) BEGIN
11
-  (4.9ms) CREATE TABLE "notify_user_notifications" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "params" json, "state" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
12
- SQL (0.4ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015531189189694000"]]
13
-  (0.6ms) COMMIT
14
- Migrating to CreateNotifyUserUnsubscribes (20140428015531190190743000)
15
-  (0.4ms) BEGIN
16
-  (7.0ms) CREATE TABLE "notify_user_unsubscribes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
17
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015531190190743000"]]
18
-  (0.5ms) COMMIT
19
- Migrating to CreateNotifyUserUserHashes (20140428015531191191953000)
20
-  (0.3ms) BEGIN
21
-  (5.9ms) CREATE TABLE "notify_user_user_hashes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "token" character varying(255), "active" boolean DEFAULT 't', "created_at" timestamp, "updated_at" timestamp) 
22
- SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20140428015531191191953000"]]
23
-  (0.5ms) COMMIT
24
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
25
-  (124.4ms) DROP DATABASE IF EXISTS "rails-4_0_2_test"
26
-  (258.4ms) CREATE DATABASE "rails-4_0_2_test" ENCODING = 'unicode'
27
- SQL (2.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
28
-  (10.7ms) CREATE TABLE "notify_user_notifications" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "params" json, "state" character varying(255), "created_at" timestamp, "updated_at" timestamp)
29
-  (6.0ms) CREATE TABLE "notify_user_unsubscribes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
30
-  (6.2ms) CREATE TABLE "notify_user_user_hashes" ("id" serial primary key, "type" character varying(255), "target_id" integer, "target_type" character varying(255), "token" character varying(255), "active" boolean DEFAULT 't', "created_at" timestamp, "updated_at" timestamp)
31
-  (4.4ms) CREATE TABLE "users" ("id" serial primary key, "email" character varying(255), "created_at" timestamp, "updated_at" timestamp) 
32
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
33
-  (1.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
34
-  (0.6ms) SELECT version FROM "schema_migrations"
35
-  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20140428015531191191953000')
36
-  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES ('20140428015529')
37
-  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20140428015531189189694000')
38
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20140428015531190190743000')
39
-  (0.2ms) BEGIN
40
-  (0.2ms) SAVEPOINT active_record_1
41
- SQL (6.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00]]
42
-  (0.1ms) RELEASE SAVEPOINT active_record_1
43
- Processing by NotifyUser::NotificationsController#index as HTML
44
- Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
45
- Completed 200 OK in 14ms (Views: 11.4ms | ActiveRecord: 0.0ms)
46
-  (0.3ms) ROLLBACK
47
-  (0.1ms) BEGIN
48
-  (0.1ms) SAVEPOINT active_record_1
49
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:41 UTC +00:00]]
50
-  (0.2ms) RELEASE SAVEPOINT active_record_1
51
-  (0.2ms) SAVEPOINT active_record_1
52
-  (1.0ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 2 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
53
- SQL (1.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 2], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
54
-  (0.3ms) RELEASE SAVEPOINT active_record_1
55
- Processing by NotifyUser::NotificationsController#index as JSON
56
-  (0.8ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2 AND "notify_user_notifications"."target_type" = 'User'
57
- NotifyUser::BaseNotification Load (1.2ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 2 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
58
- Completed 200 OK in 19ms (Views: 10.7ms | ActiveRecord: 2.0ms)
59
-  (0.2ms) ROLLBACK
60
-  (0.1ms) BEGIN
61
-  (0.1ms) SAVEPOINT active_record_1
62
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
63
-  (0.1ms) RELEASE SAVEPOINT active_record_1
64
-  (0.1ms) SAVEPOINT active_record_1
65
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 3 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
66
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
67
-  (0.1ms) RELEASE SAVEPOINT active_record_1
68
-  (0.1ms) SAVEPOINT active_record_1
69
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 3 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
70
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
71
-  (0.1ms) RELEASE SAVEPOINT active_record_1
72
-  (0.1ms) SAVEPOINT active_record_1
73
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 3 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
74
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 3], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
75
-  (0.1ms) RELEASE SAVEPOINT active_record_1
76
- Processing by NotifyUser::NotificationsController#index as HTML
77
- NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 3 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
78
- Completed 200 OK in 721ms (Views: 719.5ms | ActiveRecord: 0.8ms)
79
-  (0.4ms) ROLLBACK
80
-  (0.1ms) BEGIN
81
-  (0.2ms) SAVEPOINT active_record_1
82
- SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
83
-  (0.1ms) RELEASE SAVEPOINT active_record_1
84
-  (0.1ms) SAVEPOINT active_record_1
85
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
86
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
87
-  (0.1ms) RELEASE SAVEPOINT active_record_1
88
-  (0.2ms) SAVEPOINT active_record_1
89
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
90
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
91
-  (0.2ms) RELEASE SAVEPOINT active_record_1
92
-  (0.1ms) SAVEPOINT active_record_1
93
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
94
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 4], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
95
-  (0.1ms) RELEASE SAVEPOINT active_record_1
96
- Processing by NotifyUser::NotificationsController#read as HTML
97
- Parameters: {"id"=>"5"}
98
- NotifyUser::BaseNotification Load (1.1ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 4 AND "notify_user_notifications"."target_type" = 'User' AND (id = '5') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
99
-  (0.2ms) SAVEPOINT active_record_1
100
- User Load (1.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 4]]
101
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 4 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
102
- SQL (2.3ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 5 [["state", "read"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
103
-  (0.2ms) RELEASE SAVEPOINT active_record_1
104
- Completed 200 OK in 28ms (Views: 2.2ms | ActiveRecord: 5.6ms)
105
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 5 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
106
-  (0.2ms) ROLLBACK
107
-  (0.2ms) BEGIN
108
-  (0.2ms) SAVEPOINT active_record_1
109
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
110
-  (0.2ms) RELEASE SAVEPOINT active_record_1
111
-  (0.1ms) SAVEPOINT active_record_1
112
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
113
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
114
-  (0.3ms) RELEASE SAVEPOINT active_record_1
115
-  (0.2ms) SAVEPOINT active_record_1
116
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
117
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
118
-  (0.2ms) RELEASE SAVEPOINT active_record_1
119
-  (0.1ms) SAVEPOINT active_record_1
120
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 5 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
121
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 5], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
122
-  (0.2ms) RELEASE SAVEPOINT active_record_1
123
- Processing by NotifyUser::NotificationsController#mark_all as HTML
124
- SQL (1.0ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 5 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
125
- Redirected to http://test.host/notify_user/notifications
126
- Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
127
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 5 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
128
-  (0.2ms) ROLLBACK
129
-  (0.2ms) BEGIN
130
-  (0.2ms) SAVEPOINT active_record_1
131
- SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
132
-  (0.2ms) RELEASE SAVEPOINT active_record_1
133
-  (0.1ms) SAVEPOINT active_record_1
134
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 6 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
135
- SQL (1.0ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 6], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
136
-  (0.2ms) RELEASE SAVEPOINT active_record_1
137
- Processing by NotifyUser::NotificationsController#mark_read as HTML
138
- Parameters: {"ids"=>["11"]}
139
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 6 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('11'))
140
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 6 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('11'))
141
- Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 1.3ms)
142
- NewPostNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 11]]
143
-  (0.3ms) ROLLBACK
144
-  (0.2ms) BEGIN
145
-  (0.2ms) SAVEPOINT active_record_1
146
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
147
-  (0.2ms) RELEASE SAVEPOINT active_record_1
148
-  (0.2ms) SAVEPOINT active_record_1
149
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 7 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
150
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 7], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
151
-  (0.2ms) RELEASE SAVEPOINT active_record_1
152
- Processing by NotifyUser::NotificationsController#mark_read as HTML
153
- Parameters: {"ids"=>["12"]}
154
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 7 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('12'))
155
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 7 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('12'))
156
- Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 1.2ms)
157
-  (0.2ms) ROLLBACK
158
-  (0.2ms) BEGIN
159
-  (0.2ms) SAVEPOINT active_record_1
160
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
161
-  (0.2ms) RELEASE SAVEPOINT active_record_1
162
-  (0.1ms) SAVEPOINT active_record_1
163
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
164
- SQL (0.8ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 8], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
165
-  (0.2ms) RELEASE SAVEPOINT active_record_1
166
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
167
- Processing by NotifyUser::NotificationsController#subscriptions as HTML
168
- Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
169
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
170
-  (0.2ms) SAVEPOINT active_record_1
171
- NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 8) LIMIT 1
172
- SQL (1.8ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["target_id", 8], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
173
-  (0.2ms) RELEASE SAVEPOINT active_record_1
174
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
175
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
176
- Completed 200 OK in 33ms (Views: 0.3ms | ActiveRecord: 4.1ms)
177
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
178
-  (0.2ms) ROLLBACK
179
-  (0.1ms) BEGIN
180
-  (0.1ms) SAVEPOINT active_record_1
181
- SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
182
-  (0.1ms) RELEASE SAVEPOINT active_record_1
183
-  (0.1ms) SAVEPOINT active_record_1
184
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
185
- SQL (0.8ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 9], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
186
-  (0.2ms) RELEASE SAVEPOINT active_record_1
187
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
188
- Processing by NotifyUser::NotificationsController#subscriptions as HTML
189
- Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
190
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
191
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
192
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
193
- Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.1ms)
194
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
195
-  (0.1ms) ROLLBACK
196
-  (0.2ms) BEGIN
197
-  (0.1ms) SAVEPOINT active_record_1
198
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:42 UTC +00:00]]
199
-  (0.1ms) RELEASE SAVEPOINT active_record_1
200
-  (0.1ms) SAVEPOINT active_record_1
201
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
202
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 10], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
203
-  (0.3ms) RELEASE SAVEPOINT active_record_1
204
- Processing by NotifyUser::NotificationsController#unsubscribe as HTML
205
- Parameters: {"type"=>"NewPostNotification"}
206
-  (0.2ms) SAVEPOINT active_record_1
207
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 10) LIMIT 1
208
- SQL (0.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 10], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
209
-  (0.2ms) RELEASE SAVEPOINT active_record_1
210
- Redirected to http://test.host/notify_user/notifications/unsubscribe
211
- Completed 302 Found in 5ms (ActiveRecord: 1.3ms)
212
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
213
-  (0.1ms) ROLLBACK
214
-  (0.1ms) BEGIN
215
-  (0.1ms) SAVEPOINT active_record_1
216
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
217
-  (0.3ms) RELEASE SAVEPOINT active_record_1
218
-  (0.3ms) SAVEPOINT active_record_1
219
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 11 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
220
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
221
-  (0.1ms) RELEASE SAVEPOINT active_record_1
222
-  (0.1ms) SAVEPOINT active_record_1
223
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 11) LIMIT 1
224
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 11], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
225
-  (0.1ms) RELEASE SAVEPOINT active_record_1
226
- Processing by NotifyUser::NotificationsController#subscribe as HTML
227
- Parameters: {"type"=>"NewPostNotification"}
228
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 11 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
229
-  (0.1ms) SAVEPOINT active_record_1
230
- SQL (0.6ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 3]]
231
-  (0.1ms) RELEASE SAVEPOINT active_record_1
232
- Redirected to http://test.host/notify_user/notifications/unsubscribe
233
- Completed 302 Found in 4ms (ActiveRecord: 1.3ms)
234
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
235
-  (0.1ms) ROLLBACK
236
-  (0.1ms) BEGIN
237
-  (0.2ms) SAVEPOINT active_record_1
238
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
239
-  (0.1ms) RELEASE SAVEPOINT active_record_1
240
-  (0.1ms) SAVEPOINT active_record_1
241
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 12 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
242
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
243
-  (0.1ms) RELEASE SAVEPOINT active_record_1
244
- NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 12 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
245
-  (0.2ms) SAVEPOINT active_record_1
246
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA' LIMIT 1
247
- SQL (0.9ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 12], ["target_type", "User"], ["token", "M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
248
-  (0.1ms) RELEASE SAVEPOINT active_record_1
249
- Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
250
- Parameters: {"type"=>"NewPostNotification", "token"=>"M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA"}
251
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
252
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'M4E8ub49WPsPj4o_VQktSgMtaD9RNIgFEOxOqHrkzbcA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
253
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 12]]
254
-  (0.2ms) SAVEPOINT active_record_1
255
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 12) LIMIT 1
256
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 12], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
257
-  (0.2ms) RELEASE SAVEPOINT active_record_1
258
-  (0.2ms) SAVEPOINT active_record_1
259
- SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 1 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
260
-  (0.2ms) RELEASE SAVEPOINT active_record_1
261
- Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 3.7ms)
262
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
263
-  (0.2ms) ROLLBACK
264
-  (0.2ms) BEGIN
265
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
266
-  (0.2ms) SAVEPOINT active_record_1
267
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
268
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
269
-  (0.1ms) SAVEPOINT active_record_1
270
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
271
-  (0.2ms) ROLLBACK
272
-  (0.1ms) BEGIN
273
- NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
274
-  (0.2ms) SAVEPOINT active_record_1
275
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
276
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
277
-  (0.1ms) SAVEPOINT active_record_1
278
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
279
-  (0.2ms) ROLLBACK
280
-  (0.1ms) BEGIN
281
- NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
282
-  (0.3ms) SAVEPOINT active_record_1
283
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
284
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
285
-  (0.1ms) SAVEPOINT active_record_1
286
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
287
-  (0.2ms) ROLLBACK
288
-  (0.2ms) BEGIN
289
-  (0.2ms) SAVEPOINT active_record_1
290
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
291
-  (0.2ms) RELEASE SAVEPOINT active_record_1
292
-  (0.2ms) SAVEPOINT active_record_1
293
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 13 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
294
- SQL (1.0ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 13], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
295
-  (0.2ms) RELEASE SAVEPOINT active_record_1
296
-  (0.2ms) ROLLBACK
297
-  (0.2ms) BEGIN
298
-  (0.2ms) SAVEPOINT active_record_1
299
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
300
-  (0.2ms) RELEASE SAVEPOINT active_record_1
301
-  (0.2ms) SAVEPOINT active_record_1
302
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 14 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
303
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 14], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
304
-  (0.2ms) RELEASE SAVEPOINT active_record_1
305
-  (0.2ms) ROLLBACK
306
-  (0.1ms) BEGIN
307
-  (0.1ms) SAVEPOINT active_record_1
308
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
309
-  (0.2ms) RELEASE SAVEPOINT active_record_1
310
-  (0.2ms) SAVEPOINT active_record_1
311
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 15 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
312
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 15], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
313
-  (0.2ms) RELEASE SAVEPOINT active_record_1
314
-  (0.1ms) SAVEPOINT active_record_1
315
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 15 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
316
- SQL (0.8ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 20 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
317
-  (0.1ms) RELEASE SAVEPOINT active_record_1
318
- NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
319
-  (0.2ms) ROLLBACK
320
-  (0.1ms) BEGIN
321
-  (0.2ms) SAVEPOINT active_record_1
322
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
323
-  (0.2ms) RELEASE SAVEPOINT active_record_1
324
-  (0.2ms) SAVEPOINT active_record_1
325
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 16 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
326
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 16], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
327
-  (0.2ms) RELEASE SAVEPOINT active_record_1
328
-  (0.1ms) SAVEPOINT active_record_1
329
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 16 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
330
- SQL (1.2ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 21 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
331
-  (0.3ms) RELEASE SAVEPOINT active_record_1
332
- NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
333
-  (0.2ms) ROLLBACK
334
-  (0.1ms) BEGIN
335
-  (0.2ms) SAVEPOINT active_record_1
336
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
337
-  (0.2ms) RELEASE SAVEPOINT active_record_1
338
-  (0.2ms) SAVEPOINT active_record_1
339
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 17 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
340
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 17], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
341
-  (0.2ms) RELEASE SAVEPOINT active_record_1
342
-  (0.1ms) SAVEPOINT active_record_1
343
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 17 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
344
- SQL (0.9ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 22 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
345
-  (0.1ms) RELEASE SAVEPOINT active_record_1
346
- NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
347
-  (0.2ms) ROLLBACK
348
-  (0.1ms) BEGIN
349
-  (0.1ms) SAVEPOINT active_record_1
350
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
351
-  (0.2ms) RELEASE SAVEPOINT active_record_1
352
-  (0.2ms) SAVEPOINT active_record_1
353
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
354
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 18], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
355
-  (0.2ms) RELEASE SAVEPOINT active_record_1
356
-  (0.1ms) SAVEPOINT active_record_1
357
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
358
- SQL (1.1ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 23 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
359
-  (0.2ms) RELEASE SAVEPOINT active_record_1
360
- NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
361
-  (0.2ms) ROLLBACK
362
-  (0.2ms) BEGIN
363
-  (0.2ms) SAVEPOINT active_record_1
364
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
365
-  (0.2ms) RELEASE SAVEPOINT active_record_1
366
-  (0.1ms) SAVEPOINT active_record_1
367
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 19 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
368
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 19], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
369
-  (0.2ms) RELEASE SAVEPOINT active_record_1
370
-  (0.2ms) SAVEPOINT active_record_1
371
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
372
-  (0.2ms) ROLLBACK
373
-  (0.1ms) BEGIN
374
-  (0.1ms) SAVEPOINT active_record_1
375
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
376
-  (0.2ms) RELEASE SAVEPOINT active_record_1
377
-  (0.1ms) SAVEPOINT active_record_1
378
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
379
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 20], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
380
-  (0.2ms) RELEASE SAVEPOINT active_record_1
381
-  (0.2ms) SAVEPOINT active_record_1
382
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
383
-  (0.2ms) RELEASE SAVEPOINT active_record_1
384
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 20 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 25)
385
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 25]]
386
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 20]]
387
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 20 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
388
-  (0.1ms) SAVEPOINT active_record_1
389
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 20]]
390
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
391
- SQL (0.8ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 25 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
392
-  (0.1ms) RELEASE SAVEPOINT active_record_1
393
-  (0.2ms) SAVEPOINT active_record_1
394
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
395
-  (0.2ms) RELEASE SAVEPOINT active_record_1
396
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 25 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
397
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 20]]
398
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
399
- NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 25 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
400
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 20]]
401
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
402
-  (0.2ms) ROLLBACK
403
-  (0.2ms) BEGIN
404
-  (0.1ms) SAVEPOINT active_record_1
405
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
406
-  (0.1ms) RELEASE SAVEPOINT active_record_1
407
-  (0.1ms) SAVEPOINT active_record_1
408
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 21 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
409
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 21], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
410
-  (0.1ms) RELEASE SAVEPOINT active_record_1
411
-  (0.1ms) SAVEPOINT active_record_1
412
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 21 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
413
-  (0.1ms) RELEASE SAVEPOINT active_record_1
414
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 21 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 26)
415
-  (0.2ms) SAVEPOINT active_record_1
416
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 21 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
417
- SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 21], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
418
-  (0.1ms) RELEASE SAVEPOINT active_record_1
419
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 21 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 27)
420
-  (0.2ms) ROLLBACK
421
-  (0.1ms) BEGIN
422
-  (0.1ms) SAVEPOINT active_record_1
423
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
424
-  (0.1ms) RELEASE SAVEPOINT active_record_1
425
-  (0.1ms) SAVEPOINT active_record_1
426
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
427
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 22], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
428
-  (0.2ms) RELEASE SAVEPOINT active_record_1
429
-  (0.2ms) SAVEPOINT active_record_1
430
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
431
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 22], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
432
-  (0.2ms) RELEASE SAVEPOINT active_record_1
433
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 29]]
434
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 22]]
435
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 22 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
436
-  (0.1ms) SAVEPOINT active_record_1
437
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 22]]
438
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
439
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 28 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
440
-  (0.1ms) RELEASE SAVEPOINT active_record_1
441
-  (0.1ms) SAVEPOINT active_record_1
442
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 22]]
443
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
444
- SQL (0.8ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 29 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
445
-  (0.1ms) RELEASE SAVEPOINT active_record_1
446
-  (0.1ms) SAVEPOINT active_record_1
447
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
448
-  (0.2ms) RELEASE SAVEPOINT active_record_1
449
-  (0.1ms) SAVEPOINT active_record_1
450
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
451
-  (0.2ms) RELEASE SAVEPOINT active_record_1
452
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 22 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
453
- NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 22 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
454
-  (0.1ms) SAVEPOINT active_record_1
455
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9tnENa7G-HQVTO3EhTWl7ADiNNKeAMIo5jndQVygrlKQ' LIMIT 1
456
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 22], ["target_type", "User"], ["token", "9tnENa7G-HQVTO3EhTWl7ADiNNKeAMIo5jndQVygrlKQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
457
-  (0.2ms) RELEASE SAVEPOINT active_record_1
458
-
459
- Sent mail to user@example.com (10.7ms)
460
- Date: Mon, 28 Apr 2014 11:55:43 +1000
461
- From: please-change-me-at-config-initializers-notify-user@example.com
462
- To: user@example.com
463
- Message-ID: <535db51f6c70a_7503fdda542dbec85a1@wp.local.mail>
464
- Subject: Rails402: You have new Newpostnotification notifications.
465
- Mime-Version: 1.0
466
- Content-Type: text/html;
467
- charset=UTF-8
468
- Content-Transfer-Encoding: quoted-printable
469
-
470
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
471
- tml4/strict.dtd">
472
- <html>
473
- <head>
474
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
475
- "/>
476
- <title></title>
477
- </head>
478
-
479
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
480
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
481
- ing: optimizeLegibility;">
482
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
483
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
484
- Logo
485
- </div>
486
- </div>
487
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
488
- ">
489
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
490
- =
491
-
492
- <div>
493
- New Post Notification happened. =
494
-
495
- </div>
496
- <div>
497
- New Post Notification happened. =
498
-
499
- </div>
500
-
501
- </div>
502
- </div>
503
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
504
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
505
- <p style=3D"text-align: center;">
506
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
507
- _unsubscribe?token=3D9tnENa7G-HQVTO3EhTWl7ADiNNKeAMIo5jndQVygrlKQ&amp;typ=
508
- e=3DNewPostNotification">Unsubscribe</a>
509
- </p>
510
- <p style=3D"text-align: center;">
511
- This is the default generated layout. A privacy declaration could g=
512
- o here.
513
- </p>
514
- <p style=3D"text-align: center; margin-bottom: 0px;">
515
- =C2=A9 MyCompany Pty Ltd
516
- </p>
517
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
518
- ABN 123 456 789
519
- </p>
520
- </div>
521
- </div>
522
- </body>
523
- </html>=
524
-
525
-  (0.2ms) ROLLBACK
526
-  (0.2ms) BEGIN
527
-  (0.1ms) SAVEPOINT active_record_1
528
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
529
-  (0.1ms) RELEASE SAVEPOINT active_record_1
530
-  (0.1ms) SAVEPOINT active_record_1
531
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
532
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 23], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
533
-  (0.2ms) RELEASE SAVEPOINT active_record_1
534
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 30]]
535
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 23]]
536
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 23 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
537
-  (0.2ms) SAVEPOINT active_record_1
538
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 23]]
539
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
540
- SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 30 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
541
-  (0.1ms) RELEASE SAVEPOINT active_record_1
542
-  (0.1ms) SAVEPOINT active_record_1
543
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
544
-  (0.2ms) RELEASE SAVEPOINT active_record_1
545
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 30 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
546
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 23]]
547
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
548
- NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 23 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
549
-  (0.2ms) SAVEPOINT active_record_1
550
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zzd6w9ekLF3Wla4MYXDEBgOf4pSB6hIi8Tu7NFXrpxaA' LIMIT 1
551
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 23], ["target_type", "User"], ["token", "zzd6w9ekLF3Wla4MYXDEBgOf4pSB6hIi8Tu7NFXrpxaA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
552
-  (0.1ms) RELEASE SAVEPOINT active_record_1
553
-
554
- Sent mail to user@example.com (8.7ms)
555
- Date: Mon, 28 Apr 2014 11:55:43 +1000
556
- From: please-change-me-at-config-initializers-notify-user@example.com
557
- To: user@example.com
558
- Message-ID: <535db51f8774f_7503fdda542dbec8663@wp.local.mail>
559
- Subject: Rails402: You have a new Newpostnotification notification.
560
- Mime-Version: 1.0
561
- Content-Type: text/html;
562
- charset=UTF-8
563
- Content-Transfer-Encoding: quoted-printable
564
-
565
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
566
- tml4/strict.dtd">
567
- <html>
568
- <head>
569
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
570
- "/>
571
- <title></title>
572
- </head>
573
-
574
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
575
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
576
- ing: optimizeLegibility;">
577
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
578
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
579
- Logo
580
- </div>
581
- </div>
582
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
583
- ">
584
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
585
- New Post Notification happened.
586
-
587
- </div>
588
- </div>
589
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
590
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
591
- <p style=3D"text-align: center;">
592
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
593
- _unsubscribe?token=3Dzzd6w9ekLF3Wla4MYXDEBgOf4pSB6hIi8Tu7NFXrpxaA&amp;typ=
594
- e=3DNewPostNotification">Unsubscribe</a>
595
- </p>
596
- <p style=3D"text-align: center;">
597
- This is the default generated layout. A privacy declaration could g=
598
- o here.
599
- </p>
600
- <p style=3D"text-align: center; margin-bottom: 0px;">
601
- =C2=A9 MyCompany Pty Ltd
602
- </p>
603
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
604
- ABN 123 456 789
605
- </p>
606
- </div>
607
- </div>
608
- </body>
609
- </html>=
610
-
611
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 23 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
612
-  (0.2ms) ROLLBACK
613
-  (0.1ms) BEGIN
614
-  (0.2ms) SAVEPOINT active_record_1
615
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
616
-  (0.2ms) RELEASE SAVEPOINT active_record_1
617
-  (0.1ms) SAVEPOINT active_record_1
618
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 24) LIMIT 1
619
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 24], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
620
-  (0.1ms) RELEASE SAVEPOINT active_record_1
621
-  (0.1ms) SAVEPOINT active_record_1
622
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 24 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
623
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
624
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
625
-  (0.2ms) ROLLBACK
626
-  (0.2ms) BEGIN
627
-  (0.2ms) SAVEPOINT active_record_1
628
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
629
-  (0.2ms) RELEASE SAVEPOINT active_record_1
630
-  (0.1ms) SAVEPOINT active_record_1
631
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
632
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 25], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
633
-  (0.2ms) RELEASE SAVEPOINT active_record_1
634
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 31 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
635
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 25]]
636
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 25 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
637
-  (0.2ms) ROLLBACK
638
-  (0.1ms) BEGIN
639
-  (0.1ms) SAVEPOINT active_record_1
640
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
641
-  (0.2ms) RELEASE SAVEPOINT active_record_1
642
-  (0.2ms) SAVEPOINT active_record_1
643
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
644
- SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 26], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
645
-  (0.2ms) RELEASE SAVEPOINT active_record_1
646
-  (0.2ms) SAVEPOINT active_record_1
647
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
648
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 26], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
649
-  (0.2ms) RELEASE SAVEPOINT active_record_1
650
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 33]]
651
- User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 26]]
652
- NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 26 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
653
-  (0.5ms) SAVEPOINT active_record_1
654
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 26]]
655
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
656
- SQL (0.8ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 32 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
657
-  (0.1ms) RELEASE SAVEPOINT active_record_1
658
-  (0.1ms) SAVEPOINT active_record_1
659
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 26]]
660
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
661
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 33 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
662
-  (0.1ms) RELEASE SAVEPOINT active_record_1
663
-  (0.2ms) SAVEPOINT active_record_1
664
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
665
-  (0.2ms) RELEASE SAVEPOINT active_record_1
666
-  (0.2ms) SAVEPOINT active_record_1
667
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
668
-  (0.2ms) RELEASE SAVEPOINT active_record_1
669
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 26 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
670
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 26 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
671
-  (0.1ms) SAVEPOINT active_record_1
672
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3pCdVjcojoGfTyuLR6ivYghvUBtCLadek_AsvRbU1ufA' LIMIT 1
673
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 26], ["target_type", "User"], ["token", "3pCdVjcojoGfTyuLR6ivYghvUBtCLadek_AsvRbU1ufA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
674
-  (0.2ms) RELEASE SAVEPOINT active_record_1
675
-
676
- Sent mail to user@example.com (8.5ms)
677
- Date: Mon, 28 Apr 2014 11:55:43 +1000
678
- From: please-change-me-at-config-initializers-notify-user@example.com
679
- To: user@example.com
680
- Message-ID: <535db51f9e9e7_7503fdda542dbec872a@wp.local.mail>
681
- Subject: Rails402: You have new Newpostnotification notifications.
682
- Mime-Version: 1.0
683
- Content-Type: text/html;
684
- charset=UTF-8
685
- Content-Transfer-Encoding: quoted-printable
686
-
687
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
688
- tml4/strict.dtd">
689
- <html>
690
- <head>
691
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
692
- "/>
693
- <title></title>
694
- </head>
695
-
696
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
697
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
698
- ing: optimizeLegibility;">
699
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
700
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
701
- Logo
702
- </div>
703
- </div>
704
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
705
- ">
706
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
707
- =
708
-
709
- <div>
710
- New Post Notification happened. =
711
-
712
- </div>
713
- <div>
714
- New Post Notification happened. =
715
-
716
- </div>
717
-
718
- </div>
719
- </div>
720
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
721
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
722
- <p style=3D"text-align: center;">
723
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
724
- _unsubscribe?token=3D3pCdVjcojoGfTyuLR6ivYghvUBtCLadek_AsvRbU1ufA&amp;typ=
725
- e=3DNewPostNotification">Unsubscribe</a>
726
- </p>
727
- <p style=3D"text-align: center;">
728
- This is the default generated layout. A privacy declaration could g=
729
- o here.
730
- </p>
731
- <p style=3D"text-align: center; margin-bottom: 0px;">
732
- =C2=A9 MyCompany Pty Ltd
733
- </p>
734
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
735
- ABN 123 456 789
736
- </p>
737
- </div>
738
- </div>
739
- </body>
740
- </html>=
741
-
742
-  (0.2ms) ROLLBACK
743
-  (0.1ms) BEGIN
744
-  (0.2ms) SAVEPOINT active_record_1
745
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
746
-  (0.2ms) RELEASE SAVEPOINT active_record_1
747
-  (0.1ms) SAVEPOINT active_record_1
748
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 27 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
749
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 27], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
750
-  (0.1ms) RELEASE SAVEPOINT active_record_1
751
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 34]]
752
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]]
753
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 27 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
754
-  (0.2ms) SAVEPOINT active_record_1
755
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]]
756
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 27 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
757
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 34 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
758
-  (0.1ms) RELEASE SAVEPOINT active_record_1
759
-  (0.1ms) SAVEPOINT active_record_1
760
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 27 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
761
-  (0.1ms) RELEASE SAVEPOINT active_record_1
762
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 34 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
763
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 27]]
764
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 27 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
765
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 27 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
766
-  (0.1ms) SAVEPOINT active_record_1
767
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dz1Hax8nhBMc9oOPl1tYYg5RiQM7RcMjDJZouSPEy0Rg' LIMIT 1
768
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 27], ["target_type", "User"], ["token", "dz1Hax8nhBMc9oOPl1tYYg5RiQM7RcMjDJZouSPEy0Rg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
769
-  (0.2ms) RELEASE SAVEPOINT active_record_1
770
-
771
- Sent mail to user@example.com (9.5ms)
772
- Date: Mon, 28 Apr 2014 11:55:43 +1000
773
- From: please-change-me-at-config-initializers-notify-user@example.com
774
- To: user@example.com
775
- Message-ID: <535db51faa8cd_7503fdda542dbec884b@wp.local.mail>
776
- Subject: Rails402: You have a new Newpostnotification notification.
777
- Mime-Version: 1.0
778
- Content-Type: text/html;
779
- charset=UTF-8
780
- Content-Transfer-Encoding: quoted-printable
781
-
782
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
783
- tml4/strict.dtd">
784
- <html>
785
- <head>
786
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
787
- "/>
788
- <title></title>
789
- </head>
790
-
791
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
792
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
793
- ing: optimizeLegibility;">
794
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
795
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
796
- Logo
797
- </div>
798
- </div>
799
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
800
- ">
801
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
802
- New Post Notification happened.
803
-
804
- </div>
805
- </div>
806
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
807
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
808
- <p style=3D"text-align: center;">
809
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
810
- _unsubscribe?token=3Ddz1Hax8nhBMc9oOPl1tYYg5RiQM7RcMjDJZouSPEy0Rg&amp;typ=
811
- e=3DNewPostNotification">Unsubscribe</a>
812
- </p>
813
- <p style=3D"text-align: center;">
814
- This is the default generated layout. A privacy declaration could g=
815
- o here.
816
- </p>
817
- <p style=3D"text-align: center; margin-bottom: 0px;">
818
- =C2=A9 MyCompany Pty Ltd
819
- </p>
820
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
821
- ABN 123 456 789
822
- </p>
823
- </div>
824
- </div>
825
- </body>
826
- </html>=
827
-
828
-  (0.2ms) ROLLBACK
829
-  (0.1ms) BEGIN
830
-  (0.1ms) SAVEPOINT active_record_1
831
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
832
-  (0.2ms) RELEASE SAVEPOINT active_record_1
833
-  (0.1ms) SAVEPOINT active_record_1
834
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
835
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 28], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
836
-  (0.2ms) RELEASE SAVEPOINT active_record_1
837
-  (0.1ms) SAVEPOINT active_record_1
838
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
839
-  (0.2ms) RELEASE SAVEPOINT active_record_1
840
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
841
-  (0.1ms) SAVEPOINT active_record_1
842
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
843
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 35 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
844
-  (0.1ms) RELEASE SAVEPOINT active_record_1
845
-  (0.1ms) SAVEPOINT active_record_1
846
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
847
-  (0.2ms) RELEASE SAVEPOINT active_record_1
848
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 35 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
849
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 28]]
850
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
851
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
852
-  (0.2ms) ROLLBACK
853
-  (0.1ms) BEGIN
854
-  (0.1ms) SAVEPOINT active_record_1
855
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
856
-  (0.1ms) RELEASE SAVEPOINT active_record_1
857
-  (0.1ms) SAVEPOINT active_record_1
858
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 29) LIMIT 1
859
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 29], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
860
-  (0.1ms) RELEASE SAVEPOINT active_record_1
861
-  (0.1ms) SAVEPOINT active_record_1
862
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
863
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
864
-  (0.1ms) SAVEPOINT active_record_1
865
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
866
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
867
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
868
-  (0.2ms) ROLLBACK
869
-  (0.1ms) BEGIN
870
-  (0.1ms) SAVEPOINT active_record_1
871
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
872
-  (0.2ms) RELEASE SAVEPOINT active_record_1
873
-  (0.2ms) SAVEPOINT active_record_1
874
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 30) LIMIT 1
875
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 30], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
876
-  (0.1ms) RELEASE SAVEPOINT active_record_1
877
-  (0.1ms) SAVEPOINT active_record_1
878
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
879
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 30], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
880
-  (0.1ms) RELEASE SAVEPOINT active_record_1
881
-  (0.1ms) SAVEPOINT active_record_1
882
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
883
-  (0.1ms) RELEASE SAVEPOINT active_record_1
884
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
885
-  (0.1ms) SAVEPOINT active_record_1
886
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
887
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 36 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
888
-  (0.1ms) RELEASE SAVEPOINT active_record_1
889
-  (0.1ms) SAVEPOINT active_record_1
890
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
891
-  (0.1ms) RELEASE SAVEPOINT active_record_1
892
- NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 36 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
893
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 30]]
894
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
895
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
896
-  (0.1ms) ROLLBACK
897
-  (0.1ms) BEGIN
898
-  (0.1ms) SAVEPOINT active_record_1
899
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
900
-  (0.1ms) RELEASE SAVEPOINT active_record_1
901
-  (0.1ms) SAVEPOINT active_record_1
902
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 31 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
903
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 31], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
904
-  (0.2ms) RELEASE SAVEPOINT active_record_1
905
- NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 31 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
906
-  (0.2ms) SAVEPOINT active_record_1
907
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '49hY-f9bkFaOYZCM3bqlJQ0CjRiRGdJKen05y1a6k6qw' LIMIT 1
908
- SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 31], ["target_type", "User"], ["token", "49hY-f9bkFaOYZCM3bqlJQ0CjRiRGdJKen05y1a6k6qw"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
909
-  (0.2ms) RELEASE SAVEPOINT active_record_1
910
-  (0.1ms) ROLLBACK
911
-  (0.2ms) BEGIN
912
-  (0.2ms) SAVEPOINT active_record_1
913
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
914
-  (0.1ms) RELEASE SAVEPOINT active_record_1
915
-  (0.1ms) SAVEPOINT active_record_1
916
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 32 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
917
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 32], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
918
-  (0.1ms) RELEASE SAVEPOINT active_record_1
919
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 32 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
920
-  (0.1ms) SAVEPOINT active_record_1
921
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3VI6EOEYwBtFzmJ7Dtq3igo8DYJqrzOFCc4ZW31XBy-g' LIMIT 1
922
- SQL (0.3ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 32], ["target_type", "User"], ["token", "3VI6EOEYwBtFzmJ7Dtq3igo8DYJqrzOFCc4ZW31XBy-g"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
923
-  (0.3ms) RELEASE SAVEPOINT active_record_1
924
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 32 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
925
-  (0.2ms) ROLLBACK
926
-  (0.1ms) BEGIN
927
-  (0.1ms) SAVEPOINT active_record_1
928
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
929
-  (0.1ms) RELEASE SAVEPOINT active_record_1
930
-  (0.1ms) SAVEPOINT active_record_1
931
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 33 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
932
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["state", "pending"], ["target_id", 33], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
933
-  (0.1ms) RELEASE SAVEPOINT active_record_1
934
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 33 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
935
-  (0.1ms) SAVEPOINT active_record_1
936
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '6tZ0vCrcGTmMjLSIRd8EHQUTxezSxgCkR1z2gWhZnlIQ' LIMIT 1
937
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 33], ["target_type", "User"], ["token", "6tZ0vCrcGTmMjLSIRd8EHQUTxezSxgCkR1z2gWhZnlIQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
938
-  (0.2ms) RELEASE SAVEPOINT active_record_1
939
-  (0.1ms) SAVEPOINT active_record_1
940
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 8 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
941
-  (0.1ms) RELEASE SAVEPOINT active_record_1
942
- NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 33 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
943
-  (0.1ms) SAVEPOINT active_record_1
944
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'FKuj9ZzD5VBZqG3WJlHw8wLQYnsDvp6azn8fbBbJwiYg' LIMIT 1
945
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 33], ["target_type", "User"], ["token", "FKuj9ZzD5VBZqG3WJlHw8wLQYnsDvp6azn8fbBbJwiYg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
946
-  (0.1ms) RELEASE SAVEPOINT active_record_1
947
-  (0.1ms) ROLLBACK
948
-  (0.2ms) BEGIN
949
-  (0.2ms) SAVEPOINT active_record_1
950
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
951
-  (0.1ms) RELEASE SAVEPOINT active_record_1
952
-  (0.1ms) SAVEPOINT active_record_1
953
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 34) LIMIT 1
954
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 34], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
955
-  (0.2ms) RELEASE SAVEPOINT active_record_1
956
-  (0.1ms) SAVEPOINT active_record_1
957
- NotifyUser::Unsubscribe Exists (0.7ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 8 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 34) LIMIT 1
958
-  (0.2ms) RELEASE SAVEPOINT active_record_1
959
-  (0.2ms) SAVEPOINT active_record_1
960
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 34 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
961
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
962
-  (0.2ms) ROLLBACK
963
-  (0.2ms) BEGIN
964
-  (0.2ms) SAVEPOINT active_record_1
965
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
966
-  (0.2ms) RELEASE SAVEPOINT active_record_1
967
-  (0.1ms) SAVEPOINT active_record_1
968
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 35) LIMIT 1
969
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 35], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
970
-  (0.2ms) RELEASE SAVEPOINT active_record_1
971
-  (0.2ms) SAVEPOINT active_record_1
972
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 9 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 35) LIMIT 1
973
-  (0.3ms) RELEASE SAVEPOINT active_record_1
974
-  (0.3ms) SAVEPOINT active_record_1
975
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 35) LIMIT 1
976
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
977
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
978
-  (0.2ms) ROLLBACK
979
-  (0.2ms) BEGIN
980
-  (0.2ms) SAVEPOINT active_record_1
981
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
982
-  (0.2ms) RELEASE SAVEPOINT active_record_1
983
-  (0.2ms) SAVEPOINT active_record_1
984
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 36) LIMIT 1
985
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 36], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
986
-  (0.2ms) RELEASE SAVEPOINT active_record_1
987
-  (0.1ms) SAVEPOINT active_record_1
988
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 10 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 36) LIMIT 1
989
-  (0.2ms) RELEASE SAVEPOINT active_record_1
990
-  (0.2ms) SAVEPOINT active_record_1
991
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 36) LIMIT 1
992
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
993
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 36 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
994
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 36 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
995
-  (0.2ms) SAVEPOINT active_record_1
996
- SQL (0.3ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 10]]
997
-  (0.2ms) RELEASE SAVEPOINT active_record_1
998
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 36 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
999
-  (0.2ms) ROLLBACK
1000
-  (0.1ms) BEGIN
1001
-  (0.2ms) SAVEPOINT active_record_1
1002
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1003
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1004
-  (0.1ms) SAVEPOINT active_record_1
1005
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 37 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1006
- SQL (0.9ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 37], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1007
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1008
-  (0.2ms) ROLLBACK
1009
-  (0.2ms) BEGIN
1010
-  (0.2ms) SAVEPOINT active_record_1
1011
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1012
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1013
-  (0.2ms) SAVEPOINT active_record_1
1014
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EuBzFJ3yNx4i9cDYauEXLw7LhLmqtC-Q8OzhONkeq0RQ' LIMIT 1
1015
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 38], ["target_type", "User"], ["token", "EuBzFJ3yNx4i9cDYauEXLw7LhLmqtC-Q8OzhONkeq0RQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1016
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1017
-  (0.1ms) SAVEPOINT active_record_1
1018
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1019
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EuBzFJ3yNx4i9cDYauEXLw7LhLmqtC-Q8OzhONkeq0RQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
1020
-  (0.2ms) ROLLBACK
1021
-  (0.1ms) BEGIN
1022
-  (0.1ms) SAVEPOINT active_record_1
1023
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1024
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1025
-  (0.1ms) SAVEPOINT active_record_1
1026
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'l3_y0_cAts5KXpFuTAfKbQr0VZViDS2YFU0PWUL-W36A' LIMIT 1
1027
- SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 39], ["target_type", "User"], ["token", "l3_y0_cAts5KXpFuTAfKbQr0VZViDS2YFU0PWUL-W36A"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1028
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1029
-  (0.1ms) SAVEPOINT active_record_1
1030
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1031
-  (0.1ms) SAVEPOINT active_record_1
1032
- SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 11 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1033
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1034
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'l3_y0_cAts5KXpFuTAfKbQr0VZViDS2YFU0PWUL-W36A' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
1035
-  (0.1ms) ROLLBACK
1036
-  (0.1ms) BEGIN
1037
-  (0.1ms) SAVEPOINT active_record_1
1038
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1039
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1040
-  (0.1ms) SAVEPOINT active_record_1
1041
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'b9vNh5R1E1f53mhp2l03lwfTf6hOyFURE4VXMXIjn4oQ' LIMIT 1
1042
- SQL (1.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 40], ["target_type", "User"], ["token", "b9vNh5R1E1f53mhp2l03lwfTf6hOyFURE4VXMXIjn4oQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1043
-  (0.4ms) RELEASE SAVEPOINT active_record_1
1044
-  (0.2ms) SAVEPOINT active_record_1
1045
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1046
-  (0.1ms) SAVEPOINT active_record_1
1047
- SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 12 [["active", false], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1048
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1049
-  (0.2ms) ROLLBACK
1050
-  (0.1ms) BEGIN
1051
-  (0.1ms) SAVEPOINT active_record_1
1052
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1053
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1054
-  (0.1ms) SAVEPOINT active_record_1
1055
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7YqpCDG-rQ9mV__JfpIxkga6J2lXc9Z5FQl7LFdU_sKw' LIMIT 1
1056
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00], ["target_id", 41], ["target_type", "User"], ["token", "7YqpCDG-rQ9mV__JfpIxkga6J2lXc9Z5FQl7LFdU_sKw"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 01:55:43 UTC +00:00]]
1057
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1058
-  (0.1ms) SAVEPOINT active_record_1
1059
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1060
-  (0.1ms) ROLLBACK
1061
-  (0.2ms) BEGIN
1062
-  (0.2ms) ROLLBACK
1063
-  (0.2ms) BEGIN
1064
-  (0.1ms) ROLLBACK
1065
-  (0.1ms) BEGIN
1066
-  (0.1ms) ROLLBACK
1067
-  (0.1ms) BEGIN
1068
-  (0.2ms) ROLLBACK
1069
-  (0.1ms) BEGIN
1070
-  (0.1ms) ROLLBACK
1071
-  (0.1ms) BEGIN
1072
-  (0.1ms) ROLLBACK
1073
-  (0.1ms) BEGIN
1074
-  (0.1ms) ROLLBACK
1075
-  (0.1ms) BEGIN
1076
-  (0.2ms) SAVEPOINT active_record_1
1077
- SQL (4.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1078
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1079
- Processing by NotifyUser::NotificationsController#index as HTML
1080
- Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
1081
- Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms)
1082
-  (0.3ms) ROLLBACK
1083
-  (0.1ms) BEGIN
1084
-  (0.2ms) SAVEPOINT active_record_1
1085
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1086
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1087
-  (0.2ms) SAVEPOINT active_record_1
1088
-  (0.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 43 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1089
- SQL (1.9ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 43], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1090
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1091
- Processing by NotifyUser::NotificationsController#index as JSON
1092
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 43 AND "notify_user_notifications"."target_type" = 'User'
1093
- NotifyUser::BaseNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 43 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
1094
- Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 1.5ms)
1095
-  (0.2ms) ROLLBACK
1096
-  (0.2ms) BEGIN
1097
-  (0.2ms) SAVEPOINT active_record_1
1098
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1099
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1100
-  (0.1ms) SAVEPOINT active_record_1
1101
-  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1102
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1103
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1104
-  (0.1ms) SAVEPOINT active_record_1
1105
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1106
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1107
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1108
-  (0.1ms) SAVEPOINT active_record_1
1109
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1110
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1111
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1112
- Processing by NotifyUser::NotificationsController#index as HTML
1113
- NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 44 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
1114
- Completed 200 OK in 45ms (Views: 42.8ms | ActiveRecord: 0.8ms)
1115
-  (0.3ms) ROLLBACK
1116
-  (0.2ms) BEGIN
1117
-  (0.1ms) SAVEPOINT active_record_1
1118
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1119
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1120
-  (0.1ms) SAVEPOINT active_record_1
1121
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1122
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1123
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1124
-  (0.1ms) SAVEPOINT active_record_1
1125
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1126
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1127
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1128
-  (0.1ms) SAVEPOINT active_record_1
1129
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1130
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1131
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1132
- Processing by NotifyUser::NotificationsController#read as HTML
1133
- Parameters: {"id"=>"45"}
1134
- NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 45 AND "notify_user_notifications"."target_type" = 'User' AND (id = '45') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1135
-  (0.1ms) SAVEPOINT active_record_1
1136
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 45]]
1137
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1138
- SQL (1.0ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 45 [["state", "read"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1139
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1140
- Completed 200 OK in 16ms (Views: 1.7ms | ActiveRecord: 3.1ms)
1141
- NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 45 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1142
-  (0.2ms) ROLLBACK
1143
-  (0.1ms) BEGIN
1144
-  (0.2ms) SAVEPOINT active_record_1
1145
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1146
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1147
-  (0.1ms) SAVEPOINT active_record_1
1148
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1149
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1150
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1151
-  (0.1ms) SAVEPOINT active_record_1
1152
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1153
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1154
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1155
-  (0.1ms) SAVEPOINT active_record_1
1156
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1157
- SQL (0.9ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1158
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1159
- Processing by NotifyUser::NotificationsController#mark_all as HTML
1160
- SQL (1.0ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 46 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
1161
- Redirected to http://test.host/notify_user/notifications
1162
- Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
1163
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 46 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
1164
-  (0.2ms) ROLLBACK
1165
-  (0.1ms) BEGIN
1166
-  (0.1ms) SAVEPOINT active_record_1
1167
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1168
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1169
-  (0.1ms) SAVEPOINT active_record_1
1170
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 47 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1171
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 47], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1172
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1173
- Processing by NotifyUser::NotificationsController#mark_read as HTML
1174
- Parameters: {"ids"=>["51"]}
1175
- SQL (0.5ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 47 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('51'))
1176
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 47 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('51'))
1177
- Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 1.0ms)
1178
- NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 51]]
1179
-  (0.2ms) ROLLBACK
1180
-  (0.1ms) BEGIN
1181
-  (0.2ms) SAVEPOINT active_record_1
1182
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1183
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1184
-  (0.1ms) SAVEPOINT active_record_1
1185
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 48 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1186
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 48], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1187
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1188
- Processing by NotifyUser::NotificationsController#mark_read as HTML
1189
- Parameters: {"ids"=>["52"]}
1190
- SQL (0.5ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 48 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('52'))
1191
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 48 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('52'))
1192
- Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.9ms)
1193
-  (0.2ms) ROLLBACK
1194
-  (0.1ms) BEGIN
1195
-  (0.1ms) SAVEPOINT active_record_1
1196
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1197
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1198
-  (0.1ms) SAVEPOINT active_record_1
1199
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1200
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 49], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1201
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1202
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1203
- Processing by NotifyUser::NotificationsController#subscriptions as HTML
1204
- Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
1205
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1206
-  (0.2ms) SAVEPOINT active_record_1
1207
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 49) LIMIT 1
1208
- SQL (1.0ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 49], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1209
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1210
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1211
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1212
- Completed 200 OK in 28ms (Views: 0.5ms | ActiveRecord: 3.3ms)
1213
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1214
-  (0.2ms) ROLLBACK
1215
-  (0.1ms) BEGIN
1216
-  (0.2ms) SAVEPOINT active_record_1
1217
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1218
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1219
-  (0.2ms) SAVEPOINT active_record_1
1220
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1221
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 50], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1222
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1223
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1224
- Processing by NotifyUser::NotificationsController#subscriptions as HTML
1225
- Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
1226
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1227
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1228
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1229
- Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.2ms)
1230
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1231
-  (0.2ms) ROLLBACK
1232
-  (0.1ms) BEGIN
1233
-  (0.1ms) SAVEPOINT active_record_1
1234
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1235
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1236
-  (0.2ms) SAVEPOINT active_record_1
1237
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 51 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1238
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 51], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1239
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1240
- Processing by NotifyUser::NotificationsController#unsubscribe as HTML
1241
- Parameters: {"type"=>"NewPostNotification"}
1242
-  (0.2ms) SAVEPOINT active_record_1
1243
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 51) LIMIT 1
1244
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 51], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1245
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1246
- Redirected to http://test.host/notify_user/notifications/unsubscribe
1247
- Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
1248
- NotifyUser::Unsubscribe Load (1.2ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
1249
-  (0.2ms) ROLLBACK
1250
-  (0.2ms) BEGIN
1251
-  (0.3ms) SAVEPOINT active_record_1
1252
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1253
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1254
-  (0.1ms) SAVEPOINT active_record_1
1255
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 52 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1256
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 52], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1257
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1258
-  (0.2ms) SAVEPOINT active_record_1
1259
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 52) LIMIT 1
1260
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 52], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1261
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1262
- Processing by NotifyUser::NotificationsController#subscribe as HTML
1263
- Parameters: {"type"=>"NewPostNotification"}
1264
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 52 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1265
-  (0.1ms) SAVEPOINT active_record_1
1266
- SQL (0.4ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 13]]
1267
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1268
- Redirected to http://test.host/notify_user/notifications/unsubscribe
1269
- Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
1270
- NotifyUser::Unsubscribe Load (0.2ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
1271
-  (0.1ms) ROLLBACK
1272
-  (0.1ms) BEGIN
1273
-  (0.1ms) SAVEPOINT active_record_1
1274
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1275
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1276
-  (0.1ms) SAVEPOINT active_record_1
1277
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 53 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1278
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 53], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1279
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1280
- NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 53 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1281
-  (0.1ms) SAVEPOINT active_record_1
1282
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' LIMIT 1
1283
- SQL (0.7ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 53], ["target_type", "User"], ["token", "biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1284
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1285
- Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
1286
- Parameters: {"type"=>"NewPostNotification", "token"=>"biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA"}
1287
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
1288
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1289
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 53]]
1290
-  (0.1ms) SAVEPOINT active_record_1
1291
- NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 53) LIMIT 1
1292
- SQL (0.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 53], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1293
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1294
-  (0.1ms) SAVEPOINT active_record_1
1295
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 14 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1296
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1297
- Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 3.3ms)
1298
- NotifyUser::UserHash Load (0.3ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
1299
-  (0.1ms) ROLLBACK
1300
-  (0.1ms) BEGIN
1301
- NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1302
-  (0.2ms) SAVEPOINT active_record_1
1303
-  (0.7ms) ROLLBACK TO SAVEPOINT active_record_1
1304
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1305
-  (0.1ms) SAVEPOINT active_record_1
1306
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1307
-  (0.3ms) ROLLBACK
1308
-  (0.2ms) BEGIN
1309
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1310
-  (0.1ms) SAVEPOINT active_record_1
1311
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1312
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1313
-  (0.1ms) SAVEPOINT active_record_1
1314
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1315
-  (0.2ms) ROLLBACK
1316
-  (0.1ms) BEGIN
1317
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1318
-  (0.1ms) SAVEPOINT active_record_1
1319
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
1320
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1321
-  (0.1ms) SAVEPOINT active_record_1
1322
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1323
-  (0.2ms) ROLLBACK
1324
-  (0.1ms) BEGIN
1325
-  (0.1ms) SAVEPOINT active_record_1
1326
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1327
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1328
-  (0.1ms) SAVEPOINT active_record_1
1329
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 54 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1330
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 54], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1331
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1332
-  (0.1ms) ROLLBACK
1333
-  (0.1ms) BEGIN
1334
-  (0.1ms) SAVEPOINT active_record_1
1335
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1336
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1337
-  (0.1ms) SAVEPOINT active_record_1
1338
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 55 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1339
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 55], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1340
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1341
-  (0.1ms) ROLLBACK
1342
-  (0.1ms) BEGIN
1343
-  (0.1ms) SAVEPOINT active_record_1
1344
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1345
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1346
-  (0.1ms) SAVEPOINT active_record_1
1347
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 56 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1348
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 56], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1349
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1350
-  (0.1ms) SAVEPOINT active_record_1
1351
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 56 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1352
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 60 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1353
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1354
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
1355
-  (0.1ms) ROLLBACK
1356
-  (0.1ms) BEGIN
1357
-  (0.1ms) SAVEPOINT active_record_1
1358
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1359
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1360
-  (0.1ms) SAVEPOINT active_record_1
1361
-  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 57 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1362
- SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 57], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1363
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1364
-  (0.2ms) SAVEPOINT active_record_1
1365
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 57 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1366
- SQL (0.9ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 61 [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1367
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1368
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
1369
-  (0.1ms) ROLLBACK
1370
-  (0.1ms) BEGIN
1371
-  (0.1ms) SAVEPOINT active_record_1
1372
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1373
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1374
-  (0.2ms) SAVEPOINT active_record_1
1375
-  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 58 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1376
- SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 58], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1377
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1378
-  (0.1ms) SAVEPOINT active_record_1
1379
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 58 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1380
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 62 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1381
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1382
- NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
1383
-  (0.1ms) ROLLBACK
1384
-  (0.1ms) BEGIN
1385
-  (0.1ms) SAVEPOINT active_record_1
1386
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1387
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1388
-  (0.1ms) SAVEPOINT active_record_1
1389
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 59 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1390
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 59], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1391
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1392
-  (0.1ms) SAVEPOINT active_record_1
1393
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 59 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1394
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 63 [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1395
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1396
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
1397
-  (0.1ms) ROLLBACK
1398
-  (0.1ms) BEGIN
1399
-  (0.1ms) SAVEPOINT active_record_1
1400
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1401
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1402
-  (0.1ms) SAVEPOINT active_record_1
1403
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 60 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1404
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 60], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1405
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1406
-  (0.1ms) SAVEPOINT active_record_1
1407
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1408
-  (0.1ms) ROLLBACK
1409
-  (0.1ms) BEGIN
1410
-  (0.1ms) SAVEPOINT active_record_1
1411
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1412
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1413
-  (0.2ms) SAVEPOINT active_record_1
1414
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1415
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 61], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1416
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1417
-  (0.2ms) SAVEPOINT active_record_1
1418
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1419
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1420
-  (0.9ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 61 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 65)
1421
- NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 65]]
1422
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]
1423
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 61 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
1424
-  (0.1ms) SAVEPOINT active_record_1
1425
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]
1426
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1427
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 65 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1428
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1429
-  (0.1ms) SAVEPOINT active_record_1
1430
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1431
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1432
- NotifyUser::BaseNotification Load (0.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 65 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1433
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]
1434
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1435
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 65 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1436
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 61]]
1437
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
1438
-  (0.1ms) ROLLBACK
1439
-  (0.1ms) BEGIN
1440
-  (0.1ms) SAVEPOINT active_record_1
1441
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1442
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1443
-  (0.1ms) SAVEPOINT active_record_1
1444
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1445
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 62], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1446
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1447
-  (0.1ms) SAVEPOINT active_record_1
1448
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1449
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1450
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 62 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 66)
1451
-  (0.2ms) SAVEPOINT active_record_1
1452
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1453
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 62], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1454
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1455
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 62 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 67)
1456
-  (0.2ms) ROLLBACK
1457
-  (0.1ms) BEGIN
1458
-  (0.1ms) SAVEPOINT active_record_1
1459
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1460
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1461
-  (0.1ms) SAVEPOINT active_record_1
1462
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1463
- SQL (0.3ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 63], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1464
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1465
-  (0.1ms) SAVEPOINT active_record_1
1466
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1467
- SQL (0.3ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 63], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1468
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1469
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 69]]
1470
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]]
1471
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 63 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
1472
-  (0.1ms) SAVEPOINT active_record_1
1473
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]]
1474
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1475
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 68 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1476
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1477
-  (0.1ms) SAVEPOINT active_record_1
1478
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 63]]
1479
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1480
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 69 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1481
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1482
-  (0.1ms) SAVEPOINT active_record_1
1483
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1484
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1485
-  (0.1ms) SAVEPOINT active_record_1
1486
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1487
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1488
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1489
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 63 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1490
-  (0.1ms) SAVEPOINT active_record_1
1491
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ' LIMIT 1
1492
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 63], ["target_type", "User"], ["token", "jLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1493
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1494
-
1495
- Sent mail to user@example.com (8.3ms)
1496
- Date: Mon, 28 Apr 2014 14:17:56 +1000
1497
- From: please-change-me-at-config-initializers-notify-user@example.com
1498
- To: user@example.com
1499
- Message-ID: <535dd674da3a2_13513fefc482dbf869595@wp.local.mail>
1500
- Subject: Rails402: You have new Newpostnotification notifications.
1501
- Mime-Version: 1.0
1502
- Content-Type: text/html;
1503
- charset=UTF-8
1504
- Content-Transfer-Encoding: quoted-printable
1505
-
1506
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
1507
- tml4/strict.dtd">
1508
- <html>
1509
- <head>
1510
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
1511
- "/>
1512
- <title></title>
1513
- </head>
1514
-
1515
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
1516
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
1517
- ing: optimizeLegibility;">
1518
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
1519
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
1520
- Logo
1521
- </div>
1522
- </div>
1523
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
1524
- ">
1525
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
1526
- =
1527
-
1528
- <div>
1529
- New Post Notification happened. =
1530
-
1531
- </div>
1532
- <div>
1533
- New Post Notification happened. =
1534
-
1535
- </div>
1536
-
1537
- </div>
1538
- </div>
1539
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
1540
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
1541
- <p style=3D"text-align: center;">
1542
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
1543
- _unsubscribe?token=3DjLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ&amp;typ=
1544
- e=3DNewPostNotification">Unsubscribe</a>
1545
- </p>
1546
- <p style=3D"text-align: center;">
1547
- This is the default generated layout. A privacy declaration could g=
1548
- o here.
1549
- </p>
1550
- <p style=3D"text-align: center; margin-bottom: 0px;">
1551
- =C2=A9 MyCompany Pty Ltd
1552
- </p>
1553
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
1554
- ABN 123 456 789
1555
- </p>
1556
- </div>
1557
- </div>
1558
- </body>
1559
- </html>=
1560
-
1561
-  (0.2ms) ROLLBACK
1562
-  (0.1ms) BEGIN
1563
-  (0.1ms) SAVEPOINT active_record_1
1564
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1565
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1566
-  (0.1ms) SAVEPOINT active_record_1
1567
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1568
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 64], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1569
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1570
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 70]]
1571
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]]
1572
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 64 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
1573
-  (0.1ms) SAVEPOINT active_record_1
1574
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]]
1575
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1576
- SQL (0.5ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 70 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1577
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1578
-  (0.1ms) SAVEPOINT active_record_1
1579
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1580
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1581
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 70 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1582
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 64]]
1583
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1584
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 64 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1585
-  (0.1ms) SAVEPOINT active_record_1
1586
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Xs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg' LIMIT 1
1587
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 64], ["target_type", "User"], ["token", "Xs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1588
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1589
-
1590
- Sent mail to user@example.com (18.0ms)
1591
- Date: Mon, 28 Apr 2014 14:17:56 +1000
1592
- From: please-change-me-at-config-initializers-notify-user@example.com
1593
- To: user@example.com
1594
- Message-ID: <535dd674e6514_13513fefc482dbf86961c@wp.local.mail>
1595
- Subject: Rails402: You have a new Newpostnotification notification.
1596
- Mime-Version: 1.0
1597
- Content-Type: text/html;
1598
- charset=UTF-8
1599
- Content-Transfer-Encoding: quoted-printable
1600
-
1601
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
1602
- tml4/strict.dtd">
1603
- <html>
1604
- <head>
1605
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
1606
- "/>
1607
- <title></title>
1608
- </head>
1609
-
1610
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
1611
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
1612
- ing: optimizeLegibility;">
1613
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
1614
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
1615
- Logo
1616
- </div>
1617
- </div>
1618
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
1619
- ">
1620
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
1621
- New Post Notification happened.
1622
-
1623
- </div>
1624
- </div>
1625
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
1626
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
1627
- <p style=3D"text-align: center;">
1628
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
1629
- _unsubscribe?token=3DXs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg&amp;typ=
1630
- e=3DNewPostNotification">Unsubscribe</a>
1631
- </p>
1632
- <p style=3D"text-align: center;">
1633
- This is the default generated layout. A privacy declaration could g=
1634
- o here.
1635
- </p>
1636
- <p style=3D"text-align: center; margin-bottom: 0px;">
1637
- =C2=A9 MyCompany Pty Ltd
1638
- </p>
1639
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
1640
- ABN 123 456 789
1641
- </p>
1642
- </div>
1643
- </div>
1644
- </body>
1645
- </html>=
1646
-
1647
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
1648
-  (0.2ms) ROLLBACK
1649
-  (0.1ms) BEGIN
1650
-  (0.1ms) SAVEPOINT active_record_1
1651
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1652
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1653
-  (0.1ms) SAVEPOINT active_record_1
1654
- NotifyUser::Unsubscribe Exists (0.3ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 65) LIMIT 1
1655
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 65], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1656
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1657
-  (0.1ms) SAVEPOINT active_record_1
1658
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 65 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1659
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1660
- NotifyUser::BaseNotification Load (0.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1661
-  (0.1ms) ROLLBACK
1662
-  (0.1ms) BEGIN
1663
-  (0.1ms) SAVEPOINT active_record_1
1664
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1665
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1666
-  (0.1ms) SAVEPOINT active_record_1
1667
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 66 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1668
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 66], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1669
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1670
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 71 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1671
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 66]]
1672
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 66 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1673
-  (0.1ms) ROLLBACK
1674
-  (0.1ms) BEGIN
1675
-  (0.1ms) SAVEPOINT active_record_1
1676
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1677
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1678
-  (0.1ms) SAVEPOINT active_record_1
1679
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1680
- SQL (0.3ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 67], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1681
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1682
-  (0.1ms) SAVEPOINT active_record_1
1683
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1684
- SQL (0.3ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 67], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1685
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1686
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 73]]
1687
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]]
1688
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 67 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
1689
-  (0.1ms) SAVEPOINT active_record_1
1690
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]]
1691
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1692
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 72 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1693
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1694
-  (0.1ms) SAVEPOINT active_record_1
1695
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 67]]
1696
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1697
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 73 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
1698
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1699
-  (0.1ms) SAVEPOINT active_record_1
1700
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1701
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1702
-  (0.1ms) SAVEPOINT active_record_1
1703
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1704
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1705
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1706
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 67 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1707
-  (0.1ms) SAVEPOINT active_record_1
1708
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ' LIMIT 1
1709
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 67], ["target_type", "User"], ["token", "UDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1710
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1711
-
1712
- Sent mail to user@example.com (6.2ms)
1713
- Date: Mon, 28 Apr 2014 14:17:57 +1000
1714
- From: please-change-me-at-config-initializers-notify-user@example.com
1715
- To: user@example.com
1716
- Message-ID: <535dd6753a1d_13513fefc482dbf8697f5@wp.local.mail>
1717
- Subject: Rails402: You have new Newpostnotification notifications.
1718
- Mime-Version: 1.0
1719
- Content-Type: text/html;
1720
- charset=UTF-8
1721
- Content-Transfer-Encoding: quoted-printable
1722
-
1723
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
1724
- tml4/strict.dtd">
1725
- <html>
1726
- <head>
1727
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
1728
- "/>
1729
- <title></title>
1730
- </head>
1731
-
1732
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
1733
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
1734
- ing: optimizeLegibility;">
1735
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
1736
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
1737
- Logo
1738
- </div>
1739
- </div>
1740
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
1741
- ">
1742
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
1743
- =
1744
-
1745
- <div>
1746
- New Post Notification happened. =
1747
-
1748
- </div>
1749
- <div>
1750
- New Post Notification happened. =
1751
-
1752
- </div>
1753
-
1754
- </div>
1755
- </div>
1756
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
1757
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
1758
- <p style=3D"text-align: center;">
1759
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
1760
- _unsubscribe?token=3DUDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ&amp;typ=
1761
- e=3DNewPostNotification">Unsubscribe</a>
1762
- </p>
1763
- <p style=3D"text-align: center;">
1764
- This is the default generated layout. A privacy declaration could g=
1765
- o here.
1766
- </p>
1767
- <p style=3D"text-align: center; margin-bottom: 0px;">
1768
- =C2=A9 MyCompany Pty Ltd
1769
- </p>
1770
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
1771
- ABN 123 456 789
1772
- </p>
1773
- </div>
1774
- </div>
1775
- </body>
1776
- </html>=
1777
-
1778
-  (0.3ms) ROLLBACK
1779
-  (0.2ms) BEGIN
1780
-  (0.1ms) SAVEPOINT active_record_1
1781
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1782
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1783
-  (0.1ms) SAVEPOINT active_record_1
1784
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1785
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 68], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1786
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1787
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 74]]
1788
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]]
1789
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 68 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
1790
-  (0.1ms) SAVEPOINT active_record_1
1791
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]]
1792
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1793
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 74 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1794
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1795
-  (0.1ms) SAVEPOINT active_record_1
1796
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1797
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1798
- NotifyUser::BaseNotification Load (0.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 74 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1799
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 68]]
1800
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1801
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 68 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1802
-  (0.1ms) SAVEPOINT active_record_1
1803
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg' LIMIT 1
1804
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 68], ["target_type", "User"], ["token", "HFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1805
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1806
-
1807
- Sent mail to user@example.com (6.1ms)
1808
- Date: Mon, 28 Apr 2014 14:17:57 +1000
1809
- From: please-change-me-at-config-initializers-notify-user@example.com
1810
- To: user@example.com
1811
- Message-ID: <535dd675de40_13513fefc482dbf869861@wp.local.mail>
1812
- Subject: Rails402: You have a new Newpostnotification notification.
1813
- Mime-Version: 1.0
1814
- Content-Type: text/html;
1815
- charset=UTF-8
1816
- Content-Transfer-Encoding: quoted-printable
1817
-
1818
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
1819
- tml4/strict.dtd">
1820
- <html>
1821
- <head>
1822
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
1823
- "/>
1824
- <title></title>
1825
- </head>
1826
-
1827
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
1828
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
1829
- ing: optimizeLegibility;">
1830
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
1831
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
1832
- Logo
1833
- </div>
1834
- </div>
1835
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
1836
- ">
1837
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
1838
- New Post Notification happened.
1839
-
1840
- </div>
1841
- </div>
1842
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
1843
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
1844
- <p style=3D"text-align: center;">
1845
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
1846
- _unsubscribe?token=3DHFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg&amp;typ=
1847
- e=3DNewPostNotification">Unsubscribe</a>
1848
- </p>
1849
- <p style=3D"text-align: center;">
1850
- This is the default generated layout. A privacy declaration could g=
1851
- o here.
1852
- </p>
1853
- <p style=3D"text-align: center; margin-bottom: 0px;">
1854
- =C2=A9 MyCompany Pty Ltd
1855
- </p>
1856
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
1857
- ABN 123 456 789
1858
- </p>
1859
- </div>
1860
- </div>
1861
- </body>
1862
- </html>=
1863
-
1864
-  (0.2ms) ROLLBACK
1865
-  (0.2ms) BEGIN
1866
-  (0.3ms) SAVEPOINT active_record_1
1867
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1868
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1869
-  (0.1ms) SAVEPOINT active_record_1
1870
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1871
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 69], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1872
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1873
-  (0.1ms) SAVEPOINT active_record_1
1874
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1875
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1876
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1877
-  (0.1ms) SAVEPOINT active_record_1
1878
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1879
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 75 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1880
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1881
-  (0.1ms) SAVEPOINT active_record_1
1882
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1883
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1884
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 75 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1885
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 69]]
1886
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1887
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
1888
-  (0.1ms) ROLLBACK
1889
-  (0.1ms) BEGIN
1890
-  (0.1ms) SAVEPOINT active_record_1
1891
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1892
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1893
-  (0.1ms) SAVEPOINT active_record_1
1894
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 70) LIMIT 1
1895
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 70], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1896
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1897
-  (0.1ms) SAVEPOINT active_record_1
1898
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1899
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1900
-  (0.1ms) SAVEPOINT active_record_1
1901
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1902
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1903
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1904
-  (0.2ms) ROLLBACK
1905
-  (0.1ms) BEGIN
1906
-  (0.1ms) SAVEPOINT active_record_1
1907
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1908
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1909
-  (0.1ms) SAVEPOINT active_record_1
1910
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 71) LIMIT 1
1911
- SQL (0.3ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 71], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1912
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1913
-  (0.1ms) SAVEPOINT active_record_1
1914
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1915
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 71], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1916
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1917
-  (0.1ms) SAVEPOINT active_record_1
1918
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1919
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1920
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1921
-  (0.1ms) SAVEPOINT active_record_1
1922
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1923
- SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 76 [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1924
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1925
-  (0.1ms) SAVEPOINT active_record_1
1926
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1927
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1928
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 76 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
1929
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 71]]
1930
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
1931
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
1932
-  (0.2ms) ROLLBACK
1933
-  (0.1ms) BEGIN
1934
-  (0.1ms) SAVEPOINT active_record_1
1935
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1936
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1937
-  (0.1ms) SAVEPOINT active_record_1
1938
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 72 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1939
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 72], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1940
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1941
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 72 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1942
-  (0.1ms) SAVEPOINT active_record_1
1943
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'u6vVYVqjWS15CgIKmKI2dgMe6o_8rpah23GuguMRjeCA' LIMIT 1
1944
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 72], ["target_type", "User"], ["token", "u6vVYVqjWS15CgIKmKI2dgMe6o_8rpah23GuguMRjeCA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1945
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1946
-  (0.1ms) ROLLBACK
1947
-  (0.1ms) BEGIN
1948
-  (0.1ms) SAVEPOINT active_record_1
1949
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1950
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1951
-  (0.1ms) SAVEPOINT active_record_1
1952
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 73 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1953
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 73], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1954
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1955
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 73 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1956
-  (0.1ms) SAVEPOINT active_record_1
1957
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LSo4vY3yZkgw_czqZO_skQK76JRvmXMR8tlO0acQTCaQ' LIMIT 1
1958
- SQL (0.3ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 73], ["target_type", "User"], ["token", "LSo4vY3yZkgw_czqZO_skQK76JRvmXMR8tlO0acQTCaQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1959
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1960
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 73 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1961
-  (0.2ms) ROLLBACK
1962
-  (0.1ms) BEGIN
1963
-  (0.1ms) SAVEPOINT active_record_1
1964
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1965
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1966
-  (0.1ms) SAVEPOINT active_record_1
1967
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 74 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1968
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 74], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1969
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1970
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 74 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1971
-  (0.1ms) SAVEPOINT active_record_1
1972
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'kLiF3TraOs_NC2WUYqqL3AA9qkAGhimafcqgAbKbCxEg' LIMIT 1
1973
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 74], ["target_type", "User"], ["token", "kLiF3TraOs_NC2WUYqqL3AA9qkAGhimafcqgAbKbCxEg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1974
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1975
-  (0.1ms) SAVEPOINT active_record_1
1976
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 21 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1977
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1978
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 74 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
1979
-  (0.1ms) SAVEPOINT active_record_1
1980
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'qQj-v-rTk15SQbxJ2b-E3AhT65qCUAA8h4Wno9TIWt-Q' LIMIT 1
1981
- SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 74], ["target_type", "User"], ["token", "qQj-v-rTk15SQbxJ2b-E3AhT65qCUAA8h4Wno9TIWt-Q"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1982
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1983
-  (0.1ms) ROLLBACK
1984
-  (0.2ms) BEGIN
1985
-  (0.1ms) SAVEPOINT active_record_1
1986
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1987
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1988
-  (0.1ms) SAVEPOINT active_record_1
1989
- NotifyUser::Unsubscribe Exists (0.3ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 75) LIMIT 1
1990
- SQL (0.3ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 75], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
1991
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1992
-  (0.1ms) SAVEPOINT active_record_1
1993
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 75) LIMIT 1
1994
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1995
-  (0.2ms) SAVEPOINT active_record_1
1996
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 75 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
1997
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
1998
-  (0.2ms) ROLLBACK
1999
-  (0.1ms) BEGIN
2000
-  (0.1ms) SAVEPOINT active_record_1
2001
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2002
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2003
-  (0.1ms) SAVEPOINT active_record_1
2004
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1
2005
- SQL (0.3ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 76], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2006
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2007
-  (0.1ms) SAVEPOINT active_record_1
2008
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 19 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1
2009
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2010
-  (0.1ms) SAVEPOINT active_record_1
2011
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1
2012
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2013
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
2014
-  (0.1ms) ROLLBACK
2015
-  (0.1ms) BEGIN
2016
-  (0.1ms) SAVEPOINT active_record_1
2017
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2018
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2019
-  (0.1ms) SAVEPOINT active_record_1
2020
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1
2021
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 77], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2022
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2023
-  (0.1ms) SAVEPOINT active_record_1
2024
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1
2025
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2026
-  (0.1ms) SAVEPOINT active_record_1
2027
- NotifyUser::Unsubscribe Exists (0.3ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1
2028
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2029
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2030
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2031
-  (0.1ms) SAVEPOINT active_record_1
2032
- SQL (0.3ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 20]]
2033
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2034
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2035
-  (7.8ms) ROLLBACK
2036
-  (0.2ms) BEGIN
2037
-  (0.2ms) SAVEPOINT active_record_1
2038
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2039
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2040
-  (0.2ms) SAVEPOINT active_record_1
2041
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 78 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2042
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 78], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2043
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2044
-  (0.1ms) ROLLBACK
2045
-  (0.1ms) BEGIN
2046
-  (0.1ms) SAVEPOINT active_record_1
2047
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2048
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2049
-  (0.2ms) SAVEPOINT active_record_1
2050
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'd-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA' LIMIT 1
2051
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 79], ["target_type", "User"], ["token", "d-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2052
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2053
-  (0.1ms) SAVEPOINT active_record_1
2054
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2055
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'd-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
2056
-  (0.1ms) ROLLBACK
2057
-  (0.1ms) BEGIN
2058
-  (0.1ms) SAVEPOINT active_record_1
2059
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2060
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2061
-  (0.1ms) SAVEPOINT active_record_1
2062
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg' LIMIT 1
2063
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 80], ["target_type", "User"], ["token", "GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2064
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2065
-  (0.1ms) SAVEPOINT active_record_1
2066
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2067
-  (0.1ms) SAVEPOINT active_record_1
2068
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 24 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2069
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2070
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
2071
-  (0.2ms) ROLLBACK
2072
-  (0.1ms) BEGIN
2073
-  (0.1ms) SAVEPOINT active_record_1
2074
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2075
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
-  (0.1ms) SAVEPOINT active_record_1
2077
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5Bx1cN73fe2A3ARgRUZx5gtvSmizmCWb7asGhAPiZNOA' LIMIT 1
2078
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 81], ["target_type", "User"], ["token", "5Bx1cN73fe2A3ARgRUZx5gtvSmizmCWb7asGhAPiZNOA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2079
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2080
-  (0.1ms) SAVEPOINT active_record_1
2081
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2082
-  (0.2ms) SAVEPOINT active_record_1
2083
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 25 [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2084
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2085
-  (0.1ms) ROLLBACK
2086
-  (0.2ms) BEGIN
2087
-  (0.2ms) SAVEPOINT active_record_1
2088
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2089
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2090
-  (0.1ms) SAVEPOINT active_record_1
2091
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mG9DpfvnCo72ppQBZMWR4wD2J5l1B-6y3Ef68ncElEAg' LIMIT 1
2092
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 82], ["target_type", "User"], ["token", "mG9DpfvnCo72ppQBZMWR4wD2J5l1B-6y3Ef68ncElEAg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
2093
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2094
-  (0.1ms) SAVEPOINT active_record_1
2095
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2096
-  (0.1ms) ROLLBACK
2097
-  (0.1ms) BEGIN
2098
-  (0.2ms) ROLLBACK
2099
-  (0.2ms) BEGIN
2100
-  (0.2ms) ROLLBACK
2101
-  (0.1ms) BEGIN
2102
-  (0.2ms) ROLLBACK
2103
-  (0.1ms) BEGIN
2104
-  (0.1ms) ROLLBACK
2105
-  (0.1ms) BEGIN
2106
-  (0.1ms) ROLLBACK
2107
-  (0.1ms) BEGIN
2108
-  (0.1ms) ROLLBACK
2109
-  (0.1ms) BEGIN
2110
-  (0.1ms) ROLLBACK
2111
-  (0.2ms) BEGIN
2112
-  (0.2ms) SAVEPOINT active_record_1
2113
- SQL (11.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2114
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2115
- Processing by NotifyUser::NotificationsController#index as HTML
2116
- Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
2117
- Completed 200 OK in 14ms (Views: 11.5ms | ActiveRecord: 0.0ms)
2118
-  (0.3ms) ROLLBACK
2119
-  (0.1ms) BEGIN
2120
-  (0.1ms) SAVEPOINT active_record_1
2121
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2122
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2123
-  (0.2ms) SAVEPOINT active_record_1
2124
-  (4.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 84 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2125
- SQL (2.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 84], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2126
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2127
- Processing by NotifyUser::NotificationsController#index as JSON
2128
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 84 AND "notify_user_notifications"."target_type" = 'User'
2129
- NotifyUser::BaseNotification Load (2.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 84 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
2130
- Completed 200 OK in 20ms (Views: 12.2ms | ActiveRecord: 2.6ms)
2131
-  (0.3ms) ROLLBACK
2132
-  (0.2ms) BEGIN
2133
-  (0.1ms) SAVEPOINT active_record_1
2134
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2135
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2136
-  (0.1ms) SAVEPOINT active_record_1
2137
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2138
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2139
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2140
-  (0.1ms) SAVEPOINT active_record_1
2141
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2142
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2143
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2144
-  (0.1ms) SAVEPOINT active_record_1
2145
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 85 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2146
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 85], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2147
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2148
- Processing by NotifyUser::NotificationsController#index as HTML
2149
- NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 85 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
2150
- Completed 200 OK in 50ms (Views: 48.1ms | ActiveRecord: 0.7ms)
2151
-  (0.3ms) ROLLBACK
2152
-  (0.2ms) BEGIN
2153
-  (0.2ms) SAVEPOINT active_record_1
2154
- SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2155
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2156
-  (0.1ms) SAVEPOINT active_record_1
2157
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2158
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2159
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2160
-  (0.1ms) SAVEPOINT active_record_1
2161
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2162
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2163
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2164
-  (0.1ms) SAVEPOINT active_record_1
2165
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2166
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 86], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2167
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2168
- Processing by NotifyUser::NotificationsController#read as HTML
2169
- Parameters: {"id"=>"85"}
2170
- NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 86 AND "notify_user_notifications"."target_type" = 'User' AND (id = '85') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2171
-  (0.1ms) SAVEPOINT active_record_1
2172
- User Load (0.7ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 86]]
2173
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 86 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2174
- SQL (0.8ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 85 [["state", "read"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2175
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2176
- Completed 200 OK in 19ms (Views: 1.7ms | ActiveRecord: 2.9ms)
2177
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 85 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2178
-  (0.2ms) ROLLBACK
2179
-  (0.1ms) BEGIN
2180
-  (0.1ms) SAVEPOINT active_record_1
2181
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2182
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2183
-  (0.1ms) SAVEPOINT active_record_1
2184
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2185
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2186
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2187
-  (0.1ms) SAVEPOINT active_record_1
2188
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2189
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2190
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2191
-  (0.1ms) SAVEPOINT active_record_1
2192
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 87 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2193
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 87], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2194
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2195
- Processing by NotifyUser::NotificationsController#mark_all as HTML
2196
- SQL (2.4ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
2197
- Redirected to http://test.host/notify_user/notifications
2198
- Completed 302 Found in 4ms (ActiveRecord: 2.4ms)
2199
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 87 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
2200
-  (0.2ms) ROLLBACK
2201
-  (0.1ms) BEGIN
2202
-  (0.1ms) SAVEPOINT active_record_1
2203
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2204
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2205
-  (0.1ms) SAVEPOINT active_record_1
2206
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 88 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2207
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 88], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2208
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2209
- Processing by NotifyUser::NotificationsController#mark_read as HTML
2210
- Parameters: {"ids"=>["91"]}
2211
- SQL (0.5ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('91'))
2212
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 88 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('91'))
2213
- Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.8ms)
2214
- NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 91]]
2215
-  (0.2ms) ROLLBACK
2216
-  (0.1ms) BEGIN
2217
-  (0.1ms) SAVEPOINT active_record_1
2218
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2219
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2220
-  (0.1ms) SAVEPOINT active_record_1
2221
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 89 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2222
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 89], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2223
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2224
- Processing by NotifyUser::NotificationsController#mark_read as HTML
2225
- Parameters: {"ids"=>["92"]}
2226
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('92'))
2227
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 89 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('92'))
2228
- Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 1.1ms)
2229
-  (0.2ms) ROLLBACK
2230
-  (0.1ms) BEGIN
2231
-  (0.2ms) SAVEPOINT active_record_1
2232
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2233
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2234
-  (0.1ms) SAVEPOINT active_record_1
2235
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2236
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2237
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2238
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2239
- Processing by NotifyUser::NotificationsController#subscriptions as HTML
2240
- Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
2241
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2242
-  (0.2ms) SAVEPOINT active_record_1
2243
- NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 90) LIMIT 1
2244
- SQL (1.8ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 90], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2245
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2246
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2247
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2248
- Completed 200 OK in 26ms (Views: 0.4ms | ActiveRecord: 4.4ms)
2249
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 90 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2250
-  (0.2ms) ROLLBACK
2251
-  (0.1ms) BEGIN
2252
-  (0.1ms) SAVEPOINT active_record_1
2253
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2254
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2255
-  (0.1ms) SAVEPOINT active_record_1
2256
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2257
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 91], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2258
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2259
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2260
- Processing by NotifyUser::NotificationsController#subscriptions as HTML
2261
- Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
2262
- NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2263
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2264
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2265
- Completed 200 OK in 4ms (Views: 0.3ms | ActiveRecord: 1.1ms)
2266
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 91 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2267
-  (0.1ms) ROLLBACK
2268
-  (0.1ms) BEGIN
2269
-  (0.1ms) SAVEPOINT active_record_1
2270
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2271
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2272
-  (0.2ms) SAVEPOINT active_record_1
2273
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 92 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2274
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2275
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2276
- Processing by NotifyUser::NotificationsController#unsubscribe as HTML
2277
- Parameters: {"type"=>"NewPostNotification"}
2278
-  (0.2ms) SAVEPOINT active_record_1
2279
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 92) LIMIT 1
2280
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 92], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2281
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2282
- Redirected to http://test.host/notify_user/notifications/unsubscribe
2283
- Completed 302 Found in 4ms (ActiveRecord: 1.0ms)
2284
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
2285
-  (0.1ms) ROLLBACK
2286
-  (0.1ms) BEGIN
2287
-  (0.2ms) SAVEPOINT active_record_1
2288
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2289
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2290
-  (0.1ms) SAVEPOINT active_record_1
2291
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2292
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2293
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2294
-  (0.1ms) SAVEPOINT active_record_1
2295
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 93) LIMIT 1
2296
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 93], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2297
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2298
- Processing by NotifyUser::NotificationsController#subscribe as HTML
2299
- Parameters: {"type"=>"NewPostNotification"}
2300
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 93 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2301
-  (0.1ms) SAVEPOINT active_record_1
2302
- SQL (0.4ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 23]]
2303
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2304
- Redirected to http://test.host/notify_user/notifications/unsubscribe
2305
- Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
2306
- NotifyUser::Unsubscribe Load (0.2ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
2307
-  (0.1ms) ROLLBACK
2308
-  (0.1ms) BEGIN
2309
-  (0.1ms) SAVEPOINT active_record_1
2310
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2311
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2312
-  (0.1ms) SAVEPOINT active_record_1
2313
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 94 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2314
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2315
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2316
- NotifyUser::UserHash Load (1.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 94 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2317
-  (0.2ms) SAVEPOINT active_record_1
2318
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' LIMIT 1
2319
- SQL (1.8ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 94], ["target_type", "User"], ["token", "41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2320
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2321
- Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
2322
- Parameters: {"type"=>"NewPostNotification", "token"=>"41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ"}
2323
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
2324
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '41YP9-il3OfdKeAZatgp0ATjAAC3vHRUBf04BNJpwWlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2325
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 94]]
2326
-  (0.1ms) SAVEPOINT active_record_1
2327
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 94) LIMIT 1
2328
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00], ["target_id", 94], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2329
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2330
-  (0.1ms) SAVEPOINT active_record_1
2331
- SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 27 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:30 UTC +00:00]]
2332
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2333
- Completed 200 OK in 11ms (Views: 0.6ms | ActiveRecord: 3.2ms)
2334
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
2335
-  (0.2ms) ROLLBACK
2336
-  (0.1ms) BEGIN
2337
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2338
-  (0.1ms) SAVEPOINT active_record_1
2339
-  (0.6ms) ROLLBACK TO SAVEPOINT active_record_1
2340
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2341
-  (0.1ms) SAVEPOINT active_record_1
2342
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2343
-  (0.2ms) ROLLBACK
2344
-  (0.1ms) BEGIN
2345
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2346
-  (0.1ms) SAVEPOINT active_record_1
2347
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2348
- NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2349
-  (0.2ms) SAVEPOINT active_record_1
2350
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2351
-  (0.1ms) ROLLBACK
2352
-  (0.1ms) BEGIN
2353
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2354
-  (0.1ms) SAVEPOINT active_record_1
2355
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2356
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2357
-  (0.1ms) SAVEPOINT active_record_1
2358
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2359
-  (0.1ms) ROLLBACK
2360
-  (0.1ms) BEGIN
2361
-  (0.2ms) SAVEPOINT active_record_1
2362
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2363
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2364
-  (0.1ms) SAVEPOINT active_record_1
2365
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 95 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2366
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 95], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2367
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2368
-  (0.1ms) ROLLBACK
2369
-  (0.1ms) BEGIN
2370
-  (0.1ms) SAVEPOINT active_record_1
2371
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2372
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2373
-  (0.1ms) SAVEPOINT active_record_1
2374
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 96 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2375
- SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 96], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2376
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2377
-  (0.2ms) ROLLBACK
2378
-  (0.1ms) BEGIN
2379
-  (0.1ms) SAVEPOINT active_record_1
2380
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2381
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2382
-  (0.1ms) SAVEPOINT active_record_1
2383
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2384
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 97], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2385
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2386
-  (0.1ms) SAVEPOINT active_record_1
2387
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 97 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2388
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 100 [["params", {"listing_id"=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2389
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2390
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
2391
-  (0.1ms) ROLLBACK
2392
-  (0.1ms) BEGIN
2393
-  (0.1ms) SAVEPOINT active_record_1
2394
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2395
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2396
-  (0.1ms) SAVEPOINT active_record_1
2397
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2398
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 98], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2399
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2400
-  (0.1ms) SAVEPOINT active_record_1
2401
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 98 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2402
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 101 [["params", {"listing_id"=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2403
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2404
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
2405
-  (0.1ms) ROLLBACK
2406
-  (0.1ms) BEGIN
2407
-  (0.1ms) SAVEPOINT active_record_1
2408
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2409
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2410
-  (0.1ms) SAVEPOINT active_record_1
2411
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2412
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 99], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2413
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2414
-  (0.1ms) SAVEPOINT active_record_1
2415
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 99 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2416
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 102 [["params", {:listing_id=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2417
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2418
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
2419
-  (0.1ms) ROLLBACK
2420
-  (0.1ms) BEGIN
2421
-  (0.1ms) SAVEPOINT active_record_1
2422
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2423
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2424
-  (0.1ms) SAVEPOINT active_record_1
2425
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2426
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 100], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2427
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2428
-  (0.1ms) SAVEPOINT active_record_1
2429
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2430
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 103 [["params", {:listing_id=>1}], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2431
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2432
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
2433
-  (0.1ms) ROLLBACK
2434
-  (0.1ms) BEGIN
2435
-  (0.1ms) SAVEPOINT active_record_1
2436
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2437
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2438
-  (0.1ms) SAVEPOINT active_record_1
2439
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2440
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2441
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2442
-  (0.2ms) SAVEPOINT active_record_1
2443
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2444
-  (0.1ms) ROLLBACK
2445
-  (0.1ms) BEGIN
2446
-  (0.1ms) SAVEPOINT active_record_1
2447
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2448
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2449
-  (0.1ms) SAVEPOINT active_record_1
2450
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2451
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 102], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2452
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2453
-  (0.2ms) SAVEPOINT active_record_1
2454
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2455
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2456
-  (0.8ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 102 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 105)
2457
- NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 105]]
2458
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
2459
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 102 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
2460
-  (0.1ms) SAVEPOINT active_record_1
2461
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
2462
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2463
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 105 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2464
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2465
-  (0.1ms) SAVEPOINT active_record_1
2466
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2467
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2468
- NotifyUser::BaseNotification Load (0.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2469
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
2470
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2471
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2472
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 102]]
2473
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
2474
-  (0.2ms) ROLLBACK
2475
-  (0.1ms) BEGIN
2476
-  (0.1ms) SAVEPOINT active_record_1
2477
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2478
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2479
-  (0.1ms) SAVEPOINT active_record_1
2480
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2481
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2482
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2483
-  (0.1ms) SAVEPOINT active_record_1
2484
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2485
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2486
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 103 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 106)
2487
-  (0.1ms) SAVEPOINT active_record_1
2488
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2489
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2490
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2491
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 103 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 107)
2492
-  (0.2ms) ROLLBACK
2493
-  (0.1ms) BEGIN
2494
-  (0.1ms) SAVEPOINT active_record_1
2495
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2496
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2497
-  (0.1ms) SAVEPOINT active_record_1
2498
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2499
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2500
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2501
-  (0.1ms) SAVEPOINT active_record_1
2502
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2503
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2504
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2505
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 109]]
2506
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
2507
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 104 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
2508
-  (0.1ms) SAVEPOINT active_record_1
2509
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
2510
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2511
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 108 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2512
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2513
-  (0.1ms) SAVEPOINT active_record_1
2514
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 104]]
2515
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2516
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 109 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2517
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2518
-  (0.1ms) SAVEPOINT active_record_1
2519
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2520
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2521
-  (0.1ms) SAVEPOINT active_record_1
2522
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2523
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2524
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2525
- NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 104 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2526
-  (0.1ms) SAVEPOINT active_record_1
2527
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'tF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw' LIMIT 1
2528
- SQL (1.7ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 104], ["target_type", "User"], ["token", "tF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2529
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2530
-
2531
- Sent mail to user@example.com (10.6ms)
2532
- Date: Wed, 30 Apr 2014 13:22:31 +1000
2533
- From: please-change-me-at-config-initializers-notify-user@example.com
2534
- To: user@example.com
2535
- Message-ID: <53606c773dd2d_19f43fc971829bf8345bf@wp.local.mail>
2536
- Subject: Rails402: You have new Newpostnotification notifications.
2537
- Mime-Version: 1.0
2538
- Content-Type: text/html;
2539
- charset=UTF-8
2540
- Content-Transfer-Encoding: quoted-printable
2541
-
2542
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
2543
- tml4/strict.dtd">
2544
- <html>
2545
- <head>
2546
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
2547
- "/>
2548
- <title></title>
2549
- </head>
2550
-
2551
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
2552
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
2553
- ing: optimizeLegibility;">
2554
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
2555
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
2556
- Logo
2557
- </div>
2558
- </div>
2559
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
2560
- ">
2561
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
2562
- =
2563
-
2564
- <div>
2565
- New Post Notification happened. =
2566
-
2567
- </div>
2568
- <div>
2569
- New Post Notification happened. =
2570
-
2571
- </div>
2572
-
2573
- </div>
2574
- </div>
2575
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
2576
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
2577
- <p style=3D"text-align: center;">
2578
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
2579
- _unsubscribe?token=3DtF6dvznM2Jojb2daqZnqdAD5RULhg9i1vN9u2-YlgNqw&amp;typ=
2580
- e=3DNewPostNotification">Unsubscribe</a>
2581
- </p>
2582
- <p style=3D"text-align: center;">
2583
- This is the default generated layout. A privacy declaration could g=
2584
- o here.
2585
- </p>
2586
- <p style=3D"text-align: center; margin-bottom: 0px;">
2587
- =C2=A9 MyCompany Pty Ltd
2588
- </p>
2589
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
2590
- ABN 123 456 789
2591
- </p>
2592
- </div>
2593
- </div>
2594
- </body>
2595
- </html>=
2596
-
2597
-  (0.2ms) ROLLBACK
2598
-  (0.1ms) BEGIN
2599
-  (0.1ms) SAVEPOINT active_record_1
2600
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2601
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2602
-  (0.1ms) SAVEPOINT active_record_1
2603
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2604
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 105], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2605
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2606
- NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 110]]
2607
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]]
2608
- NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 105 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
2609
-  (0.1ms) SAVEPOINT active_record_1
2610
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]]
2611
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2612
- SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 110 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2613
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2614
-  (0.2ms) SAVEPOINT active_record_1
2615
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2616
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2617
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 110 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2618
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 105]]
2619
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2620
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 105 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2621
-  (0.1ms) SAVEPOINT active_record_1
2622
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww' LIMIT 1
2623
- SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 105], ["target_type", "User"], ["token", "7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2624
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2625
-
2626
- Sent mail to user@example.com (5.6ms)
2627
- Date: Wed, 30 Apr 2014 13:22:31 +1000
2628
- From: please-change-me-at-config-initializers-notify-user@example.com
2629
- To: user@example.com
2630
- Message-ID: <53606c7749f7f_19f43fc971829bf834688@wp.local.mail>
2631
- Subject: Rails402: You have a new Newpostnotification notification.
2632
- Mime-Version: 1.0
2633
- Content-Type: text/html;
2634
- charset=UTF-8
2635
- Content-Transfer-Encoding: quoted-printable
2636
-
2637
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
2638
- tml4/strict.dtd">
2639
- <html>
2640
- <head>
2641
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
2642
- "/>
2643
- <title></title>
2644
- </head>
2645
-
2646
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
2647
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
2648
- ing: optimizeLegibility;">
2649
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
2650
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
2651
- Logo
2652
- </div>
2653
- </div>
2654
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
2655
- ">
2656
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
2657
- New Post Notification happened.
2658
-
2659
- </div>
2660
- </div>
2661
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
2662
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
2663
- <p style=3D"text-align: center;">
2664
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
2665
- _unsubscribe?token=3D7v-hB2QQUXACa-OcL_X6kQmkelYJSuz84hr36p7apdww&amp;typ=
2666
- e=3DNewPostNotification">Unsubscribe</a>
2667
- </p>
2668
- <p style=3D"text-align: center;">
2669
- This is the default generated layout. A privacy declaration could g=
2670
- o here.
2671
- </p>
2672
- <p style=3D"text-align: center; margin-bottom: 0px;">
2673
- =C2=A9 MyCompany Pty Ltd
2674
- </p>
2675
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
2676
- ABN 123 456 789
2677
- </p>
2678
- </div>
2679
- </div>
2680
- </body>
2681
- </html>=
2682
-
2683
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
2684
-  (0.2ms) ROLLBACK
2685
-  (0.1ms) BEGIN
2686
-  (0.1ms) SAVEPOINT active_record_1
2687
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2688
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2689
-  (0.2ms) SAVEPOINT active_record_1
2690
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 106) LIMIT 1
2691
- SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 106], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2692
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2693
-  (0.1ms) SAVEPOINT active_record_1
2694
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2695
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
2696
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2697
-  (0.2ms) ROLLBACK
2698
-  (0.1ms) BEGIN
2699
-  (0.1ms) SAVEPOINT active_record_1
2700
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2701
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2702
-  (0.2ms) SAVEPOINT active_record_1
2703
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2704
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2705
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2706
- NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 111 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2707
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 107]]
2708
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2709
-  (0.2ms) ROLLBACK
2710
-  (0.1ms) BEGIN
2711
-  (0.1ms) SAVEPOINT active_record_1
2712
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2713
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2714
-  (0.1ms) SAVEPOINT active_record_1
2715
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2716
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2717
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2718
-  (0.1ms) SAVEPOINT active_record_1
2719
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2720
- SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2721
-  (0.4ms) RELEASE SAVEPOINT active_record_1
2722
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 113]]
2723
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
2724
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 108 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
2725
-  (0.1ms) SAVEPOINT active_record_1
2726
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
2727
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2728
- SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 112 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2729
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2730
-  (0.1ms) SAVEPOINT active_record_1
2731
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 108]]
2732
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2733
- SQL (0.8ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 113 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2734
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2735
-  (0.1ms) SAVEPOINT active_record_1
2736
-  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2737
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2738
-  (0.1ms) SAVEPOINT active_record_1
2739
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2740
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2741
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2742
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 108 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2743
-  (0.1ms) SAVEPOINT active_record_1
2744
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA' LIMIT 1
2745
- SQL (0.7ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 108], ["target_type", "User"], ["token", "9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2746
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2747
-
2748
- Sent mail to user@example.com (7.4ms)
2749
- Date: Wed, 30 Apr 2014 13:22:31 +1000
2750
- From: please-change-me-at-config-initializers-notify-user@example.com
2751
- To: user@example.com
2752
- Message-ID: <53606c776083f_19f43fc971829bf834748@wp.local.mail>
2753
- Subject: Rails402: You have new Newpostnotification notifications.
2754
- Mime-Version: 1.0
2755
- Content-Type: text/html;
2756
- charset=UTF-8
2757
- Content-Transfer-Encoding: quoted-printable
2758
-
2759
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
2760
- tml4/strict.dtd">
2761
- <html>
2762
- <head>
2763
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
2764
- "/>
2765
- <title></title>
2766
- </head>
2767
-
2768
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
2769
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
2770
- ing: optimizeLegibility;">
2771
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
2772
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
2773
- Logo
2774
- </div>
2775
- </div>
2776
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
2777
- ">
2778
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
2779
- =
2780
-
2781
- <div>
2782
- New Post Notification happened. =
2783
-
2784
- </div>
2785
- <div>
2786
- New Post Notification happened. =
2787
-
2788
- </div>
2789
-
2790
- </div>
2791
- </div>
2792
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
2793
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
2794
- <p style=3D"text-align: center;">
2795
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
2796
- _unsubscribe?token=3D9Y9RTnCu5acrkLowWlm-0AqM2ZvOcLAT9JFCFmAXAFzA&amp;typ=
2797
- e=3DNewPostNotification">Unsubscribe</a>
2798
- </p>
2799
- <p style=3D"text-align: center;">
2800
- This is the default generated layout. A privacy declaration could g=
2801
- o here.
2802
- </p>
2803
- <p style=3D"text-align: center; margin-bottom: 0px;">
2804
- =C2=A9 MyCompany Pty Ltd
2805
- </p>
2806
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
2807
- ABN 123 456 789
2808
- </p>
2809
- </div>
2810
- </div>
2811
- </body>
2812
- </html>=
2813
-
2814
-  (0.2ms) ROLLBACK
2815
-  (0.2ms) BEGIN
2816
-  (0.1ms) SAVEPOINT active_record_1
2817
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2818
-  (0.4ms) RELEASE SAVEPOINT active_record_1
2819
-  (0.3ms) SAVEPOINT active_record_1
2820
-  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2821
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2822
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2823
- NotifyUser::BaseNotification Load (0.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 114]]
2824
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]]
2825
- NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 109 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
2826
-  (0.1ms) SAVEPOINT active_record_1
2827
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]]
2828
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2829
- SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 114 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2830
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2831
-  (0.1ms) SAVEPOINT active_record_1
2832
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2833
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2834
- NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 114 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2835
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 109]]
2836
-  (1.1ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2837
- NotifyUser::UserHash Load (0.9ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 109 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2838
-  (0.2ms) SAVEPOINT active_record_1
2839
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'cfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA' LIMIT 1
2840
- SQL (0.7ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 109], ["target_type", "User"], ["token", "cfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2841
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2842
-
2843
- Sent mail to user@example.com (11.0ms)
2844
- Date: Wed, 30 Apr 2014 13:22:31 +1000
2845
- From: please-change-me-at-config-initializers-notify-user@example.com
2846
- To: user@example.com
2847
- Message-ID: <53606c776d63c_19f43fc971829bf834837@wp.local.mail>
2848
- Subject: Rails402: You have a new Newpostnotification notification.
2849
- Mime-Version: 1.0
2850
- Content-Type: text/html;
2851
- charset=UTF-8
2852
- Content-Transfer-Encoding: quoted-printable
2853
-
2854
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
2855
- tml4/strict.dtd">
2856
- <html>
2857
- <head>
2858
- <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
2859
- "/>
2860
- <title></title>
2861
- </head>
2862
-
2863
- <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
2864
- 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
2865
- ing: optimizeLegibility;">
2866
- <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
2867
- <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
2868
- Logo
2869
- </div>
2870
- </div>
2871
- <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
2872
- ">
2873
- <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
2874
- New Post Notification happened.
2875
-
2876
- </div>
2877
- </div>
2878
- <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
2879
- <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
2880
- <p style=3D"text-align: center;">
2881
- <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
2882
- _unsubscribe?token=3DcfLQDIrjH-haWhYhfR6RGgIEJoyxL-FZ3novldmJklsA&amp;typ=
2883
- e=3DNewPostNotification">Unsubscribe</a>
2884
- </p>
2885
- <p style=3D"text-align: center;">
2886
- This is the default generated layout. A privacy declaration could g=
2887
- o here.
2888
- </p>
2889
- <p style=3D"text-align: center; margin-bottom: 0px;">
2890
- =C2=A9 MyCompany Pty Ltd
2891
- </p>
2892
- <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
2893
- ABN 123 456 789
2894
- </p>
2895
- </div>
2896
- </div>
2897
- </body>
2898
- </html>=
2899
-
2900
-  (0.2ms) ROLLBACK
2901
-  (0.3ms) BEGIN
2902
-  (0.4ms) SAVEPOINT active_record_1
2903
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2904
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2905
-  (0.1ms) SAVEPOINT active_record_1
2906
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2907
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 110], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2908
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2909
-  (0.1ms) SAVEPOINT active_record_1
2910
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2911
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2912
-  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2913
-  (0.1ms) SAVEPOINT active_record_1
2914
-  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2915
- SQL (1.2ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 115 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2916
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2917
-  (0.1ms) SAVEPOINT active_record_1
2918
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2919
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2920
- NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 115 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2921
- User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 110]]
2922
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2923
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
2924
-  (0.2ms) ROLLBACK
2925
-  (0.1ms) BEGIN
2926
-  (0.2ms) SAVEPOINT active_record_1
2927
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2928
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2929
-  (0.2ms) SAVEPOINT active_record_1
2930
- NotifyUser::Unsubscribe Exists (0.7ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 111) LIMIT 1
2931
- SQL (0.7ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 111], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2932
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2933
-  (0.2ms) SAVEPOINT active_record_1
2934
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2935
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2936
-  (0.1ms) SAVEPOINT active_record_1
2937
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2938
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
2939
-  (1.0ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 111 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2940
-  (0.4ms) ROLLBACK
2941
-  (0.3ms) BEGIN
2942
-  (0.2ms) SAVEPOINT active_record_1
2943
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2944
-  (0.3ms) RELEASE SAVEPOINT active_record_1
2945
-  (0.2ms) SAVEPOINT active_record_1
2946
- NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 112) LIMIT 1
2947
- SQL (0.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 112], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2948
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2949
-  (0.1ms) SAVEPOINT active_record_1
2950
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2951
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 112], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2952
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2953
-  (0.1ms) SAVEPOINT active_record_1
2954
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2955
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2956
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2957
-  (0.1ms) SAVEPOINT active_record_1
2958
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2959
- SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 116 [["state", "sent"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2960
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2961
-  (0.1ms) SAVEPOINT active_record_1
2962
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2963
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2964
- NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 116 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
2965
- User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 112]]
2966
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
2967
-  (0.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 112 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
2968
-  (0.2ms) ROLLBACK
2969
-  (0.1ms) BEGIN
2970
-  (0.1ms) SAVEPOINT active_record_1
2971
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2972
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2973
-  (0.1ms) SAVEPOINT active_record_1
2974
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 113 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2975
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 113], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2976
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2977
- NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 113 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2978
-  (0.2ms) SAVEPOINT active_record_1
2979
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Id40Rb4eFTnEEYhW5zJk1gekE8yVkMCSmSjNOkxZmwBg' LIMIT 1
2980
- SQL (0.7ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 113], ["target_type", "User"], ["token", "Id40Rb4eFTnEEYhW5zJk1gekE8yVkMCSmSjNOkxZmwBg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2981
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2982
-  (0.2ms) ROLLBACK
2983
-  (0.1ms) BEGIN
2984
-  (0.1ms) SAVEPOINT active_record_1
2985
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2986
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2987
-  (0.1ms) SAVEPOINT active_record_1
2988
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 114 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
2989
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 114], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2990
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2991
- NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 114 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2992
-  (0.1ms) SAVEPOINT active_record_1
2993
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GYn7nwiTgTcv2x8b2vcvXg8-hb3g1XQNW9qxGWvftXhg' LIMIT 1
2994
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 114], ["target_type", "User"], ["token", "GYn7nwiTgTcv2x8b2vcvXg8-hb3g1XQNW9qxGWvftXhg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
2995
-  (0.2ms) RELEASE SAVEPOINT active_record_1
2996
- NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 114 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
2997
-  (0.1ms) ROLLBACK
2998
-  (0.1ms) BEGIN
2999
-  (0.1ms) SAVEPOINT active_record_1
3000
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3001
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3002
-  (0.1ms) SAVEPOINT active_record_1
3003
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 115 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
3004
- SQL (0.4ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["state", "pending"], ["target_id", 115], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3005
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3006
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 115 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
3007
-  (0.1ms) SAVEPOINT active_record_1
3008
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dFeL-5OEHsR4HkIpTK8vvgnfI7flpZxw4eQkeS1sBWQA' LIMIT 1
3009
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 115], ["target_type", "User"], ["token", "dFeL-5OEHsR4HkIpTK8vvgnfI7flpZxw4eQkeS1sBWQA"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3010
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3011
-  (0.1ms) SAVEPOINT active_record_1
3012
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 34 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3013
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3014
- NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 115 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
3015
-  (0.1ms) SAVEPOINT active_record_1
3016
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4nUdFh8BgQn6czQT_LWKkAapGPYD4nhRzE3nuiNgNXsg' LIMIT 1
3017
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 115], ["target_type", "User"], ["token", "4nUdFh8BgQn6czQT_LWKkAapGPYD4nhRzE3nuiNgNXsg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3018
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3019
-  (0.1ms) ROLLBACK
3020
-  (0.1ms) BEGIN
3021
-  (0.1ms) SAVEPOINT active_record_1
3022
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3023
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3024
-  (0.1ms) SAVEPOINT active_record_1
3025
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 116) LIMIT 1
3026
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 116], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3027
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3028
-  (0.2ms) SAVEPOINT active_record_1
3029
- NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 28 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 116) LIMIT 1
3030
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3031
-  (0.1ms) SAVEPOINT active_record_1
3032
-  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 116 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
3033
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
3034
-  (0.2ms) ROLLBACK
3035
-  (0.2ms) BEGIN
3036
-  (0.1ms) SAVEPOINT active_record_1
3037
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3038
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3039
-  (0.1ms) SAVEPOINT active_record_1
3040
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 117) LIMIT 1
3041
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3042
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3043
-  (0.1ms) SAVEPOINT active_record_1
3044
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 29 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 117) LIMIT 1
3045
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3046
-  (0.1ms) SAVEPOINT active_record_1
3047
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 117) LIMIT 1
3048
-  (0.1ms) ROLLBACK TO SAVEPOINT active_record_1
3049
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
3050
-  (0.1ms) ROLLBACK
3051
-  (0.1ms) BEGIN
3052
-  (0.1ms) SAVEPOINT active_record_1
3053
- SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3054
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3055
-  (0.1ms) SAVEPOINT active_record_1
3056
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 118) LIMIT 1
3057
- SQL (0.4ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3058
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3059
-  (0.1ms) SAVEPOINT active_record_1
3060
- NotifyUser::Unsubscribe Exists (0.3ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 30 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 118) LIMIT 1
3061
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3062
-  (0.1ms) SAVEPOINT active_record_1
3063
- NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 118) LIMIT 1
3064
-  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
3065
-  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
3066
- NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
3067
-  (0.1ms) SAVEPOINT active_record_1
3068
- SQL (0.3ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 30]]
3069
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3070
- NotifyUser::Unsubscribe Load (0.3ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
3071
-  (0.6ms) ROLLBACK
3072
-  (0.1ms) BEGIN
3073
-  (0.1ms) SAVEPOINT active_record_1
3074
- SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3075
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3076
-  (0.1ms) SAVEPOINT active_record_1
3077
-  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
3078
- SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3079
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3080
-  (0.1ms) ROLLBACK
3081
-  (0.1ms) BEGIN
3082
-  (0.1ms) SAVEPOINT active_record_1
3083
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3084
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3085
-  (0.1ms) SAVEPOINT active_record_1
3086
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ' LIMIT 1
3087
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 120], ["target_type", "User"], ["token", "Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3088
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3089
-  (0.1ms) SAVEPOINT active_record_1
3090
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3091
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Mw-zVthFgTszyNUlvHIXQg7AE8J9Qrj1JSA-jGTjq8dQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
3092
-  (0.1ms) ROLLBACK
3093
-  (0.1ms) BEGIN
3094
-  (0.1ms) SAVEPOINT active_record_1
3095
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3096
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3097
-  (0.1ms) SAVEPOINT active_record_1
3098
- NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg' LIMIT 1
3099
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 121], ["target_type", "User"], ["token", "a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3100
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3101
-  (0.1ms) SAVEPOINT active_record_1
3102
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3103
-  (0.1ms) SAVEPOINT active_record_1
3104
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 37 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3105
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3106
- NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'a79Q9869ysV9naMCLfQg1AFIiV22fkoHS9S0Mxa1clWg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
3107
-  (0.2ms) ROLLBACK
3108
-  (0.1ms) BEGIN
3109
-  (0.1ms) SAVEPOINT active_record_1
3110
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3111
-  (0.2ms) RELEASE SAVEPOINT active_record_1
3112
-  (0.1ms) SAVEPOINT active_record_1
3113
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pTzTUQKAvZuaplh2sZpY2gOCQ5YyZKUz3ENcRNrfRE8g' LIMIT 1
3114
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 122], ["target_type", "User"], ["token", "pTzTUQKAvZuaplh2sZpY2gOCQ5YyZKUz3ENcRNrfRE8g"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3115
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3116
-  (0.1ms) SAVEPOINT active_record_1
3117
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3118
-  (0.1ms) SAVEPOINT active_record_1
3119
- SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 38 [["active", false], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3120
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3121
-  (0.1ms) ROLLBACK
3122
-  (0.1ms) BEGIN
3123
-  (0.1ms) SAVEPOINT active_record_1
3124
- SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3125
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3126
-  (0.1ms) SAVEPOINT active_record_1
3127
- NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UdKF3m1VAU3uz9rnSXed0wauEA7C1ZBWrEpPfQkfo8fg' LIMIT 1
3128
- SQL (0.4ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00], ["target_id", 123], ["target_type", "User"], ["token", "UdKF3m1VAU3uz9rnSXed0wauEA7C1ZBWrEpPfQkfo8fg"], ["type", "NewPostNotification"], ["updated_at", Wed, 30 Apr 2014 03:22:31 UTC +00:00]]
3129
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3130
-  (0.1ms) SAVEPOINT active_record_1
3131
-  (0.1ms) RELEASE SAVEPOINT active_record_1
3132
-  (0.2ms) ROLLBACK
3133
-  (0.1ms) BEGIN
3134
-  (0.1ms) ROLLBACK
3135
-  (0.1ms) BEGIN
3136
-  (0.2ms) ROLLBACK
3137
-  (0.1ms) BEGIN
3138
-  (0.2ms) ROLLBACK
3139
-  (0.1ms) BEGIN
3140
-  (0.2ms) ROLLBACK
3141
-  (0.1ms) BEGIN
3142
-  (0.1ms) ROLLBACK
3143
-  (0.1ms) BEGIN
3144
-  (0.1ms) ROLLBACK
3145
-  (0.1ms) BEGIN
3146
-  (0.1ms) ROLLBACK