notify_user 0.0.24 → 0.0.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 750cba2cffccaf3e75e84314398fc19b95fc1aa1
4
- data.tar.gz: e61be5a81fc70de8d790d1137ad9d0ed92aedb02
3
+ metadata.gz: 7ac2603bea84ed0732f612ebe0a863a014f8091b
4
+ data.tar.gz: ef99a7d91412f59b1499d7024c0ec4c8623e6eb2
5
5
  SHA512:
6
- metadata.gz: 0d08d03e8db322585e477613cb3336a194e449ba1cde14acae1ea390b3579c959e989d1b39d6dd71723543ce91cb0d4f6a16b35dab6d28813f75413eee99dd6f
7
- data.tar.gz: 1d7e8aaf777f0bbb01ef117386e936ff066397d85272204c0c6640761d5a21b6c1eed28a3cd5e1a9ae5c743ee7c2ffac236841d12617eaf5c6cf13e112d1aeaa
6
+ metadata.gz: f8fed45fe13ac4a464a1244fb23ad9450aaad74aa3265ebceb3ce6f3cb99d81d0175263e3ee7bfebfe0d011d08978bf00e1866a9a6ad443e296305e5f327369d
7
+ data.tar.gz: 8ae0a24bb1aa3fb3227dd3781919d02241351fe2390dc4e5c25df3420a48fbba006e76c71b812d5ca6a6363e28fe5635a78bec2e159f9cadc40e9dfdd4d50d1d
@@ -27,7 +27,8 @@ module NotifyUser
27
27
  }
28
28
 
29
29
  pn_apns[:aps][:action_id] = notification.params[:action_id] if notification.params[:action_id]
30
-
30
+ pn_apns[:aps]['content-available'] = notification.params['content-available'] if notification.params['content-available']
31
+
31
32
  pubnub.publish(
32
33
  channel: notification.target.uuid,
33
34
  http_sync: true,
@@ -1,3 +1,3 @@
1
1
  module NotifyUser
2
- VERSION = "0.0.24"
2
+ VERSION = "0.0.25"
3
3
  end
@@ -30324,3 +30324,3234 @@ o here.
30324
30324
   (0.2ms) ROLLBACK
30325
30325
   (0.2ms) BEGIN
30326
30326
   (0.3ms) ROLLBACK
30327
+  (1.1ms) BEGIN
30328
+  (0.8ms) SAVEPOINT active_record_1
30329
+ SQL (22.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30330
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30331
+ Processing by NotifyUser::NotificationsController#index as HTML
30332
+ Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
30333
+ Completed 200 OK in 17ms (Views: 13.2ms | ActiveRecord: 0.0ms)
30334
+  (0.5ms) ROLLBACK
30335
+  (0.2ms) BEGIN
30336
+  (0.2ms) SAVEPOINT active_record_1
30337
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30338
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30339
+  (0.3ms) SAVEPOINT active_record_1
30340
+  (5.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1248 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30341
+ SQL (3.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", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1248], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30342
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30343
+ Processing by NotifyUser::NotificationsController#index as JSON
30344
+  (0.9ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1248 AND "notify_user_notifications"."target_type" = 'User'
30345
+ NotifyUser::BaseNotification Load (3.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1248 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
30346
+ Completed 200 OK in 24ms (Views: 12.5ms | ActiveRecord: 4.2ms)
30347
+  (0.4ms) ROLLBACK
30348
+  (0.3ms) BEGIN
30349
+  (0.2ms) SAVEPOINT active_record_1
30350
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30351
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30352
+  (0.2ms) SAVEPOINT active_record_1
30353
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1249 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30354
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1249], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30355
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30356
+  (0.2ms) SAVEPOINT active_record_1
30357
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1249 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30358
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1249], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30359
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30360
+  (0.2ms) SAVEPOINT active_record_1
30361
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1249 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30362
+ 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", Thu, 11 Dec 2014 01:38:23 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1249], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:23 UTC +00:00]]
30363
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30364
+ Processing by NotifyUser::NotificationsController#index as HTML
30365
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1249 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
30366
+ Completed 200 OK in 42ms (Views: 40.6ms | ActiveRecord: 0.7ms)
30367
+  (0.4ms) ROLLBACK
30368
+  (0.2ms) BEGIN
30369
+  (0.3ms) SAVEPOINT active_record_1
30370
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30371
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30372
+  (0.3ms) SAVEPOINT active_record_1
30373
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1250 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30374
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1250], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30375
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30376
+  (0.2ms) SAVEPOINT active_record_1
30377
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1250 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30378
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1250], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30379
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30380
+  (0.2ms) SAVEPOINT active_record_1
30381
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1250 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30382
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1250], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30383
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30384
+ Processing by NotifyUser::NotificationsController#read as HTML
30385
+ Parameters: {"id"=>"1261"}
30386
+ NotifyUser::BaseNotification Load (1.1ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1250 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1261') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30387
+  (0.2ms) SAVEPOINT active_record_1
30388
+ User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1250]]
30389
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1250 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30390
+ SQL (2.6ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1261 [["state", "read"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30391
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30392
+ Completed 200 OK in 24ms (Views: 2.0ms | ActiveRecord: 5.6ms)
30393
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1261 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30394
+  (0.3ms) ROLLBACK
30395
+  (0.2ms) BEGIN
30396
+  (0.3ms) SAVEPOINT active_record_1
30397
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30398
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30399
+  (0.3ms) SAVEPOINT active_record_1
30400
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1251 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30401
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1251], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30402
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30403
+  (0.2ms) SAVEPOINT active_record_1
30404
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1251 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30405
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1251], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30406
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30407
+  (0.2ms) SAVEPOINT active_record_1
30408
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1251 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30409
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1251], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30410
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30411
+ Processing by NotifyUser::NotificationsController#read as HTML
30412
+ Parameters: {"id"=>"1264"}
30413
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1251 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1264') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30414
+  (0.2ms) SAVEPOINT active_record_1
30415
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1251]]
30416
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1251 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30417
+ 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" = 1264 [["state", "read"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30418
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30419
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 2.8ms)
30420
+ Processing by NotifyUser::NotificationsController#read as HTML
30421
+ Parameters: {"id"=>"1264"}
30422
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1251 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1264') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30423
+ Completed 200 OK in 2ms (Views: 0.3ms | ActiveRecord: 3.4ms)
30424
+  (0.4ms) ROLLBACK
30425
+  (0.2ms) BEGIN
30426
+  (0.3ms) SAVEPOINT active_record_1
30427
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30428
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30429
+  (0.4ms) SAVEPOINT active_record_1
30430
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1252 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30431
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1252], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30432
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30433
+  (0.2ms) SAVEPOINT active_record_1
30434
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1252 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30435
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1252], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30436
+  (0.4ms) RELEASE SAVEPOINT active_record_1
30437
+  (0.2ms) SAVEPOINT active_record_1
30438
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1252 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30439
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1252], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30440
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30441
+ Processing by NotifyUser::NotificationsController#mark_all as HTML
30442
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1252 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
30443
+ Redirected to http://test.host/notify_user/notifications
30444
+ Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
30445
+ NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1252 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
30446
+  (0.3ms) ROLLBACK
30447
+  (0.2ms) BEGIN
30448
+  (0.2ms) SAVEPOINT active_record_1
30449
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30450
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30451
+  (0.2ms) SAVEPOINT active_record_1
30452
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1253 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30453
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1253], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30454
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30455
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
30456
+ Parameters: {"ids"=>["1270"]}
30457
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1253 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1270'))
30458
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1253 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1270'))
30459
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 1.1ms)
30460
+ NewPostNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1270]]
30461
+  (0.4ms) ROLLBACK
30462
+  (0.2ms) BEGIN
30463
+  (0.2ms) SAVEPOINT active_record_1
30464
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30466
+  (0.3ms) SAVEPOINT active_record_1
30467
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1254 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30468
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1254], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30469
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30470
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
30471
+ Parameters: {"ids"=>["1271"]}
30472
+ SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1254 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1271'))
30473
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1254 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1271'))
30474
+ Completed 200 OK in 5ms (Views: 2.5ms | ActiveRecord: 1.3ms)
30475
+  (0.3ms) ROLLBACK
30476
+  (0.2ms) BEGIN
30477
+  (0.2ms) SAVEPOINT active_record_1
30478
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30479
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30480
+  (0.2ms) SAVEPOINT active_record_1
30481
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1255 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30482
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1255], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30483
+  (0.4ms) RELEASE SAVEPOINT active_record_1
30484
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1255 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30485
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
30486
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
30487
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1255 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30488
+  (0.2ms) SAVEPOINT active_record_1
30489
+ 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" = 1255) LIMIT 1
30490
+ SQL (3.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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1255], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30491
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30492
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1255 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30493
+ Completed 200 OK in 36ms (Views: 0.3ms | ActiveRecord: 5.4ms)
30494
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1255 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30495
+  (0.2ms) ROLLBACK
30496
+  (0.1ms) BEGIN
30497
+  (0.2ms) SAVEPOINT active_record_1
30498
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30499
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30500
+  (0.3ms) SAVEPOINT active_record_1
30501
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1256 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30502
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1256], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30503
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30504
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1256 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30505
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
30506
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
30507
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1256 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30508
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1256 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30509
+ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 1.1ms)
30510
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1256 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30511
+  (0.2ms) ROLLBACK
30512
+  (0.2ms) BEGIN
30513
+  (0.2ms) SAVEPOINT active_record_1
30514
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30515
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30516
+  (0.2ms) SAVEPOINT active_record_1
30517
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1257 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30518
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1257], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30519
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30520
+ Processing by NotifyUser::NotificationsController#unsubscribe as HTML
30521
+ Parameters: {"type"=>"NewPostNotification"}
30522
+  (0.3ms) SAVEPOINT active_record_1
30523
+ 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" = 1257) LIMIT 1
30524
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1257], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30525
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30526
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
30527
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1257 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30528
+ Completed 302 Found in 6ms (ActiveRecord: 2.1ms)
30529
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
30530
+  (0.2ms) ROLLBACK
30531
+  (0.2ms) BEGIN
30532
+  (0.3ms) SAVEPOINT active_record_1
30533
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30534
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30535
+  (0.2ms) SAVEPOINT active_record_1
30536
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1258 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30537
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1258], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30538
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30539
+  (0.2ms) SAVEPOINT active_record_1
30540
+ 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" = 1258) LIMIT 1
30541
+ SQL (0.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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1258], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30543
+ Processing by NotifyUser::NotificationsController#subscribe as HTML
30544
+ Parameters: {"type"=>"NewPostNotification"}
30545
+ NotifyUser::Unsubscribe Load (0.7ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1258 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30546
+  (0.2ms) SAVEPOINT active_record_1
30547
+ SQL (0.6ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 287]]
30548
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30549
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
30550
+ Completed 302 Found in 5ms (ActiveRecord: 1.9ms)
30551
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
30552
+  (0.3ms) ROLLBACK
30553
+  (0.2ms) BEGIN
30554
+  (0.2ms) SAVEPOINT active_record_1
30555
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30556
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30557
+  (0.2ms) SAVEPOINT active_record_1
30558
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1259 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30559
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1259], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30560
+  (0.4ms) RELEASE SAVEPOINT active_record_1
30561
+ NotifyUser::UserHash Load (11.0ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1259 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
30562
+  (0.3ms) SAVEPOINT active_record_1
30563
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'r9d3tEXxcwUzJBrdZbMY5AeWYR9o8pgqZcPm0M8KRF3g' LIMIT 1
30564
+ SQL (2.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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1259], ["target_type", "User"], ["token", "r9d3tEXxcwUzJBrdZbMY5AeWYR9o8pgqZcPm0M8KRF3g"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30565
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30566
+ Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
30567
+ Parameters: {"type"=>"NewPostNotification", "token"=>"r9d3tEXxcwUzJBrdZbMY5AeWYR9o8pgqZcPm0M8KRF3g"}
30568
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'r9d3tEXxcwUzJBrdZbMY5AeWYR9o8pgqZcPm0M8KRF3g' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
30569
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'r9d3tEXxcwUzJBrdZbMY5AeWYR9o8pgqZcPm0M8KRF3g' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
30570
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1259]]
30571
+  (0.2ms) SAVEPOINT active_record_1
30572
+ 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" = 1259) LIMIT 1
30573
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1259], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30574
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30575
+  (0.3ms) SAVEPOINT active_record_1
30576
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 350 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30577
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30578
+ Completed 200 OK in 13ms (Views: 0.4ms | ActiveRecord: 4.5ms)
30579
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
30580
+  (0.3ms) ROLLBACK
30581
+  (0.2ms) BEGIN
30582
+ 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
30583
+  (0.2ms) SAVEPOINT active_record_1
30584
+  (0.9ms) ROLLBACK TO SAVEPOINT active_record_1
30585
+ 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
30586
+  (0.2ms) SAVEPOINT active_record_1
30587
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
30588
+  (0.3ms) ROLLBACK
30589
+  (0.2ms) BEGIN
30590
+ 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
30591
+  (0.2ms) SAVEPOINT active_record_1
30592
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
30593
+ NotifyUser::UserHash Load (0.9ms) 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
30594
+  (0.3ms) SAVEPOINT active_record_1
30595
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
30596
+  (0.4ms) ROLLBACK
30597
+  (0.2ms) BEGIN
30598
+ 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
30599
+  (0.3ms) SAVEPOINT active_record_1
30600
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
30601
+ NotifyUser::UserHash Load (0.7ms) 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
30602
+  (0.3ms) SAVEPOINT active_record_1
30603
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
30604
+  (0.3ms) ROLLBACK
30605
+  (0.2ms) BEGIN
30606
+  (0.3ms) SAVEPOINT active_record_1
30607
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30608
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30609
+  (0.2ms) SAVEPOINT active_record_1
30610
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1260 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30611
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1260], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30612
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30613
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1260 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
30614
+  (0.2ms) ROLLBACK
30615
+  (0.2ms) BEGIN
30616
+  (0.2ms) SAVEPOINT active_record_1
30617
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30618
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30619
+  (0.2ms) SAVEPOINT active_record_1
30620
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1261 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30621
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1261], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30622
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30623
+  (0.2ms) ROLLBACK
30624
+  (0.2ms) BEGIN
30625
+  (0.2ms) SAVEPOINT active_record_1
30626
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30627
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30628
+  (0.2ms) SAVEPOINT active_record_1
30629
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1262 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30630
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1262], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30631
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30632
+  (0.2ms) ROLLBACK
30633
+  (0.2ms) BEGIN
30634
+  (0.3ms) SAVEPOINT active_record_1
30635
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30636
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30637
+  (0.3ms) SAVEPOINT active_record_1
30638
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1263 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30639
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1263], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30640
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30641
+  (0.2ms) SAVEPOINT active_record_1
30642
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1263 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30643
+ 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" = 1280 [["params", {"listing_id"=>1}], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30644
+  (0.4ms) RELEASE SAVEPOINT active_record_1
30645
+ 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
30646
+  (0.2ms) ROLLBACK
30647
+  (0.2ms) BEGIN
30648
+  (0.3ms) SAVEPOINT active_record_1
30649
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30650
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30651
+  (0.2ms) SAVEPOINT active_record_1
30652
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1264 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30653
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1264], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30654
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30655
+  (0.2ms) SAVEPOINT active_record_1
30656
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1264 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30657
+ 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" = 1281 [["params", {"listing_id"=>1}], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30658
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30659
+ 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
30660
+  (0.3ms) ROLLBACK
30661
+  (0.2ms) BEGIN
30662
+  (0.2ms) SAVEPOINT active_record_1
30663
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30664
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30665
+  (0.2ms) SAVEPOINT active_record_1
30666
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1265 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30667
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1265], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30668
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30669
+  (0.2ms) SAVEPOINT active_record_1
30670
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1265 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30671
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1282 [["params", {:listing_id=>1}], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30672
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30673
+ 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
30674
+  (0.2ms) ROLLBACK
30675
+  (0.2ms) BEGIN
30676
+  (0.2ms) SAVEPOINT active_record_1
30677
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30678
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30679
+  (0.2ms) SAVEPOINT active_record_1
30680
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1266 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30681
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1266], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30682
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30683
+  (0.2ms) SAVEPOINT active_record_1
30684
+  (0.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1266 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30685
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1283 [["params", {:listing_id=>1}], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30686
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30687
+ 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
30688
+  (0.3ms) ROLLBACK
30689
+  (0.2ms) BEGIN
30690
+  (0.2ms) SAVEPOINT active_record_1
30691
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30693
+  (0.3ms) SAVEPOINT active_record_1
30694
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1267 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30695
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1267], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30696
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30697
+  (0.3ms) SAVEPOINT active_record_1
30698
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
30699
+  (0.3ms) ROLLBACK
30700
+  (0.2ms) BEGIN
30701
+  (0.2ms) SAVEPOINT active_record_1
30702
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30703
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30704
+  (0.2ms) SAVEPOINT active_record_1
30705
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30706
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1268], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30708
+  (0.3ms) SAVEPOINT active_record_1
30709
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30710
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30711
+  (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" = 1268 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1285)
30712
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1285]]
30713
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1268]]
30714
+ 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" = 1268 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
30715
+  (0.2ms) SAVEPOINT active_record_1
30716
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1268]]
30717
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30718
+ 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" = 1285 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30719
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30720
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1285 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30721
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1268]]
30722
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
30723
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1285 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30724
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1268]]
30725
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1268 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
30726
+  (0.2ms) ROLLBACK
30727
+  (0.2ms) BEGIN
30728
+  (0.3ms) SAVEPOINT active_record_1
30729
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30730
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30731
+  (0.2ms) SAVEPOINT active_record_1
30732
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30733
+ SQL (1.1ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1269], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30734
+  (0.4ms) RELEASE SAVEPOINT active_record_1
30735
+  (0.4ms) SAVEPOINT active_record_1
30736
+  (0.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30737
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30738
+  (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" = 1269 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1286)
30739
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1286]]
30740
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1269]]
30741
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1269 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
30742
+  (0.3ms) SAVEPOINT active_record_1
30743
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1269]]
30744
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30745
+ 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" = 1286 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30746
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30747
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1286 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30748
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1269]]
30749
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
30750
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1286 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30751
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1269]]
30752
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1269 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
30753
+  (0.3ms) ROLLBACK
30754
+  (0.2ms) BEGIN
30755
+  (0.2ms) SAVEPOINT active_record_1
30756
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30757
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30758
+  (0.2ms) SAVEPOINT active_record_1
30759
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1270 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30760
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1270], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30761
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30762
+  (0.2ms) SAVEPOINT active_record_1
30763
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1270 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30765
+  (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" = 1270 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1287)
30766
+  (0.2ms) SAVEPOINT active_record_1
30767
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1270 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30768
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1270], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30770
+  (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" = 1270 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1288)
30771
+  (0.3ms) ROLLBACK
30772
+  (0.2ms) BEGIN
30773
+  (0.2ms) SAVEPOINT active_record_1
30774
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
30776
+  (0.1ms) SAVEPOINT active_record_1
30777
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1271 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30778
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1271], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30779
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30780
+  (0.2ms) SAVEPOINT active_record_1
30781
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1271 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30782
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1271], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30783
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30784
+ 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", 1290]]
30785
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1271]]
30786
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1271 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
30787
+  (0.2ms) SAVEPOINT active_record_1
30788
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1271]]
30789
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1271 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30790
+ SQL (1.1ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1289 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30791
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30792
+  (0.2ms) SAVEPOINT active_record_1
30793
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1271]]
30794
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1271 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30795
+ 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" = 1290 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30796
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30797
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1271 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
30798
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1271 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
30799
+  (0.3ms) SAVEPOINT active_record_1
30800
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ZLepSvYwZpDG4hKywa1HXQylFUB5aAI92ET6pmk6lLTw' LIMIT 1
30801
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1271], ["target_type", "User"], ["token", "ZLepSvYwZpDG4hKywa1HXQylFUB5aAI92ET6pmk6lLTw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30802
+  (0.4ms) RELEASE SAVEPOINT active_record_1
30803
+
30804
+ Sent mail to user@example.com (15.5ms)
30805
+ Date: Thu, 11 Dec 2014 12:38:24 +1100
30806
+ From: please-change-me-at-config-initializers-notify-user@example.com
30807
+ To: user@example.com
30808
+ Message-ID: <5488f590ade1a_cf913fcda5865be8805a@wp.local.mail>
30809
+ Subject: Rails404: You have new Newpostnotification notifications.
30810
+ Mime-Version: 1.0
30811
+ Content-Type: text/html;
30812
+ charset=UTF-8
30813
+ Content-Transfer-Encoding: quoted-printable
30814
+
30815
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
30816
+ tml4/strict.dtd">
30817
+ <html>
30818
+ <head>
30819
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
30820
+ "/>
30821
+ <title></title>
30822
+ </head>
30823
+
30824
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
30825
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
30826
+ ing: optimizeLegibility;">
30827
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
30828
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
30829
+ Logo
30830
+ </div>
30831
+ </div>
30832
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
30833
+ ">
30834
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
30835
+ =
30836
+
30837
+ <div>
30838
+ New Post Notification happened. =
30839
+
30840
+ </div>
30841
+ <div>
30842
+ New Post Notification happened. =
30843
+
30844
+ </div>
30845
+
30846
+ </div>
30847
+ </div>
30848
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
30849
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
30850
+ <p style=3D"text-align: center;">
30851
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
30852
+ _unsubscribe?token=3DZLepSvYwZpDG4hKywa1HXQylFUB5aAI92ET6pmk6lLTw&amp;typ=
30853
+ e=3DNewPostNotification">Unsubscribe</a>
30854
+ </p>
30855
+ <p style=3D"text-align: center;">
30856
+ This is the default generated layout. A privacy declaration could g=
30857
+ o here.
30858
+ </p>
30859
+ <p style=3D"text-align: center; margin-bottom: 0px;">
30860
+ =C2=A9 MyCompany Pty Ltd
30861
+ </p>
30862
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
30863
+ ABN 123 456 789
30864
+ </p>
30865
+ </div>
30866
+ </div>
30867
+ </body>
30868
+ </html>=
30869
+
30870
+  (0.3ms) ROLLBACK
30871
+  (0.2ms) BEGIN
30872
+  (0.2ms) SAVEPOINT active_record_1
30873
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30874
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30875
+  (0.2ms) SAVEPOINT active_record_1
30876
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1272 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30877
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1272], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30878
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30879
+ 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", 1291]]
30880
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1272]]
30881
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1272 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
30882
+  (0.3ms) SAVEPOINT active_record_1
30883
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1272]]
30884
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1272 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30885
+ 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" = 1291 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30886
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30887
+ NewPostNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1291 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30888
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1272]]
30889
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1272 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
30890
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1272 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
30891
+  (0.3ms) SAVEPOINT active_record_1
30892
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'lUgYUSTLalKvxuHpmQetkwXGMuUEP03kfkoxQXbr3cQg' LIMIT 1
30893
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1272], ["target_type", "User"], ["token", "lUgYUSTLalKvxuHpmQetkwXGMuUEP03kfkoxQXbr3cQg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30894
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30895
+
30896
+ Sent mail to user@example.com (7.0ms)
30897
+ Date: Thu, 11 Dec 2014 12:38:24 +1100
30898
+ From: please-change-me-at-config-initializers-notify-user@example.com
30899
+ To: user@example.com
30900
+ Message-ID: <5488f590bace6_cf913fcda5865be88062e@wp.local.mail>
30901
+ Subject: Rails404: You have a new Newpostnotification notification.
30902
+ Mime-Version: 1.0
30903
+ Content-Type: text/html;
30904
+ charset=UTF-8
30905
+ Content-Transfer-Encoding: quoted-printable
30906
+
30907
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
30908
+ tml4/strict.dtd">
30909
+ <html>
30910
+ <head>
30911
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
30912
+ "/>
30913
+ <title></title>
30914
+ </head>
30915
+
30916
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
30917
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
30918
+ ing: optimizeLegibility;">
30919
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
30920
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
30921
+ Logo
30922
+ </div>
30923
+ </div>
30924
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
30925
+ ">
30926
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
30927
+ New Post Notification happened.
30928
+
30929
+ </div>
30930
+ </div>
30931
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
30932
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
30933
+ <p style=3D"text-align: center;">
30934
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
30935
+ _unsubscribe?token=3DlUgYUSTLalKvxuHpmQetkwXGMuUEP03kfkoxQXbr3cQg&amp;typ=
30936
+ e=3DNewPostNotification">Unsubscribe</a>
30937
+ </p>
30938
+ <p style=3D"text-align: center;">
30939
+ This is the default generated layout. A privacy declaration could g=
30940
+ o here.
30941
+ </p>
30942
+ <p style=3D"text-align: center; margin-bottom: 0px;">
30943
+ =C2=A9 MyCompany Pty Ltd
30944
+ </p>
30945
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
30946
+ ABN 123 456 789
30947
+ </p>
30948
+ </div>
30949
+ </div>
30950
+ </body>
30951
+ </html>=
30952
+
30953
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1272 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
30954
+  (0.2ms) ROLLBACK
30955
+  (0.3ms) BEGIN
30956
+  (0.2ms) SAVEPOINT active_record_1
30957
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30958
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30959
+  (0.4ms) SAVEPOINT active_record_1
30960
+ 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" = 1273) LIMIT 1
30961
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1273], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30962
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30963
+  (0.3ms) SAVEPOINT active_record_1
30964
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30965
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
30966
+ 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
30967
+  (0.2ms) ROLLBACK
30968
+  (0.2ms) BEGIN
30969
+  (0.2ms) SAVEPOINT active_record_1
30970
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30971
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30972
+  (0.2ms) SAVEPOINT active_record_1
30973
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30974
+ SQL (0.8ms) 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1274], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30976
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1292 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
30977
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1274]]
30978
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
30979
+  (0.3ms) ROLLBACK
30980
+  (0.3ms) BEGIN
30981
+  (0.2ms) SAVEPOINT active_record_1
30982
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30983
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30984
+  (0.3ms) SAVEPOINT active_record_1
30985
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30986
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1275], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30987
+  (0.3ms) RELEASE SAVEPOINT active_record_1
30988
+  (0.3ms) SAVEPOINT active_record_1
30989
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30990
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1275], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30991
+  (0.2ms) RELEASE SAVEPOINT active_record_1
30992
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1294]]
30993
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1275]]
30994
+ NewPostNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1275 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
30995
+  (0.2ms) SAVEPOINT active_record_1
30996
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1275]]
30997
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
30998
+ 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" = 1293 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
30999
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31000
+  (0.2ms) SAVEPOINT active_record_1
31001
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1275]]
31002
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31003
+ 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" = 1294 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31004
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31005
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31006
+ NotifyUser::UserHash Load (0.9ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1275 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
31007
+  (0.3ms) SAVEPOINT active_record_1
31008
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'xHixiDGSVtQaz_xL6b1YGwqcIBaHODdM4y6MPIkGv7uA' LIMIT 1
31009
+ SQL (0.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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1275], ["target_type", "User"], ["token", "xHixiDGSVtQaz_xL6b1YGwqcIBaHODdM4y6MPIkGv7uA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31010
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31011
+
31012
+ Sent mail to user@example.com (5.7ms)
31013
+ Date: Thu, 11 Dec 2014 12:38:24 +1100
31014
+ From: please-change-me-at-config-initializers-notify-user@example.com
31015
+ To: user@example.com
31016
+ Message-ID: <5488f590d0ef6_cf913fcda5865be88073@wp.local.mail>
31017
+ Subject: Rails404: You have new Newpostnotification notifications.
31018
+ Mime-Version: 1.0
31019
+ Content-Type: text/html;
31020
+ charset=UTF-8
31021
+ Content-Transfer-Encoding: quoted-printable
31022
+
31023
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
31024
+ tml4/strict.dtd">
31025
+ <html>
31026
+ <head>
31027
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
31028
+ "/>
31029
+ <title></title>
31030
+ </head>
31031
+
31032
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
31033
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
31034
+ ing: optimizeLegibility;">
31035
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
31036
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
31037
+ Logo
31038
+ </div>
31039
+ </div>
31040
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
31041
+ ">
31042
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
31043
+ =
31044
+
31045
+ <div>
31046
+ New Post Notification happened. =
31047
+
31048
+ </div>
31049
+ <div>
31050
+ New Post Notification happened. =
31051
+
31052
+ </div>
31053
+
31054
+ </div>
31055
+ </div>
31056
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
31057
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
31058
+ <p style=3D"text-align: center;">
31059
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
31060
+ _unsubscribe?token=3DxHixiDGSVtQaz_xL6b1YGwqcIBaHODdM4y6MPIkGv7uA&amp;typ=
31061
+ e=3DNewPostNotification">Unsubscribe</a>
31062
+ </p>
31063
+ <p style=3D"text-align: center;">
31064
+ This is the default generated layout. A privacy declaration could g=
31065
+ o here.
31066
+ </p>
31067
+ <p style=3D"text-align: center; margin-bottom: 0px;">
31068
+ =C2=A9 MyCompany Pty Ltd
31069
+ </p>
31070
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
31071
+ ABN 123 456 789
31072
+ </p>
31073
+ </div>
31074
+ </div>
31075
+ </body>
31076
+ </html>=
31077
+
31078
+  (0.3ms) ROLLBACK
31079
+  (0.2ms) BEGIN
31080
+  (0.2ms) SAVEPOINT active_record_1
31081
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31082
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31083
+  (0.2ms) SAVEPOINT active_record_1
31084
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1276 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31085
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1276], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31086
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31087
+ NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1295]]
31088
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1276]]
31089
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1276 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
31090
+  (0.2ms) SAVEPOINT active_record_1
31091
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1276]]
31092
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1276 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31093
+ 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" = 1295 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31094
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31095
+ NewPostNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1295 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31096
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1276]]
31097
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1276 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31098
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1276 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
31099
+  (0.3ms) SAVEPOINT active_record_1
31100
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'rJ5_beQrEuR7NJb6c8ExEwRuQEzIok_nYuAYQYjRbvCA' LIMIT 1
31101
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1276], ["target_type", "User"], ["token", "rJ5_beQrEuR7NJb6c8ExEwRuQEzIok_nYuAYQYjRbvCA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31102
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31103
+
31104
+ Sent mail to user@example.com (5.8ms)
31105
+ Date: Thu, 11 Dec 2014 12:38:24 +1100
31106
+ From: please-change-me-at-config-initializers-notify-user@example.com
31107
+ To: user@example.com
31108
+ Message-ID: <5488f590db14b_cf913fcda5865be880834@wp.local.mail>
31109
+ Subject: Rails404: You have a new Newpostnotification notification.
31110
+ Mime-Version: 1.0
31111
+ Content-Type: text/html;
31112
+ charset=UTF-8
31113
+ Content-Transfer-Encoding: quoted-printable
31114
+
31115
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
31116
+ tml4/strict.dtd">
31117
+ <html>
31118
+ <head>
31119
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
31120
+ "/>
31121
+ <title></title>
31122
+ </head>
31123
+
31124
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
31125
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
31126
+ ing: optimizeLegibility;">
31127
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
31128
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
31129
+ Logo
31130
+ </div>
31131
+ </div>
31132
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
31133
+ ">
31134
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
31135
+ New Post Notification happened.
31136
+
31137
+ </div>
31138
+ </div>
31139
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
31140
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
31141
+ <p style=3D"text-align: center;">
31142
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
31143
+ _unsubscribe?token=3DrJ5_beQrEuR7NJb6c8ExEwRuQEzIok_nYuAYQYjRbvCA&amp;typ=
31144
+ e=3DNewPostNotification">Unsubscribe</a>
31145
+ </p>
31146
+ <p style=3D"text-align: center;">
31147
+ This is the default generated layout. A privacy declaration could g=
31148
+ o here.
31149
+ </p>
31150
+ <p style=3D"text-align: center; margin-bottom: 0px;">
31151
+ =C2=A9 MyCompany Pty Ltd
31152
+ </p>
31153
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
31154
+ ABN 123 456 789
31155
+ </p>
31156
+ </div>
31157
+ </div>
31158
+ </body>
31159
+ </html>=
31160
+
31161
+  (0.4ms) ROLLBACK
31162
+  (0.2ms) BEGIN
31163
+  (0.2ms) SAVEPOINT active_record_1
31164
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31165
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31166
+  (0.2ms) SAVEPOINT active_record_1
31167
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31168
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1277], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31169
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31170
+  (0.3ms) SAVEPOINT active_record_1
31171
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31172
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31173
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31174
+  (0.2ms) SAVEPOINT active_record_1
31175
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31176
+ 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" = 1296 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31177
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31178
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1296 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31179
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1277]]
31180
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31181
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1277 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
31182
+  (0.2ms) ROLLBACK
31183
+  (0.2ms) BEGIN
31184
+  (0.2ms) SAVEPOINT active_record_1
31185
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31186
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31187
+  (0.2ms) SAVEPOINT active_record_1
31188
+ 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" = 1278) LIMIT 1
31189
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1278], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31190
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31191
+  (0.2ms) SAVEPOINT active_record_1
31192
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1278 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31193
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
31194
+  (0.2ms) SAVEPOINT active_record_1
31195
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1278 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31196
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
31197
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1278 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31198
+  (0.3ms) ROLLBACK
31199
+  (0.2ms) BEGIN
31200
+  (0.3ms) SAVEPOINT active_record_1
31201
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31202
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31203
+  (0.2ms) SAVEPOINT active_record_1
31204
+ 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" = 1279) LIMIT 1
31205
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1279], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31206
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31207
+  (0.2ms) SAVEPOINT active_record_1
31208
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 291 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1279) LIMIT 1
31209
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31210
+  (0.4ms) SAVEPOINT active_record_1
31211
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31212
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1279], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31213
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31214
+  (0.2ms) SAVEPOINT active_record_1
31215
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31216
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31217
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31218
+  (0.2ms) SAVEPOINT active_record_1
31219
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31220
+ 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" = 1297 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31221
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31222
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1297 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31223
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1279]]
31224
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31225
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1279 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
31226
+  (0.2ms) ROLLBACK
31227
+  (0.3ms) BEGIN
31228
+  (0.2ms) SAVEPOINT active_record_1
31229
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31230
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31231
+  (0.2ms) SAVEPOINT active_record_1
31232
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1280 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31233
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["state", "pending"], ["target_id", 1280], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31234
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31235
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1280 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
31236
+  (0.2ms) SAVEPOINT active_record_1
31237
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3ynOc0_mCKF6-vu5_mZ1Ag7vEVH3BVTkRI79F4RTQPYQ' LIMIT 1
31238
+ 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", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["target_id", 1280], ["target_type", "User"], ["token", "3ynOc0_mCKF6-vu5_mZ1Ag7vEVH3BVTkRI79F4RTQPYQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31239
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31240
+  (0.2ms) ROLLBACK
31241
+  (0.2ms) BEGIN
31242
+  (0.2ms) SAVEPOINT active_record_1
31243
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:24 UTC +00:00]]
31244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31245
+  (0.2ms) SAVEPOINT active_record_1
31246
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1281 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31247
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["state", "pending"], ["target_id", 1281], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31248
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31249
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1281 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
31250
+  (0.2ms) SAVEPOINT active_record_1
31251
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WWI-Vvz0ecF68iDQ480vGQnTOekyrxcqIAzXY7FyPM6A' LIMIT 1
31252
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1281], ["target_type", "User"], ["token", "WWI-Vvz0ecF68iDQ480vGQnTOekyrxcqIAzXY7FyPM6A"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31253
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31254
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1281 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
31255
+  (0.3ms) ROLLBACK
31256
+  (0.2ms) BEGIN
31257
+  (0.3ms) SAVEPOINT active_record_1
31258
+ SQL (0.9ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31259
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31260
+  (0.2ms) SAVEPOINT active_record_1
31261
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1282 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31262
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["state", "pending"], ["target_id", 1282], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31264
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1282 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
31265
+  (0.3ms) SAVEPOINT active_record_1
31266
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '0YhLhaYAWDc8YNnRmkgrOw-EpxwsR9_Vokpkl0pBRZow' LIMIT 1
31267
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1282], ["target_type", "User"], ["token", "0YhLhaYAWDc8YNnRmkgrOw-EpxwsR9_Vokpkl0pBRZow"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31268
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31269
+  (0.2ms) SAVEPOINT active_record_1
31270
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 357 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31271
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31272
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1282 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
31273
+  (0.3ms) SAVEPOINT active_record_1
31274
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'tfOuzqatfJ6MJhiTg6h2ngRFH1mByKiMrMhb2yMlg4qg' LIMIT 1
31275
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1282], ["target_type", "User"], ["token", "tfOuzqatfJ6MJhiTg6h2ngRFH1mByKiMrMhb2yMlg4qg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31276
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31277
+  (0.2ms) ROLLBACK
31278
+  (0.2ms) BEGIN
31279
+  (0.2ms) SAVEPOINT active_record_1
31280
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31281
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31282
+  (0.2ms) SAVEPOINT active_record_1
31283
+ 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" = 1283) LIMIT 1
31284
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1283], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31285
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31286
+  (0.2ms) SAVEPOINT active_record_1
31287
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 292 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1283) LIMIT 1
31288
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31289
+  (0.2ms) SAVEPOINT active_record_1
31290
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1283 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31291
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
31292
+  (0.2ms) ROLLBACK
31293
+  (0.1ms) BEGIN
31294
+  (0.2ms) SAVEPOINT active_record_1
31295
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31296
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31297
+  (0.2ms) SAVEPOINT active_record_1
31298
+ 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" = 1284) LIMIT 1
31299
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1284], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31300
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31301
+  (0.2ms) SAVEPOINT active_record_1
31302
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1284) LIMIT 1
31303
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31304
+  (0.2ms) SAVEPOINT active_record_1
31305
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1284 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31306
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
31307
+  (0.2ms) ROLLBACK
31308
+  (0.2ms) BEGIN
31309
+  (0.2ms) SAVEPOINT active_record_1
31310
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31311
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31312
+  (0.2ms) SAVEPOINT active_record_1
31313
+ 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" = 1285) LIMIT 1
31314
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1285], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31315
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31316
+  (0.2ms) SAVEPOINT active_record_1
31317
+ NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1285) LIMIT 1
31318
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31319
+  (0.2ms) SAVEPOINT active_record_1
31320
+ 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" = 1285) LIMIT 1
31321
+  (0.4ms) ROLLBACK TO SAVEPOINT active_record_1
31322
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1285 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31323
+ NotifyUser::Unsubscribe Load (0.8ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1285 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31324
+  (0.3ms) SAVEPOINT active_record_1
31325
+ SQL (0.5ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 294]]
31326
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31327
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1285 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31328
+  (0.9ms) ROLLBACK
31329
+  (0.2ms) BEGIN
31330
+  (0.2ms) SAVEPOINT active_record_1
31331
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31332
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31333
+  (0.2ms) SAVEPOINT active_record_1
31334
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1286 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31335
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1286], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31336
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31337
+  (0.2ms) ROLLBACK
31338
+  (0.2ms) BEGIN
31339
+  (0.2ms) SAVEPOINT active_record_1
31340
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31341
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31342
+  (0.2ms) SAVEPOINT active_record_1
31343
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Vmay6rDx_uW5ZKKfLP_f9gvD_GjsD6AIPMi3omC_KKlQ' LIMIT 1
31344
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1287], ["target_type", "User"], ["token", "Vmay6rDx_uW5ZKKfLP_f9gvD_GjsD6AIPMi3omC_KKlQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31345
+  (0.4ms) RELEASE SAVEPOINT active_record_1
31346
+  (0.2ms) SAVEPOINT active_record_1
31347
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31348
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Vmay6rDx_uW5ZKKfLP_f9gvD_GjsD6AIPMi3omC_KKlQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
31349
+  (0.2ms) ROLLBACK
31350
+  (0.2ms) BEGIN
31351
+  (0.2ms) SAVEPOINT active_record_1
31352
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31353
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31354
+  (0.2ms) SAVEPOINT active_record_1
31355
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LVhpgruv-U1Ze-zJaNKieggOSxhaTzwK2tVX21O5F_NQ' LIMIT 1
31356
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1288], ["target_type", "User"], ["token", "LVhpgruv-U1Ze-zJaNKieggOSxhaTzwK2tVX21O5F_NQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31357
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31358
+  (0.2ms) SAVEPOINT active_record_1
31359
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31360
+  (0.2ms) SAVEPOINT active_record_1
31361
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 360 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31362
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31363
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LVhpgruv-U1Ze-zJaNKieggOSxhaTzwK2tVX21O5F_NQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
31364
+  (0.3ms) ROLLBACK
31365
+  (0.2ms) BEGIN
31366
+  (0.2ms) SAVEPOINT active_record_1
31367
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31368
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31369
+  (0.2ms) SAVEPOINT active_record_1
31370
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WavCmpddVddvCHpRPUpJAgSF0cYJ5wWpq_y0ny9DCILw' LIMIT 1
31371
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1289], ["target_type", "User"], ["token", "WavCmpddVddvCHpRPUpJAgSF0cYJ5wWpq_y0ny9DCILw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31372
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31373
+  (0.1ms) SAVEPOINT active_record_1
31374
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31375
+  (0.2ms) SAVEPOINT active_record_1
31376
+ SQL (1.3ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 361 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31377
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31378
+  (0.3ms) ROLLBACK
31379
+  (0.2ms) BEGIN
31380
+  (0.1ms) SAVEPOINT active_record_1
31381
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31382
+  (0.1ms) RELEASE SAVEPOINT active_record_1
31383
+  (0.1ms) SAVEPOINT active_record_1
31384
+ NotifyUser::UserHash Exists (0.3ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'PW6v1sPCHiRhPW29HOMC_AlqaCVKvjAtqHUsr1cI1YfA' LIMIT 1
31385
+ 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", Thu, 11 Dec 2014 01:38:25 UTC +00:00], ["target_id", 1290], ["target_type", "User"], ["token", "PW6v1sPCHiRhPW29HOMC_AlqaCVKvjAtqHUsr1cI1YfA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:38:25 UTC +00:00]]
31386
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31387
+  (0.2ms) SAVEPOINT active_record_1
31388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31389
+  (0.2ms) ROLLBACK
31390
+  (0.2ms) BEGIN
31391
+  (0.2ms) ROLLBACK
31392
+  (0.2ms) BEGIN
31393
+  (0.2ms) ROLLBACK
31394
+  (0.2ms) BEGIN
31395
+  (0.2ms) ROLLBACK
31396
+  (0.2ms) BEGIN
31397
+  (0.2ms) ROLLBACK
31398
+  (0.1ms) BEGIN
31399
+  (0.2ms) ROLLBACK
31400
+  (0.2ms) BEGIN
31401
+  (0.2ms) ROLLBACK
31402
+  (0.1ms) BEGIN
31403
+  (0.2ms) ROLLBACK
31404
+  (0.2ms) BEGIN
31405
+  (0.3ms) SAVEPOINT active_record_1
31406
+ SQL (6.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31407
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31408
+ Processing by NotifyUser::NotificationsController#index as HTML
31409
+ Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.5ms)
31410
+ Completed 200 OK in 19ms (Views: 14.4ms | ActiveRecord: 0.0ms)
31411
+  (0.4ms) ROLLBACK
31412
+  (0.3ms) BEGIN
31413
+  (0.2ms) SAVEPOINT active_record_1
31414
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31415
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31416
+  (0.3ms) SAVEPOINT active_record_1
31417
+  (1.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1292 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31418
+ SQL (2.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", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1292], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31419
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31420
+ Processing by NotifyUser::NotificationsController#index as JSON
31421
+  (1.0ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1292 AND "notify_user_notifications"."target_type" = 'User'
31422
+ NotifyUser::BaseNotification Load (1.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1292 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
31423
+ Completed 200 OK in 24ms (Views: 13.7ms | ActiveRecord: 2.7ms)
31424
+  (0.4ms) ROLLBACK
31425
+  (0.3ms) BEGIN
31426
+  (0.3ms) SAVEPOINT active_record_1
31427
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31428
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31429
+  (0.4ms) SAVEPOINT active_record_1
31430
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31431
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1293], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31432
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31433
+  (0.2ms) SAVEPOINT active_record_1
31434
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31435
+ 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", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1293], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31436
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31437
+  (0.2ms) SAVEPOINT active_record_1
31438
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1293 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31439
+ 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", Thu, 11 Dec 2014 01:43:12 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1293], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:12 UTC +00:00]]
31440
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31441
+ Processing by NotifyUser::NotificationsController#index as HTML
31442
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1293 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
31443
+ Completed 200 OK in 63ms (Views: 60.8ms | ActiveRecord: 1.0ms)
31444
+  (0.3ms) ROLLBACK
31445
+  (0.2ms) BEGIN
31446
+  (0.2ms) SAVEPOINT active_record_1
31447
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31448
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31449
+  (0.3ms) SAVEPOINT active_record_1
31450
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31451
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1294], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31452
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31453
+  (0.2ms) SAVEPOINT active_record_1
31454
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31455
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1294], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31456
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31457
+  (0.2ms) SAVEPOINT active_record_1
31458
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31459
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1294], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31460
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31461
+ Processing by NotifyUser::NotificationsController#read as HTML
31462
+ Parameters: {"id"=>"1306"}
31463
+ NotifyUser::BaseNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1294 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1306') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31464
+  (0.2ms) SAVEPOINT active_record_1
31465
+ User Load (0.8ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1294]]
31466
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1294 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31467
+ SQL (1.3ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1306 [["state", "read"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31468
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31469
+ Completed 200 OK in 22ms (Views: 1.9ms | ActiveRecord: 4.0ms)
31470
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1306 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31471
+  (0.3ms) ROLLBACK
31472
+  (0.3ms) BEGIN
31473
+  (0.3ms) SAVEPOINT active_record_1
31474
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31475
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31476
+  (0.3ms) SAVEPOINT active_record_1
31477
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31478
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1295], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31479
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31480
+  (0.2ms) SAVEPOINT active_record_1
31481
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31482
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1295], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31483
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31484
+  (0.2ms) SAVEPOINT active_record_1
31485
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31486
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1295], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31487
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31488
+ Processing by NotifyUser::NotificationsController#read as HTML
31489
+ Parameters: {"id"=>"1309"}
31490
+ NotifyUser::BaseNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1295 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1309') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31491
+  (0.3ms) SAVEPOINT active_record_1
31492
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1295]]
31493
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1295 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31494
+ 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" = 1309 [["state", "read"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31495
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31496
+ Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 3.1ms)
31497
+ Processing by NotifyUser::NotificationsController#read as HTML
31498
+ Parameters: {"id"=>"1309"}
31499
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1295 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1309') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31500
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.8ms)
31501
+  (0.2ms) ROLLBACK
31502
+  (0.2ms) BEGIN
31503
+  (0.3ms) SAVEPOINT active_record_1
31504
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31505
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31506
+  (0.2ms) SAVEPOINT active_record_1
31507
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1296 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31508
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1296], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31509
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31510
+  (0.2ms) SAVEPOINT active_record_1
31511
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1296 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31512
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1296], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31513
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31514
+  (0.2ms) SAVEPOINT active_record_1
31515
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1296 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31516
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1296], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31517
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31518
+ Processing by NotifyUser::NotificationsController#mark_all as HTML
31519
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1296 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
31520
+ Redirected to http://test.host/notify_user/notifications
31521
+ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
31522
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1296 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
31523
+  (0.2ms) ROLLBACK
31524
+  (0.3ms) BEGIN
31525
+  (0.3ms) SAVEPOINT active_record_1
31526
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31527
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31528
+  (0.3ms) SAVEPOINT active_record_1
31529
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1297 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31530
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1297], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31531
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31532
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
31533
+ Parameters: {"ids"=>["1315"]}
31534
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1297 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1315'))
31535
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1297 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1315'))
31536
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 1.1ms)
31537
+ NewPostNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1315]]
31538
+  (0.3ms) ROLLBACK
31539
+  (0.2ms) BEGIN
31540
+  (0.2ms) SAVEPOINT active_record_1
31541
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31543
+  (0.2ms) SAVEPOINT active_record_1
31544
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1298 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31545
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1298], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31546
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31547
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
31548
+ Parameters: {"ids"=>["1316"]}
31549
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1298 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1316'))
31550
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1298 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1316'))
31551
+ Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 1.1ms)
31552
+  (0.3ms) ROLLBACK
31553
+  (0.2ms) BEGIN
31554
+  (0.2ms) SAVEPOINT active_record_1
31555
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31556
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31557
+  (0.2ms) SAVEPOINT active_record_1
31558
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1299 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31559
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1299], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31560
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31561
+ NotifyUser::Unsubscribe Load (0.7ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1299 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31562
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
31563
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
31564
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1299 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31565
+  (0.3ms) SAVEPOINT active_record_1
31566
+ NotifyUser::Unsubscribe Exists (0.8ms) 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" = 1299) LIMIT 1
31567
+ SQL (1.2ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1299], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31568
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31569
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1299 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31570
+ Completed 200 OK in 35ms (Views: 0.4ms | ActiveRecord: 3.8ms)
31571
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1299 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31572
+  (0.2ms) ROLLBACK
31573
+  (0.2ms) BEGIN
31574
+  (0.2ms) SAVEPOINT active_record_1
31575
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31576
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31577
+  (0.2ms) SAVEPOINT active_record_1
31578
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1300 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31579
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1300], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31580
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31581
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1300 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31582
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
31583
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
31584
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1300 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31585
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1300 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31586
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 1.0ms)
31587
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1300 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31588
+  (0.2ms) ROLLBACK
31589
+  (0.2ms) BEGIN
31590
+  (0.3ms) SAVEPOINT active_record_1
31591
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31592
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31593
+  (0.2ms) SAVEPOINT active_record_1
31594
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1301 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31595
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1301], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31596
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31597
+ Processing by NotifyUser::NotificationsController#unsubscribe as HTML
31598
+ Parameters: {"type"=>"NewPostNotification"}
31599
+  (0.3ms) SAVEPOINT active_record_1
31600
+ 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" = 1301) LIMIT 1
31601
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1301], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31602
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31603
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
31604
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1301 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31605
+ Completed 302 Found in 8ms (ActiveRecord: 2.3ms)
31606
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
31607
+  (0.3ms) ROLLBACK
31608
+  (0.2ms) BEGIN
31609
+  (0.3ms) SAVEPOINT active_record_1
31610
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31611
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31612
+  (0.3ms) SAVEPOINT active_record_1
31613
+  (1.2ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1302 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31614
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1302], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31615
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31616
+  (0.2ms) SAVEPOINT active_record_1
31617
+ 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" = 1302) LIMIT 1
31618
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1302], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31620
+ Processing by NotifyUser::NotificationsController#subscribe as HTML
31621
+ Parameters: {"type"=>"NewPostNotification"}
31622
+ NotifyUser::Unsubscribe Load (0.7ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1302 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31623
+  (0.2ms) SAVEPOINT active_record_1
31624
+ SQL (0.7ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 297]]
31625
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31626
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
31627
+ Completed 302 Found in 5ms (ActiveRecord: 1.8ms)
31628
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
31629
+  (0.3ms) ROLLBACK
31630
+  (0.2ms) BEGIN
31631
+  (0.2ms) SAVEPOINT active_record_1
31632
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31634
+  (0.2ms) SAVEPOINT active_record_1
31635
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1303 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31636
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1303], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31637
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31638
+ NotifyUser::UserHash Load (0.9ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1303 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
31639
+  (0.3ms) SAVEPOINT active_record_1
31640
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-1EMK1Ko3uNabZ_MXBjnSg615GVSChomX9zhTqmq-V1w' LIMIT 1
31641
+ SQL (1.0ms) 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1303], ["target_type", "User"], ["token", "-1EMK1Ko3uNabZ_MXBjnSg615GVSChomX9zhTqmq-V1w"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31642
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31643
+ Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
31644
+ Parameters: {"type"=>"NewPostNotification", "token"=>"-1EMK1Ko3uNabZ_MXBjnSg615GVSChomX9zhTqmq-V1w"}
31645
+ NotifyUser::UserHash Exists (0.7ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-1EMK1Ko3uNabZ_MXBjnSg615GVSChomX9zhTqmq-V1w' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
31646
+ NotifyUser::UserHash Load (0.9ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-1EMK1Ko3uNabZ_MXBjnSg615GVSChomX9zhTqmq-V1w' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
31647
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1303]]
31648
+  (0.3ms) SAVEPOINT active_record_1
31649
+ 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" = 1303) LIMIT 1
31650
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1303], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31652
+  (0.2ms) SAVEPOINT active_record_1
31653
+ SQL (0.9ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 363 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31654
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31655
+ Completed 200 OK in 17ms (Views: 0.7ms | ActiveRecord: 5.5ms)
31656
+ 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
31657
+  (0.2ms) ROLLBACK
31658
+  (0.2ms) BEGIN
31659
+ NotifyUser::UserHash Load (0.7ms) 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
31660
+  (0.3ms) SAVEPOINT active_record_1
31661
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
31662
+ NotifyUser::UserHash Load (0.9ms) 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
31663
+  (0.2ms) SAVEPOINT active_record_1
31664
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
31665
+  (0.3ms) ROLLBACK
31666
+  (0.2ms) BEGIN
31667
+ NotifyUser::UserHash Load (0.7ms) 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
31668
+  (0.2ms) SAVEPOINT active_record_1
31669
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
31670
+ 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
31671
+  (0.2ms) SAVEPOINT active_record_1
31672
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
31673
+  (0.3ms) ROLLBACK
31674
+  (0.2ms) BEGIN
31675
+ NotifyUser::UserHash Load (0.7ms) 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
31676
+  (0.2ms) SAVEPOINT active_record_1
31677
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
31678
+ 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
31679
+  (0.2ms) SAVEPOINT active_record_1
31680
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
31681
+  (0.3ms) ROLLBACK
31682
+  (0.2ms) BEGIN
31683
+  (0.2ms) SAVEPOINT active_record_1
31684
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31685
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31686
+  (0.2ms) SAVEPOINT active_record_1
31687
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1304 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31688
+ SQL (0.8ms) 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1304], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31689
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31690
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1304 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
31691
+  (0.2ms) ROLLBACK
31692
+  (0.2ms) BEGIN
31693
+  (0.2ms) SAVEPOINT active_record_1
31694
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31695
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31696
+  (0.2ms) SAVEPOINT active_record_1
31697
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1305 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31698
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1305], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31699
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31700
+  (0.3ms) ROLLBACK
31701
+  (0.2ms) BEGIN
31702
+  (0.2ms) SAVEPOINT active_record_1
31703
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31704
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31705
+  (0.2ms) SAVEPOINT active_record_1
31706
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1306 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31707
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1306], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31708
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31709
+  (0.2ms) ROLLBACK
31710
+  (0.2ms) BEGIN
31711
+  (0.2ms) SAVEPOINT active_record_1
31712
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31713
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31714
+  (0.2ms) SAVEPOINT active_record_1
31715
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1307 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31716
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1307], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31717
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31718
+  (0.2ms) SAVEPOINT active_record_1
31719
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1307 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31720
+ 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" = 1325 [["params", {"listing_id"=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31721
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31722
+ 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
31723
+  (0.3ms) ROLLBACK
31724
+  (0.2ms) BEGIN
31725
+  (0.2ms) SAVEPOINT active_record_1
31726
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31727
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31728
+  (0.2ms) SAVEPOINT active_record_1
31729
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1308 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31730
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1308], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31731
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31732
+  (0.2ms) SAVEPOINT active_record_1
31733
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1308 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31734
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1326 [["params", {"listing_id"=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31735
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31736
+ 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
31737
+  (0.3ms) ROLLBACK
31738
+  (0.3ms) BEGIN
31739
+  (0.2ms) SAVEPOINT active_record_1
31740
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31741
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31742
+  (0.2ms) SAVEPOINT active_record_1
31743
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1309 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31744
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1309], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31745
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31746
+  (0.2ms) SAVEPOINT active_record_1
31747
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1309 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31748
+ 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" = 1327 [["params", {:listing_id=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31749
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31750
+ 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
31751
+  (0.3ms) ROLLBACK
31752
+  (0.2ms) BEGIN
31753
+  (0.2ms) SAVEPOINT active_record_1
31754
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31755
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31756
+  (0.2ms) SAVEPOINT active_record_1
31757
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1310 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31758
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1310], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31759
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31760
+  (0.2ms) SAVEPOINT active_record_1
31761
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1310 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31762
+ 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" = 1328 [["params", {:listing_id=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31763
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31764
+ 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
31765
+  (0.3ms) ROLLBACK
31766
+  (0.2ms) BEGIN
31767
+  (0.2ms) SAVEPOINT active_record_1
31768
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31769
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31770
+  (0.2ms) SAVEPOINT active_record_1
31771
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1311 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31772
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1311], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31773
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31774
+  (0.4ms) SAVEPOINT active_record_1
31775
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
31776
+  (0.3ms) ROLLBACK
31777
+  (0.3ms) BEGIN
31778
+  (0.3ms) SAVEPOINT active_record_1
31779
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31780
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31781
+  (0.3ms) SAVEPOINT active_record_1
31782
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1312 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31783
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1312], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31784
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31785
+  (0.3ms) SAVEPOINT active_record_1
31786
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1312 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31787
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31788
+  (0.7ms) 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" = 1312 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1330)
31789
+ NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1330]]
31790
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1312]]
31791
+ 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" = 1312 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
31792
+  (0.2ms) SAVEPOINT active_record_1
31793
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1312]]
31794
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1312 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31795
+ 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" = 1330 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31796
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31797
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1330 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31798
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1312]]
31799
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1312 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31800
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1330 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31801
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1312]]
31802
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1312 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
31803
+  (0.3ms) ROLLBACK
31804
+  (0.2ms) BEGIN
31805
+  (0.2ms) SAVEPOINT active_record_1
31806
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31807
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31808
+  (0.2ms) SAVEPOINT active_record_1
31809
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1313 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31810
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1313], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31811
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31812
+  (0.2ms) SAVEPOINT active_record_1
31813
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1313 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31814
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31815
+  (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" = 1313 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1331)
31816
+ NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1331]]
31817
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]]
31818
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1313 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
31819
+  (0.3ms) SAVEPOINT active_record_1
31820
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]]
31821
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1313 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31822
+ SQL (1.1ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1331 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31823
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31824
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1331 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31825
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]]
31826
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1313 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31827
+ NewPostNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1331 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31828
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1313]]
31829
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1313 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
31830
+  (0.3ms) ROLLBACK
31831
+  (0.2ms) BEGIN
31832
+  (0.1ms) SAVEPOINT active_record_1
31833
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31834
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31835
+  (0.2ms) SAVEPOINT active_record_1
31836
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1314 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31837
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1314], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31838
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31839
+  (0.2ms) SAVEPOINT active_record_1
31840
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1314 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31841
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31842
+  (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" = 1314 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1332)
31843
+  (0.3ms) SAVEPOINT active_record_1
31844
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1314 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31845
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1314], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31846
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31847
+  (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" = 1314 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1333)
31848
+  (0.3ms) ROLLBACK
31849
+  (0.2ms) BEGIN
31850
+  (0.2ms) SAVEPOINT active_record_1
31851
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31852
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31853
+  (0.2ms) SAVEPOINT active_record_1
31854
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1315 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31855
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1315], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31856
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31857
+  (0.2ms) SAVEPOINT active_record_1
31858
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1315 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31859
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1315], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31860
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31861
+ 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", 1335]]
31862
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1315]]
31863
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1315 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
31864
+  (0.2ms) SAVEPOINT active_record_1
31865
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1315]]
31866
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1315 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31867
+ 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" = 1334 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31868
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31869
+  (0.4ms) SAVEPOINT active_record_1
31870
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1315]]
31871
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1315 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31872
+ SQL (1.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1335 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31873
+  (0.3ms) RELEASE SAVEPOINT active_record_1
31874
+  (1.0ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1315 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31875
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1315 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
31876
+  (0.3ms) SAVEPOINT active_record_1
31877
+ NotifyUser::UserHash Exists (1.1ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'C40_iSsnVw_hAaJa4q-pUgGEcRGKw5uaBCqzi59YowOA' LIMIT 1
31878
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1315], ["target_type", "User"], ["token", "C40_iSsnVw_hAaJa4q-pUgGEcRGKw5uaBCqzi59YowOA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31879
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31880
+
31881
+ Sent mail to user@example.com (8.3ms)
31882
+ Date: Thu, 11 Dec 2014 12:43:13 +1100
31883
+ From: please-change-me-at-config-initializers-notify-user@example.com
31884
+ To: user@example.com
31885
+ Message-ID: <5488f6b1b07c6_d0a63fdfa1059be4998@wp.local.mail>
31886
+ Subject: Rails404: You have new Newpostnotification notifications.
31887
+ Mime-Version: 1.0
31888
+ Content-Type: text/html;
31889
+ charset=UTF-8
31890
+ Content-Transfer-Encoding: quoted-printable
31891
+
31892
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
31893
+ tml4/strict.dtd">
31894
+ <html>
31895
+ <head>
31896
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
31897
+ "/>
31898
+ <title></title>
31899
+ </head>
31900
+
31901
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
31902
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
31903
+ ing: optimizeLegibility;">
31904
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
31905
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
31906
+ Logo
31907
+ </div>
31908
+ </div>
31909
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
31910
+ ">
31911
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
31912
+ =
31913
+
31914
+ <div>
31915
+ New Post Notification happened. =
31916
+
31917
+ </div>
31918
+ <div>
31919
+ New Post Notification happened. =
31920
+
31921
+ </div>
31922
+
31923
+ </div>
31924
+ </div>
31925
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
31926
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
31927
+ <p style=3D"text-align: center;">
31928
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
31929
+ _unsubscribe?token=3DC40_iSsnVw_hAaJa4q-pUgGEcRGKw5uaBCqzi59YowOA&amp;typ=
31930
+ e=3DNewPostNotification">Unsubscribe</a>
31931
+ </p>
31932
+ <p style=3D"text-align: center;">
31933
+ This is the default generated layout. A privacy declaration could g=
31934
+ o here.
31935
+ </p>
31936
+ <p style=3D"text-align: center; margin-bottom: 0px;">
31937
+ =C2=A9 MyCompany Pty Ltd
31938
+ </p>
31939
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
31940
+ ABN 123 456 789
31941
+ </p>
31942
+ </div>
31943
+ </div>
31944
+ </body>
31945
+ </html>=
31946
+
31947
+  (0.3ms) ROLLBACK
31948
+  (0.2ms) BEGIN
31949
+  (0.3ms) SAVEPOINT active_record_1
31950
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31951
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31952
+  (0.2ms) SAVEPOINT active_record_1
31953
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1316 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31954
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1316], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31955
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31956
+ 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", 1336]]
31957
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1316]]
31958
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1316 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
31959
+  (0.3ms) SAVEPOINT active_record_1
31960
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1316]]
31961
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1316 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
31962
+ 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" = 1336 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31963
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31964
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1336 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
31965
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1316]]
31966
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1316 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
31967
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1316 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
31968
+  (0.2ms) SAVEPOINT active_record_1
31969
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'q5AKX6Vp1uIM8Xwh9UAfMwmrpQV8HEVsuajqgddAHZvA' LIMIT 1
31970
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1316], ["target_type", "User"], ["token", "q5AKX6Vp1uIM8Xwh9UAfMwmrpQV8HEVsuajqgddAHZvA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
31971
+  (0.2ms) RELEASE SAVEPOINT active_record_1
31972
+
31973
+ Sent mail to user@example.com (5.3ms)
31974
+ Date: Thu, 11 Dec 2014 12:43:13 +1100
31975
+ From: please-change-me-at-config-initializers-notify-user@example.com
31976
+ To: user@example.com
31977
+ Message-ID: <5488f6b1bc028_d0a63fdfa1059be4100e7@wp.local.mail>
31978
+ Subject: Rails404: You have a new Newpostnotification notification.
31979
+ Mime-Version: 1.0
31980
+ Content-Type: text/html;
31981
+ charset=UTF-8
31982
+ Content-Transfer-Encoding: quoted-printable
31983
+
31984
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
31985
+ tml4/strict.dtd">
31986
+ <html>
31987
+ <head>
31988
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
31989
+ "/>
31990
+ <title></title>
31991
+ </head>
31992
+
31993
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
31994
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
31995
+ ing: optimizeLegibility;">
31996
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
31997
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
31998
+ Logo
31999
+ </div>
32000
+ </div>
32001
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
32002
+ ">
32003
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
32004
+ New Post Notification happened.
32005
+
32006
+ </div>
32007
+ </div>
32008
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
32009
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
32010
+ <p style=3D"text-align: center;">
32011
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
32012
+ _unsubscribe?token=3Dq5AKX6Vp1uIM8Xwh9UAfMwmrpQV8HEVsuajqgddAHZvA&amp;typ=
32013
+ e=3DNewPostNotification">Unsubscribe</a>
32014
+ </p>
32015
+ <p style=3D"text-align: center;">
32016
+ This is the default generated layout. A privacy declaration could g=
32017
+ o here.
32018
+ </p>
32019
+ <p style=3D"text-align: center; margin-bottom: 0px;">
32020
+ =C2=A9 MyCompany Pty Ltd
32021
+ </p>
32022
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
32023
+ ABN 123 456 789
32024
+ </p>
32025
+ </div>
32026
+ </div>
32027
+ </body>
32028
+ </html>=
32029
+
32030
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1316 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
32031
+  (0.3ms) ROLLBACK
32032
+  (0.2ms) BEGIN
32033
+  (0.2ms) SAVEPOINT active_record_1
32034
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32035
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32036
+  (0.2ms) SAVEPOINT active_record_1
32037
+ 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" = 1317) LIMIT 1
32038
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1317], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32039
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32040
+  (0.3ms) SAVEPOINT active_record_1
32041
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1317 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32042
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
32043
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32044
+  (0.2ms) ROLLBACK
32045
+  (0.2ms) BEGIN
32046
+  (0.2ms) SAVEPOINT active_record_1
32047
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32048
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32049
+  (0.2ms) SAVEPOINT active_record_1
32050
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1318 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32051
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1318], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32052
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32053
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1337 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32054
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1318]]
32055
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1318 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32056
+  (0.3ms) ROLLBACK
32057
+  (0.2ms) BEGIN
32058
+  (0.2ms) SAVEPOINT active_record_1
32059
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32060
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32061
+  (0.3ms) SAVEPOINT active_record_1
32062
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1319 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32063
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1319], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32065
+  (0.2ms) SAVEPOINT active_record_1
32066
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1319 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32067
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1319], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32068
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32069
+ 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", 1339]]
32070
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1319]]
32071
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1319 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
32072
+  (0.2ms) SAVEPOINT active_record_1
32073
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1319]]
32074
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1319 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32075
+ 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" = 1338 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32076
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32077
+  (0.3ms) SAVEPOINT active_record_1
32078
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1319]]
32079
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1319 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32080
+ 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" = 1339 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32081
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32082
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1319 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32083
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1319 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
32084
+  (0.3ms) SAVEPOINT active_record_1
32085
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ijN70Pr8X0-aTP3llca7jg62BOqTjYpbwZbSFNP4kokQ' LIMIT 1
32086
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1319], ["target_type", "User"], ["token", "ijN70Pr8X0-aTP3llca7jg62BOqTjYpbwZbSFNP4kokQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32087
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32088
+
32089
+ Sent mail to user@example.com (9.0ms)
32090
+ Date: Thu, 11 Dec 2014 12:43:13 +1100
32091
+ From: please-change-me-at-config-initializers-notify-user@example.com
32092
+ To: user@example.com
32093
+ Message-ID: <5488f6b1cea2d_d0a63fdfa1059be41014@wp.local.mail>
32094
+ Subject: Rails404: You have new Newpostnotification notifications.
32095
+ Mime-Version: 1.0
32096
+ Content-Type: text/html;
32097
+ charset=UTF-8
32098
+ Content-Transfer-Encoding: quoted-printable
32099
+
32100
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
32101
+ tml4/strict.dtd">
32102
+ <html>
32103
+ <head>
32104
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
32105
+ "/>
32106
+ <title></title>
32107
+ </head>
32108
+
32109
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
32110
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
32111
+ ing: optimizeLegibility;">
32112
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
32113
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
32114
+ Logo
32115
+ </div>
32116
+ </div>
32117
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
32118
+ ">
32119
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
32120
+ =
32121
+
32122
+ <div>
32123
+ New Post Notification happened. =
32124
+
32125
+ </div>
32126
+ <div>
32127
+ New Post Notification happened. =
32128
+
32129
+ </div>
32130
+
32131
+ </div>
32132
+ </div>
32133
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
32134
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
32135
+ <p style=3D"text-align: center;">
32136
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
32137
+ _unsubscribe?token=3DijN70Pr8X0-aTP3llca7jg62BOqTjYpbwZbSFNP4kokQ&amp;typ=
32138
+ e=3DNewPostNotification">Unsubscribe</a>
32139
+ </p>
32140
+ <p style=3D"text-align: center;">
32141
+ This is the default generated layout. A privacy declaration could g=
32142
+ o here.
32143
+ </p>
32144
+ <p style=3D"text-align: center; margin-bottom: 0px;">
32145
+ =C2=A9 MyCompany Pty Ltd
32146
+ </p>
32147
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
32148
+ ABN 123 456 789
32149
+ </p>
32150
+ </div>
32151
+ </div>
32152
+ </body>
32153
+ </html>=
32154
+
32155
+  (0.3ms) ROLLBACK
32156
+  (0.2ms) BEGIN
32157
+  (0.3ms) SAVEPOINT active_record_1
32158
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32159
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32160
+  (0.3ms) SAVEPOINT active_record_1
32161
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1320 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32162
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1320], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32163
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32164
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1340]]
32165
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1320]]
32166
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1320 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
32167
+  (0.2ms) SAVEPOINT active_record_1
32168
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1320]]
32169
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1320 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32170
+ 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" = 1340 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32171
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32172
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1340 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32173
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1320]]
32174
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1320 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32175
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1320 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
32176
+  (0.2ms) SAVEPOINT active_record_1
32177
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '0SwOsSR_n36a-qgqgjdT1wGBZvOwPKZ-mAEiB_3bJuNw' LIMIT 1
32178
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1320], ["target_type", "User"], ["token", "0SwOsSR_n36a-qgqgjdT1wGBZvOwPKZ-mAEiB_3bJuNw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32179
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32180
+
32181
+ Sent mail to user@example.com (6.2ms)
32182
+ Date: Thu, 11 Dec 2014 12:43:13 +1100
32183
+ From: please-change-me-at-config-initializers-notify-user@example.com
32184
+ To: user@example.com
32185
+ Message-ID: <5488f6b1da174_d0a63fdfa1059be4102a2@wp.local.mail>
32186
+ Subject: Rails404: You have a new Newpostnotification notification.
32187
+ Mime-Version: 1.0
32188
+ Content-Type: text/html;
32189
+ charset=UTF-8
32190
+ Content-Transfer-Encoding: quoted-printable
32191
+
32192
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
32193
+ tml4/strict.dtd">
32194
+ <html>
32195
+ <head>
32196
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
32197
+ "/>
32198
+ <title></title>
32199
+ </head>
32200
+
32201
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
32202
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
32203
+ ing: optimizeLegibility;">
32204
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
32205
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
32206
+ Logo
32207
+ </div>
32208
+ </div>
32209
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
32210
+ ">
32211
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
32212
+ New Post Notification happened.
32213
+
32214
+ </div>
32215
+ </div>
32216
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
32217
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
32218
+ <p style=3D"text-align: center;">
32219
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
32220
+ _unsubscribe?token=3D0SwOsSR_n36a-qgqgjdT1wGBZvOwPKZ-mAEiB_3bJuNw&amp;typ=
32221
+ e=3DNewPostNotification">Unsubscribe</a>
32222
+ </p>
32223
+ <p style=3D"text-align: center;">
32224
+ This is the default generated layout. A privacy declaration could g=
32225
+ o here.
32226
+ </p>
32227
+ <p style=3D"text-align: center; margin-bottom: 0px;">
32228
+ =C2=A9 MyCompany Pty Ltd
32229
+ </p>
32230
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
32231
+ ABN 123 456 789
32232
+ </p>
32233
+ </div>
32234
+ </div>
32235
+ </body>
32236
+ </html>=
32237
+
32238
+  (0.3ms) ROLLBACK
32239
+  (0.2ms) BEGIN
32240
+  (0.2ms) SAVEPOINT active_record_1
32241
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32242
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32243
+  (0.2ms) SAVEPOINT active_record_1
32244
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1321 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32245
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1321], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32246
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32247
+  (0.2ms) SAVEPOINT active_record_1
32248
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1321 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32249
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32250
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1321 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32251
+  (0.3ms) SAVEPOINT active_record_1
32252
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1321 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32253
+ 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" = 1341 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32254
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32255
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1341 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32256
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1321]]
32257
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1321 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32258
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1321 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
32259
+  (0.3ms) ROLLBACK
32260
+  (0.2ms) BEGIN
32261
+  (0.2ms) SAVEPOINT active_record_1
32262
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32264
+  (0.2ms) SAVEPOINT active_record_1
32265
+ 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" = 1322) LIMIT 1
32266
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1322], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32267
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32268
+  (0.2ms) SAVEPOINT active_record_1
32269
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1322 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32270
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32271
+  (0.2ms) SAVEPOINT active_record_1
32272
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1322 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32273
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32274
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1322 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32275
+  (0.2ms) ROLLBACK
32276
+  (0.2ms) BEGIN
32277
+  (0.2ms) SAVEPOINT active_record_1
32278
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32279
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32280
+  (0.2ms) SAVEPOINT active_record_1
32281
+ 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" = 1323) LIMIT 1
32282
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1323], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32283
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32284
+  (0.2ms) SAVEPOINT active_record_1
32285
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 301 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1323) LIMIT 1
32286
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32287
+  (0.2ms) SAVEPOINT active_record_1
32288
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1323 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32289
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1323], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32290
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32291
+  (0.2ms) SAVEPOINT active_record_1
32292
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1323 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32293
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32294
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1323 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32295
+  (0.2ms) SAVEPOINT active_record_1
32296
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1323 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32297
+ 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" = 1342 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32298
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32299
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1342 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32300
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1323]]
32301
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1323 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32302
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1323 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
32303
+  (0.3ms) ROLLBACK
32304
+  (0.3ms) BEGIN
32305
+  (0.3ms) SAVEPOINT active_record_1
32306
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32307
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32308
+  (0.2ms) SAVEPOINT active_record_1
32309
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1324 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32310
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1324], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32311
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32312
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1324 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
32313
+  (0.2ms) SAVEPOINT active_record_1
32314
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'qGPim1bdAxD2nyg9phw2UQWYNirOPRe5AXrNAl0dO7UQ' LIMIT 1
32315
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1324], ["target_type", "User"], ["token", "qGPim1bdAxD2nyg9phw2UQWYNirOPRe5AXrNAl0dO7UQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32316
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32317
+  (0.3ms) ROLLBACK
32318
+  (0.2ms) BEGIN
32319
+  (0.2ms) SAVEPOINT active_record_1
32320
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32321
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32322
+  (0.3ms) SAVEPOINT active_record_1
32323
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1325 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32324
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["state", "pending"], ["target_id", 1325], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32325
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32326
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1325 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
32327
+  (0.2ms) SAVEPOINT active_record_1
32328
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4vUCX_kq6HY0vPPiPaSWeARdGbqkFAOXBz_Yz4Q6JnOw' LIMIT 1
32329
+ 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", Thu, 11 Dec 2014 01:43:13 UTC +00:00], ["target_id", 1325], ["target_type", "User"], ["token", "4vUCX_kq6HY0vPPiPaSWeARdGbqkFAOXBz_Yz4Q6JnOw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:13 UTC +00:00]]
32330
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32331
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1325 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
32332
+  (0.2ms) ROLLBACK
32333
+  (0.2ms) BEGIN
32334
+  (0.2ms) SAVEPOINT active_record_1
32335
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32336
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32337
+  (0.2ms) SAVEPOINT active_record_1
32338
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1326 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32339
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["state", "pending"], ["target_id", 1326], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32341
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1326 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
32342
+  (0.2ms) SAVEPOINT active_record_1
32343
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'RdzZzmjz9V_Wvfu5Aq_v_AyxeCwoVWonqeW7VFroErtg' LIMIT 1
32344
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1326], ["target_type", "User"], ["token", "RdzZzmjz9V_Wvfu5Aq_v_AyxeCwoVWonqeW7VFroErtg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32345
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32346
+  (0.3ms) SAVEPOINT active_record_1
32347
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 370 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32348
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32349
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1326 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
32350
+  (0.2ms) SAVEPOINT active_record_1
32351
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'JlVs309BxJ59o_tZWZBaDAwUOrn_aEg-1n3NwF41_GCA' LIMIT 1
32352
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1326], ["target_type", "User"], ["token", "JlVs309BxJ59o_tZWZBaDAwUOrn_aEg-1n3NwF41_GCA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32353
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32354
+  (0.2ms) ROLLBACK
32355
+  (0.2ms) BEGIN
32356
+  (0.4ms) SAVEPOINT active_record_1
32357
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32358
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32359
+  (0.2ms) SAVEPOINT active_record_1
32360
+ 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" = 1327) LIMIT 1
32361
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1327], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32362
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32363
+  (0.2ms) SAVEPOINT active_record_1
32364
+ NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 302 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1327) LIMIT 1
32365
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32366
+  (0.2ms) SAVEPOINT active_record_1
32367
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1327 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32368
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
32369
+  (0.2ms) ROLLBACK
32370
+  (0.2ms) BEGIN
32371
+  (0.2ms) SAVEPOINT active_record_1
32372
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32373
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32374
+  (0.2ms) SAVEPOINT active_record_1
32375
+ 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" = 1328) LIMIT 1
32376
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1328], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32377
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32378
+  (0.2ms) SAVEPOINT active_record_1
32379
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 303 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1328) LIMIT 1
32380
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32381
+  (0.3ms) SAVEPOINT active_record_1
32382
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1328 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32383
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32384
+  (0.2ms) ROLLBACK
32385
+  (0.2ms) BEGIN
32386
+  (0.2ms) SAVEPOINT active_record_1
32387
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32389
+  (0.2ms) SAVEPOINT active_record_1
32390
+ 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" = 1329) LIMIT 1
32391
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1329], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32392
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32393
+  (0.2ms) SAVEPOINT active_record_1
32394
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 304 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1329) LIMIT 1
32395
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32396
+  (0.2ms) SAVEPOINT active_record_1
32397
+ 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" = 1329) LIMIT 1
32398
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
32399
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1329 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32400
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1329 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32401
+  (0.2ms) SAVEPOINT active_record_1
32402
+ SQL (0.3ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 304]]
32403
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32404
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1329 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32405
+  (0.3ms) ROLLBACK
32406
+  (0.2ms) BEGIN
32407
+  (0.2ms) SAVEPOINT active_record_1
32408
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32409
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32410
+  (0.2ms) SAVEPOINT active_record_1
32411
+  (1.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1330 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32412
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1330], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32413
+  (0.8ms) RELEASE SAVEPOINT active_record_1
32414
+  (0.2ms) ROLLBACK
32415
+  (0.3ms) BEGIN
32416
+  (1.0ms) SAVEPOINT active_record_1
32417
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32418
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32419
+  (0.2ms) SAVEPOINT active_record_1
32420
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EctIRLJtozQRItF_l-MHjgjOMddbRmq81Gj8stSn6lLg' LIMIT 1
32421
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1331], ["target_type", "User"], ["token", "EctIRLJtozQRItF_l-MHjgjOMddbRmq81Gj8stSn6lLg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32422
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32423
+  (0.3ms) SAVEPOINT active_record_1
32424
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32425
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EctIRLJtozQRItF_l-MHjgjOMddbRmq81Gj8stSn6lLg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
32426
+  (0.2ms) ROLLBACK
32427
+  (0.2ms) BEGIN
32428
+  (0.2ms) SAVEPOINT active_record_1
32429
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32430
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32431
+  (0.5ms) SAVEPOINT active_record_1
32432
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'itxtNRzGkurlewO27CkCcg0XUtCkjLfTLQOKkIhMDGRQ' LIMIT 1
32433
+ 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1332], ["target_type", "User"], ["token", "itxtNRzGkurlewO27CkCcg0XUtCkjLfTLQOKkIhMDGRQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32434
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32435
+  (0.2ms) SAVEPOINT active_record_1
32436
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32437
+  (0.2ms) SAVEPOINT active_record_1
32438
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 373 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32439
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32440
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'itxtNRzGkurlewO27CkCcg0XUtCkjLfTLQOKkIhMDGRQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
32441
+  (0.2ms) ROLLBACK
32442
+  (0.2ms) BEGIN
32443
+  (0.2ms) SAVEPOINT active_record_1
32444
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32445
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32446
+  (0.3ms) SAVEPOINT active_record_1
32447
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '9gigJf6Udle2JcMcV4ENdQDY1VdnyNUXk0h_nxKocrIw' LIMIT 1
32448
+ SQL (0.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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1333], ["target_type", "User"], ["token", "9gigJf6Udle2JcMcV4ENdQDY1VdnyNUXk0h_nxKocrIw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32449
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32450
+  (0.3ms) SAVEPOINT active_record_1
32451
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32452
+  (0.3ms) SAVEPOINT active_record_1
32453
+ SQL (1.3ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 374 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32454
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32455
+  (0.2ms) ROLLBACK
32456
+  (0.2ms) BEGIN
32457
+  (0.2ms) SAVEPOINT active_record_1
32458
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32459
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32460
+  (0.2ms) SAVEPOINT active_record_1
32461
+ NotifyUser::UserHash Exists (1.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'krIK9O69xZ7xw6pN5zUUjgAueWv1eTixgoGRpcbCnFNw' LIMIT 1
32462
+ SQL (10.1ms) 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", Thu, 11 Dec 2014 01:43:14 UTC +00:00], ["target_id", 1334], ["target_type", "User"], ["token", "krIK9O69xZ7xw6pN5zUUjgAueWv1eTixgoGRpcbCnFNw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:14 UTC +00:00]]
32463
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32464
+  (0.5ms) SAVEPOINT active_record_1
32465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32466
+  (0.5ms) ROLLBACK
32467
+  (0.2ms) BEGIN
32468
+  (0.2ms) ROLLBACK
32469
+  (0.2ms) BEGIN
32470
+  (0.5ms) ROLLBACK
32471
+  (0.3ms) BEGIN
32472
+  (0.2ms) ROLLBACK
32473
+  (0.2ms) BEGIN
32474
+  (0.1ms) ROLLBACK
32475
+  (0.2ms) BEGIN
32476
+  (0.2ms) ROLLBACK
32477
+  (0.2ms) BEGIN
32478
+  (0.2ms) ROLLBACK
32479
+  (0.1ms) BEGIN
32480
+  (0.2ms) ROLLBACK
32481
+  (0.2ms) BEGIN
32482
+  (0.4ms) SAVEPOINT active_record_1
32483
+ SQL (14.9ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32484
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32485
+ Processing by NotifyUser::NotificationsController#index as HTML
32486
+ Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
32487
+ Completed 200 OK in 11ms (Views: 8.1ms | ActiveRecord: 0.0ms)
32488
+  (0.4ms) ROLLBACK
32489
+  (0.2ms) BEGIN
32490
+  (0.2ms) SAVEPOINT active_record_1
32491
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32492
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32493
+  (0.3ms) SAVEPOINT active_record_1
32494
+  (1.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1336 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32495
+ SQL (1.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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1336], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32496
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32497
+ Processing by NotifyUser::NotificationsController#index as JSON
32498
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1336 AND "notify_user_notifications"."target_type" = 'User'
32499
+ NotifyUser::BaseNotification Load (1.3ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1336 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
32500
+ Completed 200 OK in 19ms (Views: 9.9ms | ActiveRecord: 2.1ms)
32501
+  (0.4ms) ROLLBACK
32502
+  (0.1ms) BEGIN
32503
+  (0.2ms) SAVEPOINT active_record_1
32504
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32505
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32506
+  (0.2ms) SAVEPOINT active_record_1
32507
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1337 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32508
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1337], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32509
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32510
+  (0.3ms) SAVEPOINT active_record_1
32511
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1337 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32512
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1337], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32513
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32514
+  (0.2ms) SAVEPOINT active_record_1
32515
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1337 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32516
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1337], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32517
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32518
+ Processing by NotifyUser::NotificationsController#index as HTML
32519
+ NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1337 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
32520
+ Completed 200 OK in 30ms (Views: 27.9ms | ActiveRecord: 0.8ms)
32521
+  (0.3ms) ROLLBACK
32522
+  (0.2ms) BEGIN
32523
+  (0.2ms) SAVEPOINT active_record_1
32524
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32525
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32526
+  (0.2ms) SAVEPOINT active_record_1
32527
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1338 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32528
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1338], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32529
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32530
+  (0.2ms) SAVEPOINT active_record_1
32531
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1338 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32532
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1338], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32533
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32534
+  (0.2ms) SAVEPOINT active_record_1
32535
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1338 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32536
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1338], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32537
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32538
+ Processing by NotifyUser::NotificationsController#read as HTML
32539
+ Parameters: {"id"=>"1351"}
32540
+ NotifyUser::BaseNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1338 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1351') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32541
+  (0.2ms) SAVEPOINT active_record_1
32542
+ User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1338]]
32543
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1338 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32544
+ SQL (1.3ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1351 [["state", "read"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32545
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32546
+ Completed 200 OK in 19ms (Views: 1.4ms | ActiveRecord: 4.0ms)
32547
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1351 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32548
+  (0.5ms) ROLLBACK
32549
+  (0.2ms) BEGIN
32550
+  (0.2ms) SAVEPOINT active_record_1
32551
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32552
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32553
+  (0.2ms) SAVEPOINT active_record_1
32554
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1339 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32555
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1339], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32556
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32557
+  (0.2ms) SAVEPOINT active_record_1
32558
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1339 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32559
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1339], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32560
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32561
+  (0.2ms) SAVEPOINT active_record_1
32562
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1339 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32563
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1339], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32564
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32565
+ Processing by NotifyUser::NotificationsController#read as HTML
32566
+ Parameters: {"id"=>"1354"}
32567
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1339 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1354') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32568
+  (0.2ms) SAVEPOINT active_record_1
32569
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1339]]
32570
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1339 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32571
+ 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" = 1354 [["state", "read"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32572
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32573
+ Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 2.9ms)
32574
+ Processing by NotifyUser::NotificationsController#read as HTML
32575
+ Parameters: {"id"=>"1354"}
32576
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1339 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1354') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32577
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.4ms)
32578
+  (0.2ms) ROLLBACK
32579
+  (0.2ms) BEGIN
32580
+  (0.2ms) SAVEPOINT active_record_1
32581
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32582
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32583
+  (0.2ms) SAVEPOINT active_record_1
32584
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1340 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32585
+ SQL (1.3ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1340], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32586
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32587
+  (0.2ms) SAVEPOINT active_record_1
32588
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1340 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32589
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1340], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32590
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32591
+  (0.2ms) SAVEPOINT active_record_1
32592
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1340 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32593
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1340], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32594
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32595
+ Processing by NotifyUser::NotificationsController#mark_all as HTML
32596
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1340 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
32597
+ Redirected to http://test.host/notify_user/notifications
32598
+ Completed 302 Found in 3ms (ActiveRecord: 0.9ms)
32599
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1340 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
32600
+  (0.2ms) ROLLBACK
32601
+  (0.2ms) BEGIN
32602
+  (0.3ms) SAVEPOINT active_record_1
32603
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32604
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32605
+  (0.2ms) SAVEPOINT active_record_1
32606
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1341 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32607
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1341], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32608
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32609
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
32610
+ Parameters: {"ids"=>["1360"]}
32611
+ SQL (0.5ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1341 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1360'))
32612
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1341 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1360'))
32613
+ Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 1.1ms)
32614
+ NewPostNotification Load (1.2ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1360]]
32615
+  (0.3ms) ROLLBACK
32616
+  (0.2ms) BEGIN
32617
+  (0.4ms) SAVEPOINT active_record_1
32618
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32620
+  (0.2ms) SAVEPOINT active_record_1
32621
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1342 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32622
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1342], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32624
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
32625
+ Parameters: {"ids"=>["1361"]}
32626
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1342 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1361'))
32627
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1342 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1361'))
32628
+ Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 1.2ms)
32629
+  (0.4ms) ROLLBACK
32630
+  (0.2ms) BEGIN
32631
+  (0.2ms) SAVEPOINT active_record_1
32632
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32634
+  (0.2ms) SAVEPOINT active_record_1
32635
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1343 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32636
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1343], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32637
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32638
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1343 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32639
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
32640
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
32641
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1343 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32642
+  (0.3ms) SAVEPOINT active_record_1
32643
+ 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" = 1343) LIMIT 1
32644
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["target_id", 1343], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32645
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32646
+  (0.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1343 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32647
+ Completed 200 OK in 31ms (Views: 0.5ms | ActiveRecord: 3.6ms)
32648
+ NotifyUser::Unsubscribe Load (1.0ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1343 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32649
+  (0.3ms) ROLLBACK
32650
+  (0.2ms) BEGIN
32651
+  (0.2ms) SAVEPOINT active_record_1
32652
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32653
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32654
+  (0.2ms) SAVEPOINT active_record_1
32655
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1344 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32656
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1344], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32657
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32658
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1344 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32659
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
32660
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
32661
+ NotifyUser::Unsubscribe Load (0.7ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1344 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32662
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1344 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32663
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.4ms)
32664
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1344 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32665
+  (0.5ms) ROLLBACK
32666
+  (0.2ms) BEGIN
32667
+  (0.2ms) SAVEPOINT active_record_1
32668
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32669
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32670
+  (0.2ms) SAVEPOINT active_record_1
32671
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1345 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32672
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1345], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32673
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32674
+ Processing by NotifyUser::NotificationsController#unsubscribe as HTML
32675
+ Parameters: {"type"=>"NewPostNotification"}
32676
+  (0.3ms) SAVEPOINT active_record_1
32677
+ 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" = 1345) LIMIT 1
32678
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["target_id", 1345], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32679
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32680
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
32681
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1345 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32682
+ Completed 302 Found in 7ms (ActiveRecord: 2.1ms)
32683
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
32684
+  (0.2ms) ROLLBACK
32685
+  (0.2ms) BEGIN
32686
+  (0.2ms) SAVEPOINT active_record_1
32687
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32688
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32689
+  (0.4ms) SAVEPOINT active_record_1
32690
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1346 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32691
+ SQL (0.7ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1346], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32693
+  (0.2ms) SAVEPOINT active_record_1
32694
+ 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" = 1346) LIMIT 1
32695
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["target_id", 1346], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32696
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32697
+ Processing by NotifyUser::NotificationsController#subscribe as HTML
32698
+ Parameters: {"type"=>"NewPostNotification"}
32699
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1346 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32700
+  (0.2ms) SAVEPOINT active_record_1
32701
+ SQL (0.7ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 307]]
32702
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32703
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
32704
+ Completed 302 Found in 4ms (ActiveRecord: 1.7ms)
32705
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
32706
+  (0.3ms) ROLLBACK
32707
+  (0.2ms) BEGIN
32708
+  (0.2ms) SAVEPOINT active_record_1
32709
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32710
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32711
+  (0.2ms) SAVEPOINT active_record_1
32712
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1347 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32713
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1347], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32714
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32715
+ NotifyUser::UserHash Load (1.1ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1347 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
32716
+  (0.3ms) SAVEPOINT active_record_1
32717
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'wS6f8c6q8vkWWUq4aJA3UQa_fq2iVa8lokzqnPzQ_rMQ' LIMIT 1
32718
+ SQL (1.0ms) 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["target_id", 1347], ["target_type", "User"], ["token", "wS6f8c6q8vkWWUq4aJA3UQa_fq2iVa8lokzqnPzQ_rMQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32719
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32720
+ Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
32721
+ Parameters: {"type"=>"NewPostNotification", "token"=>"wS6f8c6q8vkWWUq4aJA3UQa_fq2iVa8lokzqnPzQ_rMQ"}
32722
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'wS6f8c6q8vkWWUq4aJA3UQa_fq2iVa8lokzqnPzQ_rMQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
32723
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'wS6f8c6q8vkWWUq4aJA3UQa_fq2iVa8lokzqnPzQ_rMQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
32724
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1347]]
32725
+  (0.3ms) SAVEPOINT active_record_1
32726
+ 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" = 1347) LIMIT 1
32727
+ 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", Thu, 11 Dec 2014 01:43:41 UTC +00:00], ["target_id", 1347], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32728
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32729
+  (0.3ms) SAVEPOINT active_record_1
32730
+ SQL (1.0ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 376 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:41 UTC +00:00]]
32731
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32732
+ Completed 200 OK in 14ms (Views: 0.4ms | ActiveRecord: 4.8ms)
32733
+ 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
32734
+  (0.3ms) ROLLBACK
32735
+  (0.2ms) BEGIN
32736
+ 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
32737
+  (0.2ms) SAVEPOINT active_record_1
32738
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32739
+ NotifyUser::UserHash Load (0.7ms) 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
32740
+  (0.4ms) SAVEPOINT active_record_1
32741
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32742
+  (0.5ms) ROLLBACK
32743
+  (0.3ms) BEGIN
32744
+ 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
32745
+  (0.2ms) SAVEPOINT active_record_1
32746
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32747
+ NotifyUser::UserHash Load (0.7ms) 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
32748
+  (0.3ms) SAVEPOINT active_record_1
32749
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
32750
+  (0.2ms) ROLLBACK
32751
+  (0.2ms) BEGIN
32752
+ 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
32753
+  (0.2ms) SAVEPOINT active_record_1
32754
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32755
+ NotifyUser::UserHash Load (1.1ms) 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
32756
+  (0.4ms) SAVEPOINT active_record_1
32757
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32758
+  (0.2ms) ROLLBACK
32759
+  (0.2ms) BEGIN
32760
+  (0.3ms) SAVEPOINT active_record_1
32761
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32762
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32763
+  (0.2ms) SAVEPOINT active_record_1
32764
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1348 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32765
+ SQL (0.9ms) 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1348], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32766
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32767
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1348 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
32768
+  (0.2ms) ROLLBACK
32769
+  (0.2ms) BEGIN
32770
+  (0.3ms) SAVEPOINT active_record_1
32771
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32772
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32773
+  (0.2ms) SAVEPOINT active_record_1
32774
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1349 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32775
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1349], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32776
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32777
+  (0.2ms) ROLLBACK
32778
+  (0.1ms) BEGIN
32779
+  (0.2ms) SAVEPOINT active_record_1
32780
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32781
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32782
+  (0.2ms) SAVEPOINT active_record_1
32783
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1350 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32784
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1350], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32785
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32786
+  (0.2ms) ROLLBACK
32787
+  (0.2ms) BEGIN
32788
+  (0.2ms) SAVEPOINT active_record_1
32789
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32790
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32791
+  (0.3ms) SAVEPOINT active_record_1
32792
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1351 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32793
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1351], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32794
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32795
+  (0.2ms) SAVEPOINT active_record_1
32796
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1351 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32797
+ 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" = 1370 [["params", {"listing_id"=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32798
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32799
+ 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
32800
+  (0.2ms) ROLLBACK
32801
+  (0.2ms) BEGIN
32802
+  (0.3ms) SAVEPOINT active_record_1
32803
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32804
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32805
+  (0.2ms) SAVEPOINT active_record_1
32806
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1352 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32807
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1352], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32808
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32809
+  (0.2ms) SAVEPOINT active_record_1
32810
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1352 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32811
+ 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" = 1371 [["params", {"listing_id"=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32812
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32813
+ 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
32814
+  (0.2ms) ROLLBACK
32815
+  (0.1ms) BEGIN
32816
+  (0.2ms) SAVEPOINT active_record_1
32817
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32818
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32819
+  (0.1ms) SAVEPOINT active_record_1
32820
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1353 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32821
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1353], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32822
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32823
+  (0.2ms) SAVEPOINT active_record_1
32824
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1353 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32825
+ 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" = 1372 [["params", {:listing_id=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32826
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32827
+ 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
32828
+  (0.2ms) ROLLBACK
32829
+  (0.2ms) BEGIN
32830
+  (0.1ms) SAVEPOINT active_record_1
32831
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32832
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32833
+  (0.1ms) SAVEPOINT active_record_1
32834
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1354 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32835
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1354], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32836
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32837
+  (0.2ms) SAVEPOINT active_record_1
32838
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1354 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32839
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1373 [["params", {:listing_id=>1}], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32840
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32841
+ 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
32842
+  (0.2ms) ROLLBACK
32843
+  (0.2ms) BEGIN
32844
+  (0.1ms) SAVEPOINT active_record_1
32845
+ SQL (3.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32846
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32847
+  (0.2ms) SAVEPOINT active_record_1
32848
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1355 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32849
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1355], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32850
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32851
+  (0.2ms) SAVEPOINT active_record_1
32852
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
32853
+  (0.2ms) ROLLBACK
32854
+  (0.2ms) BEGIN
32855
+  (0.2ms) SAVEPOINT active_record_1
32856
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32857
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32858
+  (0.1ms) SAVEPOINT active_record_1
32859
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1356 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32860
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1356], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32861
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32862
+  (0.2ms) SAVEPOINT active_record_1
32863
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1356 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32864
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32865
+  (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" = 1356 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1375)
32866
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1375]]
32867
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1356]]
32868
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1356 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
32869
+  (0.2ms) SAVEPOINT active_record_1
32870
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1356]]
32871
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1356 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32872
+ SQL (1.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1375 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32873
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32874
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1375 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32875
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1356]]
32876
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1356 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32877
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1375 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32878
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1356]]
32879
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1356 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
32880
+  (0.2ms) ROLLBACK
32881
+  (0.2ms) BEGIN
32882
+  (0.2ms) SAVEPOINT active_record_1
32883
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32884
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32885
+  (0.1ms) SAVEPOINT active_record_1
32886
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1357 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32887
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1357], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32888
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32889
+  (0.3ms) SAVEPOINT active_record_1
32890
+  (0.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1357 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32891
+  (0.4ms) RELEASE SAVEPOINT active_record_1
32892
+  (1.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" = 1357 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1376)
32893
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1376]]
32894
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1357]]
32895
+ 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" = 1357 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
32896
+  (0.2ms) SAVEPOINT active_record_1
32897
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1357]]
32898
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1357 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32899
+ 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" = 1376 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32900
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32901
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1376 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32902
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1357]]
32903
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1357 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32904
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1376 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
32905
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1357]]
32906
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1357 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
32907
+  (0.2ms) ROLLBACK
32908
+  (0.2ms) BEGIN
32909
+  (0.1ms) SAVEPOINT active_record_1
32910
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32911
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32912
+  (0.1ms) SAVEPOINT active_record_1
32913
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1358 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32914
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1358], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32915
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32916
+  (0.2ms) SAVEPOINT active_record_1
32917
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1358 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32918
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32919
+  (0.7ms) 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" = 1358 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1377)
32920
+  (0.2ms) SAVEPOINT active_record_1
32921
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1358 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32922
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1358], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32923
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32924
+  (0.7ms) 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" = 1358 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1378)
32925
+  (0.4ms) ROLLBACK
32926
+  (0.2ms) BEGIN
32927
+  (0.2ms) SAVEPOINT active_record_1
32928
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32929
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32930
+  (0.2ms) SAVEPOINT active_record_1
32931
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1359 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32932
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1359], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32933
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32934
+  (0.2ms) SAVEPOINT active_record_1
32935
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1359 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32936
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1359], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32937
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32938
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1380]]
32939
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1359]]
32940
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1359 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
32941
+  (0.2ms) SAVEPOINT active_record_1
32942
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1359]]
32943
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1359 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32944
+ 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" = 1379 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32945
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32946
+  (0.1ms) SAVEPOINT active_record_1
32947
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1359]]
32948
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1359 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
32949
+ 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" = 1380 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32950
+  (0.2ms) RELEASE SAVEPOINT active_record_1
32951
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1359 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
32952
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1359 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
32953
+  (0.2ms) SAVEPOINT active_record_1
32954
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'oYj91bF96iSeKHibEm4c7gVtrRyzmm8N1J4MOqomVgiw' LIMIT 1
32955
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1359], ["target_type", "User"], ["token", "oYj91bF96iSeKHibEm4c7gVtrRyzmm8N1J4MOqomVgiw"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
32956
+  (0.3ms) RELEASE SAVEPOINT active_record_1
32957
+
32958
+ Sent mail to user@example.com (8.5ms)
32959
+ Date: Thu, 11 Dec 2014 12:43:42 +1100
32960
+ From: please-change-me-at-config-initializers-notify-user@example.com
32961
+ To: user@example.com
32962
+ Message-ID: <5488f6ce5173c_d0ce3fc435465be8778a5@wp.local.mail>
32963
+ Subject: Rails404: You have new Newpostnotification notifications.
32964
+ Mime-Version: 1.0
32965
+ Content-Type: text/html;
32966
+ charset=UTF-8
32967
+ Content-Transfer-Encoding: quoted-printable
32968
+
32969
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
32970
+ tml4/strict.dtd">
32971
+ <html>
32972
+ <head>
32973
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
32974
+ "/>
32975
+ <title></title>
32976
+ </head>
32977
+
32978
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
32979
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
32980
+ ing: optimizeLegibility;">
32981
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
32982
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
32983
+ Logo
32984
+ </div>
32985
+ </div>
32986
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
32987
+ ">
32988
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
32989
+ =
32990
+
32991
+ <div>
32992
+ New Post Notification happened. =
32993
+
32994
+ </div>
32995
+ <div>
32996
+ New Post Notification happened. =
32997
+
32998
+ </div>
32999
+
33000
+ </div>
33001
+ </div>
33002
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
33003
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
33004
+ <p style=3D"text-align: center;">
33005
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
33006
+ _unsubscribe?token=3DoYj91bF96iSeKHibEm4c7gVtrRyzmm8N1J4MOqomVgiw&amp;typ=
33007
+ e=3DNewPostNotification">Unsubscribe</a>
33008
+ </p>
33009
+ <p style=3D"text-align: center;">
33010
+ This is the default generated layout. A privacy declaration could g=
33011
+ o here.
33012
+ </p>
33013
+ <p style=3D"text-align: center; margin-bottom: 0px;">
33014
+ =C2=A9 MyCompany Pty Ltd
33015
+ </p>
33016
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
33017
+ ABN 123 456 789
33018
+ </p>
33019
+ </div>
33020
+ </div>
33021
+ </body>
33022
+ </html>=
33023
+
33024
+  (0.2ms) ROLLBACK
33025
+  (0.2ms) BEGIN
33026
+  (0.2ms) SAVEPOINT active_record_1
33027
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33028
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33029
+  (0.2ms) SAVEPOINT active_record_1
33030
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1360 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33031
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1360], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33032
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33033
+ NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1381]]
33034
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1360]]
33035
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1360 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
33036
+  (0.2ms) SAVEPOINT active_record_1
33037
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1360]]
33038
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1360 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33039
+ 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" = 1381 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33040
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33041
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1381 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
33042
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1360]]
33043
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1360 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
33044
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1360 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
33045
+  (0.2ms) SAVEPOINT active_record_1
33046
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'nInxA6Fwx6fWinLZ9-EB6whl7CCql4k5twevaYyLuWjQ' LIMIT 1
33047
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1360], ["target_type", "User"], ["token", "nInxA6Fwx6fWinLZ9-EB6whl7CCql4k5twevaYyLuWjQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33048
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33049
+
33050
+ Sent mail to user@example.com (7.7ms)
33051
+ Date: Thu, 11 Dec 2014 12:43:42 +1100
33052
+ From: please-change-me-at-config-initializers-notify-user@example.com
33053
+ To: user@example.com
33054
+ Message-ID: <5488f6ce5cd08_d0ce3fc435465be87799f@wp.local.mail>
33055
+ Subject: Rails404: You have a new Newpostnotification notification.
33056
+ Mime-Version: 1.0
33057
+ Content-Type: text/html;
33058
+ charset=UTF-8
33059
+ Content-Transfer-Encoding: quoted-printable
33060
+
33061
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
33062
+ tml4/strict.dtd">
33063
+ <html>
33064
+ <head>
33065
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
33066
+ "/>
33067
+ <title></title>
33068
+ </head>
33069
+
33070
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
33071
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
33072
+ ing: optimizeLegibility;">
33073
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
33074
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
33075
+ Logo
33076
+ </div>
33077
+ </div>
33078
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
33079
+ ">
33080
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
33081
+ New Post Notification happened.
33082
+
33083
+ </div>
33084
+ </div>
33085
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
33086
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
33087
+ <p style=3D"text-align: center;">
33088
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
33089
+ _unsubscribe?token=3DnInxA6Fwx6fWinLZ9-EB6whl7CCql4k5twevaYyLuWjQ&amp;typ=
33090
+ e=3DNewPostNotification">Unsubscribe</a>
33091
+ </p>
33092
+ <p style=3D"text-align: center;">
33093
+ This is the default generated layout. A privacy declaration could g=
33094
+ o here.
33095
+ </p>
33096
+ <p style=3D"text-align: center; margin-bottom: 0px;">
33097
+ =C2=A9 MyCompany Pty Ltd
33098
+ </p>
33099
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
33100
+ ABN 123 456 789
33101
+ </p>
33102
+ </div>
33103
+ </div>
33104
+ </body>
33105
+ </html>=
33106
+
33107
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1360 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
33108
+  (0.2ms) ROLLBACK
33109
+  (0.2ms) BEGIN
33110
+  (0.1ms) SAVEPOINT active_record_1
33111
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33112
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33113
+  (0.1ms) SAVEPOINT active_record_1
33114
+ 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" = 1361) LIMIT 1
33115
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1361], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33116
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33117
+  (0.1ms) SAVEPOINT active_record_1
33118
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1361 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33119
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33120
+ 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
33121
+  (0.2ms) ROLLBACK
33122
+  (0.2ms) BEGIN
33123
+  (0.2ms) SAVEPOINT active_record_1
33124
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33125
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33126
+  (0.2ms) SAVEPOINT active_record_1
33127
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1362 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33128
+ SQL (0.8ms) 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1362], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33129
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33130
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1382 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
33131
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1362]]
33132
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1362 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
33133
+  (0.2ms) ROLLBACK
33134
+  (0.2ms) BEGIN
33135
+  (0.2ms) SAVEPOINT active_record_1
33136
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33137
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33138
+  (0.2ms) SAVEPOINT active_record_1
33139
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1363 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33140
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1363], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33141
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33142
+  (0.2ms) SAVEPOINT active_record_1
33143
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1363 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33144
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1363], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33145
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33146
+ NewPostNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1384]]
33147
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1363]]
33148
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1363 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
33149
+  (0.2ms) SAVEPOINT active_record_1
33150
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1363]]
33151
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1363 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33152
+ 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" = 1383 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33153
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33154
+  (0.2ms) SAVEPOINT active_record_1
33155
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1363]]
33156
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1363 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33157
+ 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" = 1384 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33158
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33159
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1363 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
33160
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1363 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
33161
+  (0.2ms) SAVEPOINT active_record_1
33162
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'q91_De5VjpdYJ32YcDvu_QvnqmxL34iyhpkY-LyczehA' LIMIT 1
33163
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1363], ["target_type", "User"], ["token", "q91_De5VjpdYJ32YcDvu_QvnqmxL34iyhpkY-LyczehA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33164
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33165
+
33166
+ Sent mail to user@example.com (6.4ms)
33167
+ Date: Thu, 11 Dec 2014 12:43:42 +1100
33168
+ From: please-change-me-at-config-initializers-notify-user@example.com
33169
+ To: user@example.com
33170
+ Message-ID: <5488f6ce6fc7e_d0ce3fc435465be8780ba@wp.local.mail>
33171
+ Subject: Rails404: You have new Newpostnotification notifications.
33172
+ Mime-Version: 1.0
33173
+ Content-Type: text/html;
33174
+ charset=UTF-8
33175
+ Content-Transfer-Encoding: quoted-printable
33176
+
33177
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
33178
+ tml4/strict.dtd">
33179
+ <html>
33180
+ <head>
33181
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
33182
+ "/>
33183
+ <title></title>
33184
+ </head>
33185
+
33186
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
33187
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
33188
+ ing: optimizeLegibility;">
33189
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
33190
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
33191
+ Logo
33192
+ </div>
33193
+ </div>
33194
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
33195
+ ">
33196
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
33197
+ =
33198
+
33199
+ <div>
33200
+ New Post Notification happened. =
33201
+
33202
+ </div>
33203
+ <div>
33204
+ New Post Notification happened. =
33205
+
33206
+ </div>
33207
+
33208
+ </div>
33209
+ </div>
33210
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
33211
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
33212
+ <p style=3D"text-align: center;">
33213
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
33214
+ _unsubscribe?token=3Dq91_De5VjpdYJ32YcDvu_QvnqmxL34iyhpkY-LyczehA&amp;typ=
33215
+ e=3DNewPostNotification">Unsubscribe</a>
33216
+ </p>
33217
+ <p style=3D"text-align: center;">
33218
+ This is the default generated layout. A privacy declaration could g=
33219
+ o here.
33220
+ </p>
33221
+ <p style=3D"text-align: center; margin-bottom: 0px;">
33222
+ =C2=A9 MyCompany Pty Ltd
33223
+ </p>
33224
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
33225
+ ABN 123 456 789
33226
+ </p>
33227
+ </div>
33228
+ </div>
33229
+ </body>
33230
+ </html>=
33231
+
33232
+  (0.3ms) ROLLBACK
33233
+  (0.2ms) BEGIN
33234
+  (0.2ms) SAVEPOINT active_record_1
33235
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33236
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33237
+  (0.2ms) SAVEPOINT active_record_1
33238
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1364 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33239
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1364], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33240
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33241
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1385]]
33242
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1364]]
33243
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1364 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
33244
+  (0.1ms) SAVEPOINT active_record_1
33245
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1364]]
33246
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1364 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33247
+ 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" = 1385 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33248
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33249
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1385 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
33250
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1364]]
33251
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1364 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
33252
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1364 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
33253
+  (0.2ms) SAVEPOINT active_record_1
33254
+ NotifyUser::UserHash Exists (1.9ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'yB1c61dmljcJZYRON6GiYQxNvawf6ZdiFjZ8frmc-qqg' LIMIT 1
33255
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1364], ["target_type", "User"], ["token", "yB1c61dmljcJZYRON6GiYQxNvawf6ZdiFjZ8frmc-qqg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33256
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33257
+
33258
+ Sent mail to user@example.com (6.9ms)
33259
+ Date: Thu, 11 Dec 2014 12:43:42 +1100
33260
+ From: please-change-me-at-config-initializers-notify-user@example.com
33261
+ To: user@example.com
33262
+ Message-ID: <5488f6ce7a6ba_d0ce3fc435465be8781b3@wp.local.mail>
33263
+ Subject: Rails404: You have a new Newpostnotification notification.
33264
+ Mime-Version: 1.0
33265
+ Content-Type: text/html;
33266
+ charset=UTF-8
33267
+ Content-Transfer-Encoding: quoted-printable
33268
+
33269
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
33270
+ tml4/strict.dtd">
33271
+ <html>
33272
+ <head>
33273
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
33274
+ "/>
33275
+ <title></title>
33276
+ </head>
33277
+
33278
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
33279
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
33280
+ ing: optimizeLegibility;">
33281
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
33282
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
33283
+ Logo
33284
+ </div>
33285
+ </div>
33286
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
33287
+ ">
33288
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
33289
+ New Post Notification happened.
33290
+
33291
+ </div>
33292
+ </div>
33293
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
33294
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
33295
+ <p style=3D"text-align: center;">
33296
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
33297
+ _unsubscribe?token=3DyB1c61dmljcJZYRON6GiYQxNvawf6ZdiFjZ8frmc-qqg&amp;typ=
33298
+ e=3DNewPostNotification">Unsubscribe</a>
33299
+ </p>
33300
+ <p style=3D"text-align: center;">
33301
+ This is the default generated layout. A privacy declaration could g=
33302
+ o here.
33303
+ </p>
33304
+ <p style=3D"text-align: center; margin-bottom: 0px;">
33305
+ =C2=A9 MyCompany Pty Ltd
33306
+ </p>
33307
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
33308
+ ABN 123 456 789
33309
+ </p>
33310
+ </div>
33311
+ </div>
33312
+ </body>
33313
+ </html>=
33314
+
33315
+  (0.3ms) ROLLBACK
33316
+  (0.1ms) BEGIN
33317
+  (0.2ms) SAVEPOINT active_record_1
33318
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33319
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33320
+  (0.2ms) SAVEPOINT active_record_1
33321
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1365 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33322
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1365], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33323
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33324
+  (0.2ms) SAVEPOINT active_record_1
33325
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1365 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33326
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33327
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1365 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33328
+  (0.1ms) SAVEPOINT active_record_1
33329
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1365 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33330
+ 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" = 1386 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33331
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33332
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1386 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
33333
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1365]]
33334
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1365 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
33335
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1365 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
33336
+  (0.2ms) ROLLBACK
33337
+  (0.1ms) BEGIN
33338
+  (0.2ms) SAVEPOINT active_record_1
33339
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33341
+  (0.2ms) SAVEPOINT active_record_1
33342
+ 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" = 1366) LIMIT 1
33343
+ SQL (1.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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1366], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33344
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33345
+  (0.5ms) SAVEPOINT active_record_1
33346
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1366 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33347
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
33348
+  (0.2ms) SAVEPOINT active_record_1
33349
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1366 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33350
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33351
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1366 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33352
+  (0.2ms) ROLLBACK
33353
+  (0.2ms) BEGIN
33354
+  (0.2ms) SAVEPOINT active_record_1
33355
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33356
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33357
+  (0.2ms) SAVEPOINT active_record_1
33358
+ 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" = 1367) LIMIT 1
33359
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1367], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33360
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33361
+  (0.2ms) SAVEPOINT active_record_1
33362
+ NotifyUser::Unsubscribe Exists (0.7ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 311 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1367) LIMIT 1
33363
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33364
+  (0.3ms) SAVEPOINT active_record_1
33365
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1367 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33366
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1367], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33367
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33368
+  (0.3ms) SAVEPOINT active_record_1
33369
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1367 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33370
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33371
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1367 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33372
+  (0.3ms) SAVEPOINT active_record_1
33373
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1367 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33374
+ 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" = 1387 [["state", "sent"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33375
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33376
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1387 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
33377
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1367]]
33378
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1367 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
33379
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1367 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
33380
+  (0.3ms) ROLLBACK
33381
+  (0.2ms) BEGIN
33382
+  (0.3ms) SAVEPOINT active_record_1
33383
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33384
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33385
+  (0.2ms) SAVEPOINT active_record_1
33386
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1368 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33387
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1368], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33389
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1368 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
33390
+  (0.2ms) SAVEPOINT active_record_1
33391
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'XasKzwIuM_-rHjOkGS8quAQ_TRv3yMZ4cmqYjMjLFQTg' LIMIT 1
33392
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1368], ["target_type", "User"], ["token", "XasKzwIuM_-rHjOkGS8quAQ_TRv3yMZ4cmqYjMjLFQTg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33393
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33394
+  (0.2ms) ROLLBACK
33395
+  (0.2ms) BEGIN
33396
+  (0.2ms) SAVEPOINT active_record_1
33397
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33398
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33399
+  (0.3ms) SAVEPOINT active_record_1
33400
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1369 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33401
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1369], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33402
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33403
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1369 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
33404
+  (0.2ms) SAVEPOINT active_record_1
33405
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'wu144_ZKxoeFhmspEtqHLQl-jcuHkvjH8--Leo5K8bzg' LIMIT 1
33406
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1369], ["target_type", "User"], ["token", "wu144_ZKxoeFhmspEtqHLQl-jcuHkvjH8--Leo5K8bzg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33407
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33408
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1369 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
33409
+  (0.3ms) ROLLBACK
33410
+  (0.2ms) BEGIN
33411
+  (0.3ms) SAVEPOINT active_record_1
33412
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33413
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33414
+  (0.2ms) SAVEPOINT active_record_1
33415
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1370 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33416
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["state", "pending"], ["target_id", 1370], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33417
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33418
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1370 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
33419
+  (0.2ms) SAVEPOINT active_record_1
33420
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5wGrrAzr7sI1OwFTPobNqgqkh-NvufqicsiXr37LYvsQ' LIMIT 1
33421
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1370], ["target_type", "User"], ["token", "5wGrrAzr7sI1OwFTPobNqgqkh-NvufqicsiXr37LYvsQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33422
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33423
+  (0.2ms) SAVEPOINT active_record_1
33424
+ SQL (0.6ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 383 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33425
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33426
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1370 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
33427
+  (0.1ms) SAVEPOINT active_record_1
33428
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'qeQeaDBCIzN66C7WKMwhkQkKSB2sDjE-J77W2eEEVLwg' LIMIT 1
33429
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1370], ["target_type", "User"], ["token", "qeQeaDBCIzN66C7WKMwhkQkKSB2sDjE-J77W2eEEVLwg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33430
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33431
+  (0.2ms) ROLLBACK
33432
+  (0.2ms) BEGIN
33433
+  (0.2ms) SAVEPOINT active_record_1
33434
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33435
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33436
+  (0.1ms) SAVEPOINT active_record_1
33437
+ 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" = 1371) LIMIT 1
33438
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1371], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33439
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33440
+  (0.2ms) SAVEPOINT active_record_1
33441
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 312 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1371) LIMIT 1
33442
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33443
+  (0.2ms) SAVEPOINT active_record_1
33444
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1371 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33445
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33446
+  (0.2ms) ROLLBACK
33447
+  (0.2ms) BEGIN
33448
+  (0.2ms) SAVEPOINT active_record_1
33449
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33450
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33451
+  (0.2ms) SAVEPOINT active_record_1
33452
+ 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" = 1372) LIMIT 1
33453
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1372], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33454
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33455
+  (0.2ms) SAVEPOINT active_record_1
33456
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 313 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1372) LIMIT 1
33457
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33458
+  (0.2ms) SAVEPOINT active_record_1
33459
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1372 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33460
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
33461
+  (0.3ms) ROLLBACK
33462
+  (0.3ms) BEGIN
33463
+  (0.2ms) SAVEPOINT active_record_1
33464
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33466
+  (0.2ms) SAVEPOINT active_record_1
33467
+ 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" = 1373) LIMIT 1
33468
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1373], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33469
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33470
+  (0.2ms) SAVEPOINT active_record_1
33471
+ NotifyUser::Unsubscribe Exists (0.4ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 314 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1373) LIMIT 1
33472
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33473
+  (0.2ms) SAVEPOINT active_record_1
33474
+ 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" = 1373) LIMIT 1
33475
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
33476
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1373 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33477
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1373 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33478
+  (0.2ms) SAVEPOINT active_record_1
33479
+ SQL (0.4ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 314]]
33480
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33481
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1373 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33482
+  (0.3ms) ROLLBACK
33483
+  (0.3ms) BEGIN
33484
+  (0.3ms) SAVEPOINT active_record_1
33485
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33486
+  (0.4ms) RELEASE SAVEPOINT active_record_1
33487
+  (0.2ms) SAVEPOINT active_record_1
33488
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1374 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
33489
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1374], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33490
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33491
+  (0.2ms) ROLLBACK
33492
+  (0.2ms) BEGIN
33493
+  (0.2ms) SAVEPOINT active_record_1
33494
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33495
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33496
+  (0.2ms) SAVEPOINT active_record_1
33497
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Je8F1TKyDEpXoPtQ7cANnwF3kYIn5VGvI8FThc0HIB5Q' LIMIT 1
33498
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1375], ["target_type", "User"], ["token", "Je8F1TKyDEpXoPtQ7cANnwF3kYIn5VGvI8FThc0HIB5Q"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33499
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33500
+  (0.2ms) SAVEPOINT active_record_1
33501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
33502
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Je8F1TKyDEpXoPtQ7cANnwF3kYIn5VGvI8FThc0HIB5Q' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
33503
+  (0.2ms) ROLLBACK
33504
+  (0.2ms) BEGIN
33505
+  (0.2ms) SAVEPOINT active_record_1
33506
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33507
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33508
+  (0.2ms) SAVEPOINT active_record_1
33509
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'vhZD9k6hNfDgqWvVNxjcsQX-UJSx1vZ7H4gNO5XmCEZg' LIMIT 1
33510
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1376], ["target_type", "User"], ["token", "vhZD9k6hNfDgqWvVNxjcsQX-UJSx1vZ7H4gNO5XmCEZg"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33511
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33512
+  (0.2ms) SAVEPOINT active_record_1
33513
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33514
+  (0.4ms) SAVEPOINT active_record_1
33515
+ SQL (0.9ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 386 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33516
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33517
+ NotifyUser::UserHash Exists (0.7ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'vhZD9k6hNfDgqWvVNxjcsQX-UJSx1vZ7H4gNO5XmCEZg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
33518
+  (0.3ms) ROLLBACK
33519
+  (0.2ms) BEGIN
33520
+  (0.3ms) SAVEPOINT active_record_1
33521
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33522
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33523
+  (0.2ms) SAVEPOINT active_record_1
33524
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Q-9ko88VKzwPhlfULw5XzAf3JdznmkgVu0rwNb8XuYLA' LIMIT 1
33525
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1377], ["target_type", "User"], ["token", "Q-9ko88VKzwPhlfULw5XzAf3JdznmkgVu0rwNb8XuYLA"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33526
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33527
+  (0.2ms) SAVEPOINT active_record_1
33528
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33529
+  (0.2ms) SAVEPOINT active_record_1
33530
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 387 [["active", false], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33531
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33532
+  (0.2ms) ROLLBACK
33533
+  (0.2ms) BEGIN
33534
+  (0.2ms) SAVEPOINT active_record_1
33535
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33536
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33537
+  (0.2ms) SAVEPOINT active_record_1
33538
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'srMV0WtoqQL4UTGdRc57IQ7b_UoMQ3iJ_9CdEYUr7Q7w' LIMIT 1
33539
+ 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", Thu, 11 Dec 2014 01:43:42 UTC +00:00], ["target_id", 1378], ["target_type", "User"], ["token", "srMV0WtoqQL4UTGdRc57IQ7b_UoMQ3iJ_9CdEYUr7Q7w"], ["type", "NewPostNotification"], ["updated_at", Thu, 11 Dec 2014 01:43:42 UTC +00:00]]
33540
+  (0.3ms) RELEASE SAVEPOINT active_record_1
33541
+  (0.2ms) SAVEPOINT active_record_1
33542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
33543
+  (0.3ms) ROLLBACK
33544
+  (0.2ms) BEGIN
33545
+  (0.2ms) ROLLBACK
33546
+  (0.2ms) BEGIN
33547
+  (0.2ms) ROLLBACK
33548
+  (0.1ms) BEGIN
33549
+  (0.2ms) ROLLBACK
33550
+  (0.1ms) BEGIN
33551
+  (0.1ms) ROLLBACK
33552
+  (0.1ms) BEGIN
33553
+  (0.3ms) ROLLBACK
33554
+  (0.2ms) BEGIN
33555
+  (0.3ms) ROLLBACK
33556
+  (0.2ms) BEGIN
33557
+  (0.2ms) ROLLBACK