notify_user 0.0.22 → 0.0.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e8acf9967c4ec9b3cf37c6f58e9e892f96dcff25
4
- data.tar.gz: d76da7371d546f51310dfac1526535544fc045c4
3
+ metadata.gz: 51eaa1ec07a7204cb6318410ebce0b7255a40a21
4
+ data.tar.gz: bacc0721a6d58df15f1411aa48d081fa84718613
5
5
  SHA512:
6
- metadata.gz: 8fad065abd3554f49378711b426e07820aa5d91d1ee517c13e090721cb12f1467496874e849ba6aaff319ac5fa927758ebd93260c050000e27adfef1e1306ccd
7
- data.tar.gz: 1d5124ce324b68377856363d8bcd613af69a1fa49dcea8387984e9c2fc9f4da0767618f74cd7525f332eff6a00c6c30daf775a5311967b323c2d52f341a5febd
6
+ metadata.gz: 4ab6533c03d62fdfb5500bd3a1857b6c01fcd6eca98bbbf8f9e9286735bdab0c5aaba26e72bc1ff77a328596214a521d46cf67dc75a618fd06f2b507b46187a1
7
+ data.tar.gz: fbed9a7684ca2a3734a07e63e1ae622f9bcde248cbd30966dae1890a9a29183a559a96618e7e61f18d0a0a817f8e53d674a6a0e222eefc2368fb7294be907570
@@ -18,16 +18,21 @@ module NotifyUser
18
18
  :http_sync => true
19
19
  )
20
20
 
21
+ pn_apns = {
22
+ aps: {
23
+ alert: notification.mobile_message,
24
+ badge: 1,
25
+ type: notification.type
26
+ }
27
+ }
28
+
29
+ pn_apns[:aps][:action_id] = notification.params[:action_id] if notification.params[:action_id]
30
+
21
31
  pubnub.publish(
22
32
  channel: notification.target.uuid,
23
33
  http_sync: true,
24
34
  message: {
25
- pn_apns: {
26
- aps: {
27
- alert: notification.mobile_message,
28
- badge: 1
29
- }
30
- }
35
+ pn_apns: pn_apns
31
36
  }
32
37
  )
33
38
  end
@@ -1,3 +1,3 @@
1
1
  module NotifyUser
2
- VERSION = "0.0.22"
2
+ VERSION = "0.0.23"
3
3
  end
@@ -26020,3 +26020,2157 @@ o here.
26020
26020
   (0.2ms) ROLLBACK
26021
26021
   (0.2ms) BEGIN
26022
26022
   (0.2ms) ROLLBACK
26023
+  (1.8ms) BEGIN
26024
+  (0.8ms) SAVEPOINT active_record_1
26025
+ SQL (22.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26026
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26027
+ Processing by NotifyUser::NotificationsController#index as HTML
26028
+ Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.5ms)
26029
+ Completed 200 OK in 20ms (Views: 16.0ms | ActiveRecord: 0.0ms)
26030
+  (0.6ms) ROLLBACK
26031
+  (0.2ms) BEGIN
26032
+  (0.2ms) SAVEPOINT active_record_1
26033
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26034
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26035
+  (0.4ms) SAVEPOINT active_record_1
26036
+  (6.2ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1072 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26037
+ SQL (4.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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1072], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26038
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26039
+ Processing by NotifyUser::NotificationsController#index as JSON
26040
+  (1.3ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1072 AND "notify_user_notifications"."target_type" = 'User'
26041
+ NotifyUser::BaseNotification Load (4.2ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1072 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
26042
+ Completed 200 OK in 26ms (Views: 13.7ms | ActiveRecord: 5.5ms)
26043
+  (0.3ms) ROLLBACK
26044
+  (0.3ms) BEGIN
26045
+  (0.3ms) SAVEPOINT active_record_1
26046
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26047
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26048
+  (0.2ms) SAVEPOINT active_record_1
26049
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1073 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26050
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1073], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26051
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26052
+  (0.3ms) SAVEPOINT active_record_1
26053
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1073 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26054
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1073], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26055
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26056
+  (0.2ms) SAVEPOINT active_record_1
26057
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1073 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26058
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1073], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26059
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26060
+ Processing by NotifyUser::NotificationsController#index as HTML
26061
+ NotifyUser::BaseNotification Load (1.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1073 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
26062
+ Completed 200 OK in 72ms (Views: 69.8ms | ActiveRecord: 1.6ms)
26063
+  (0.3ms) ROLLBACK
26064
+  (0.2ms) BEGIN
26065
+  (0.2ms) SAVEPOINT active_record_1
26066
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26067
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26068
+  (0.1ms) SAVEPOINT active_record_1
26069
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1074 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26070
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1074], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26071
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26072
+  (0.3ms) SAVEPOINT active_record_1
26073
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1074 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26074
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1074], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26075
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26076
+  (0.2ms) SAVEPOINT active_record_1
26077
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1074 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26078
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1074], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26079
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26080
+ Processing by NotifyUser::NotificationsController#read as HTML
26081
+ Parameters: {"id"=>"1081"}
26082
+ NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1074 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1081') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26083
+  (0.2ms) SAVEPOINT active_record_1
26084
+ User Load (1.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1074]]
26085
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1074 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26086
+ SQL (3.1ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1081 [["state", "read"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26087
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26088
+ Completed 200 OK in 24ms (Views: 1.9ms | ActiveRecord: 6.1ms)
26089
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1081 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26090
+  (0.4ms) ROLLBACK
26091
+  (0.2ms) BEGIN
26092
+  (0.2ms) SAVEPOINT active_record_1
26093
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26094
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26095
+  (0.2ms) SAVEPOINT active_record_1
26096
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1075 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26097
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1075], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26098
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26099
+  (0.2ms) SAVEPOINT active_record_1
26100
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1075 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26101
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1075], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26102
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26103
+  (0.2ms) SAVEPOINT active_record_1
26104
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1075 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26105
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1075], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26106
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26107
+ Processing by NotifyUser::NotificationsController#read as HTML
26108
+ Parameters: {"id"=>"1084"}
26109
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1075 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1084') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26110
+  (0.2ms) SAVEPOINT active_record_1
26111
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1075]]
26112
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1075 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26113
+ 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" = 1084 [["state", "read"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26114
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26115
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 2.6ms)
26116
+ Processing by NotifyUser::NotificationsController#read as HTML
26117
+ Parameters: {"id"=>"1084"}
26118
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1075 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1084') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26119
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.2ms)
26120
+  (0.3ms) ROLLBACK
26121
+  (0.3ms) BEGIN
26122
+  (0.3ms) SAVEPOINT active_record_1
26123
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26124
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26125
+  (0.3ms) SAVEPOINT active_record_1
26126
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1076 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26127
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1076], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26128
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26129
+  (0.2ms) SAVEPOINT active_record_1
26130
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1076 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26131
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1076], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26132
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26133
+  (0.2ms) SAVEPOINT active_record_1
26134
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1076 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26135
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1076], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26136
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26137
+ Processing by NotifyUser::NotificationsController#mark_all as HTML
26138
+ SQL (1.2ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1076 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
26139
+ Redirected to http://test.host/notify_user/notifications
26140
+ Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
26141
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1076 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
26142
+  (0.2ms) ROLLBACK
26143
+  (0.2ms) BEGIN
26144
+  (0.2ms) SAVEPOINT active_record_1
26145
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26146
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26147
+  (0.2ms) SAVEPOINT active_record_1
26148
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1077 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26149
+ 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", Tue, 28 Oct 2014 00:40:58 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1077], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:58 UTC +00:00]]
26150
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26151
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
26152
+ Parameters: {"ids"=>["1090"]}
26153
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1077 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1090'))
26154
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1077 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1090'))
26155
+ Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 1.1ms)
26156
+ 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", 1090]]
26157
+  (0.3ms) ROLLBACK
26158
+  (0.2ms) BEGIN
26159
+  (0.2ms) SAVEPOINT active_record_1
26160
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26161
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26162
+  (0.2ms) SAVEPOINT active_record_1
26163
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1078 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26164
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1078], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26165
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26166
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
26167
+ Parameters: {"ids"=>["1091"]}
26168
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1078 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1091'))
26169
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1078 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1091'))
26170
+ Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 1.2ms)
26171
+  (0.3ms) ROLLBACK
26172
+  (0.4ms) BEGIN
26173
+  (0.2ms) SAVEPOINT active_record_1
26174
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26175
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26176
+  (0.2ms) SAVEPOINT active_record_1
26177
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1079 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26178
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1079], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26179
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26180
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1079 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26181
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
26182
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
26183
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1079 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26184
+  (0.2ms) SAVEPOINT active_record_1
26185
+ 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" = 1079) LIMIT 1
26186
+ SQL (4.1ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1079], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26187
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26188
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1079 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26189
+ Completed 200 OK in 24ms (Views: 0.6ms | ActiveRecord: 6.3ms)
26190
+ NotifyUser::Unsubscribe Load (0.7ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1079 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26191
+  (0.3ms) ROLLBACK
26192
+  (0.2ms) BEGIN
26193
+  (0.2ms) SAVEPOINT active_record_1
26194
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26195
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26196
+  (0.2ms) SAVEPOINT active_record_1
26197
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1080 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26198
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1080], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26199
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26200
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1080 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26201
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
26202
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
26203
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1080 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26204
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1080 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26205
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.9ms)
26206
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1080 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26207
+  (0.2ms) ROLLBACK
26208
+  (0.2ms) BEGIN
26209
+  (0.3ms) SAVEPOINT active_record_1
26210
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26211
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26212
+  (0.2ms) SAVEPOINT active_record_1
26213
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1081 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26214
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1081], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26215
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26216
+ Processing by NotifyUser::NotificationsController#unsubscribe as HTML
26217
+ Parameters: {"type"=>"NewPostNotification"}
26218
+  (0.3ms) SAVEPOINT active_record_1
26219
+ 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" = 1081) LIMIT 1
26220
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1081], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26221
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26222
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
26223
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1081 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26224
+ Completed 302 Found in 8ms (ActiveRecord: 2.6ms)
26225
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
26226
+  (0.3ms) ROLLBACK
26227
+  (0.2ms) BEGIN
26228
+  (0.3ms) SAVEPOINT active_record_1
26229
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26230
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26231
+  (0.2ms) SAVEPOINT active_record_1
26232
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1082 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26233
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1082], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26234
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26235
+  (0.2ms) SAVEPOINT active_record_1
26236
+ 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" = 1082) LIMIT 1
26237
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1082], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26238
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26239
+ Processing by NotifyUser::NotificationsController#subscribe as HTML
26240
+ Parameters: {"type"=>"NewPostNotification"}
26241
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1082 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26242
+  (0.2ms) SAVEPOINT active_record_1
26243
+ SQL (0.6ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 248]]
26244
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26245
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
26246
+ Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
26247
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
26248
+  (0.2ms) ROLLBACK
26249
+  (0.2ms) BEGIN
26250
+  (0.2ms) SAVEPOINT active_record_1
26251
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26252
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26253
+  (0.2ms) SAVEPOINT active_record_1
26254
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1083 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26255
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1083], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26256
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26257
+ NotifyUser::UserHash Load (1.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1083 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
26258
+  (0.3ms) SAVEPOINT active_record_1
26259
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QnmyfqNw_RJIsUfjDjxmfwbEKaxKodredZSfaJkasANg' LIMIT 1
26260
+ SQL (2.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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1083], ["target_type", "User"], ["token", "QnmyfqNw_RJIsUfjDjxmfwbEKaxKodredZSfaJkasANg"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26261
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26262
+ Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
26263
+ Parameters: {"type"=>"NewPostNotification", "token"=>"QnmyfqNw_RJIsUfjDjxmfwbEKaxKodredZSfaJkasANg"}
26264
+ NotifyUser::UserHash Exists (0.8ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QnmyfqNw_RJIsUfjDjxmfwbEKaxKodredZSfaJkasANg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
26265
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QnmyfqNw_RJIsUfjDjxmfwbEKaxKodredZSfaJkasANg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
26266
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1083]]
26267
+  (0.2ms) SAVEPOINT active_record_1
26268
+ 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" = 1083) LIMIT 1
26269
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1083], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26270
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26271
+  (0.2ms) SAVEPOINT active_record_1
26272
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 298 [["active", false], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26273
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26274
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 4.3ms)
26275
+ NotifyUser::UserHash Load (0.4ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
26276
+  (0.3ms) ROLLBACK
26277
+  (0.2ms) BEGIN
26278
+ NotifyUser::UserHash Load (1.0ms) 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
26279
+  (0.3ms) SAVEPOINT active_record_1
26280
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
26281
+ 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
26282
+  (0.2ms) SAVEPOINT active_record_1
26283
+  (0.5ms) ROLLBACK TO SAVEPOINT active_record_1
26284
+  (0.3ms) ROLLBACK
26285
+  (0.3ms) BEGIN
26286
+ 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
26287
+  (0.2ms) SAVEPOINT active_record_1
26288
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
26289
+ 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
26290
+  (0.3ms) SAVEPOINT active_record_1
26291
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
26292
+  (0.2ms) ROLLBACK
26293
+  (0.2ms) BEGIN
26294
+ 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
26295
+  (0.2ms) SAVEPOINT active_record_1
26296
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
26297
+ NotifyUser::UserHash Load (1.0ms) 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
26298
+  (0.2ms) SAVEPOINT active_record_1
26299
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
26300
+  (0.2ms) ROLLBACK
26301
+  (0.2ms) BEGIN
26302
+  (0.2ms) SAVEPOINT active_record_1
26303
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26304
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26305
+  (0.2ms) SAVEPOINT active_record_1
26306
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1084 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26307
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1084], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26308
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26309
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1084 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
26310
+  (0.2ms) ROLLBACK
26311
+  (0.2ms) BEGIN
26312
+  (0.2ms) SAVEPOINT active_record_1
26313
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26314
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26315
+  (0.2ms) SAVEPOINT active_record_1
26316
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1085 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26317
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1085], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26318
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26319
+  (0.2ms) ROLLBACK
26320
+  (0.2ms) BEGIN
26321
+  (0.2ms) SAVEPOINT active_record_1
26322
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26323
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26324
+  (0.2ms) SAVEPOINT active_record_1
26325
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1086 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26326
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1086], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26327
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26328
+  (0.2ms) ROLLBACK
26329
+  (0.2ms) BEGIN
26330
+  (0.2ms) SAVEPOINT active_record_1
26331
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26332
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26333
+  (0.2ms) SAVEPOINT active_record_1
26334
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26335
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1087], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26336
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26337
+  (0.2ms) SAVEPOINT active_record_1
26338
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1087 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26339
+ 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" = 1100 [["params", {"listing_id"=>1}], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26341
+ 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
26342
+  (0.2ms) ROLLBACK
26343
+  (0.2ms) BEGIN
26344
+  (0.2ms) SAVEPOINT active_record_1
26345
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26346
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26347
+  (0.2ms) SAVEPOINT active_record_1
26348
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26349
+ SQL (1.0ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1088], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26350
+  (0.4ms) RELEASE SAVEPOINT active_record_1
26351
+  (0.3ms) SAVEPOINT active_record_1
26352
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1088 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26353
+ 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" = 1101 [["params", {"listing_id"=>1}], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26354
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26355
+ 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
26356
+  (0.2ms) ROLLBACK
26357
+  (0.2ms) BEGIN
26358
+  (0.2ms) SAVEPOINT active_record_1
26359
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26360
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26361
+  (0.2ms) SAVEPOINT active_record_1
26362
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1089 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26363
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1089], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26364
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26365
+  (0.2ms) SAVEPOINT active_record_1
26366
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1089 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26367
+ 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" = 1102 [["params", {:listing_id=>1}], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26368
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26369
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
26370
+  (0.2ms) ROLLBACK
26371
+  (0.2ms) BEGIN
26372
+  (0.2ms) SAVEPOINT active_record_1
26373
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26374
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26375
+  (0.2ms) SAVEPOINT active_record_1
26376
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1090 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26377
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1090], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26378
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26379
+  (0.2ms) SAVEPOINT active_record_1
26380
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1090 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26381
+ SQL (1.1ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1103 [["params", {:listing_id=>1}], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26382
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26383
+ 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
26384
+  (0.2ms) ROLLBACK
26385
+  (0.2ms) BEGIN
26386
+  (0.2ms) SAVEPOINT active_record_1
26387
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26388
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26389
+  (0.2ms) SAVEPOINT active_record_1
26390
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1091 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26391
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1091], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26392
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26393
+  (0.4ms) SAVEPOINT active_record_1
26394
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
26395
+  (0.4ms) ROLLBACK
26396
+  (0.2ms) BEGIN
26397
+  (0.3ms) SAVEPOINT active_record_1
26398
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26399
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26400
+  (0.2ms) SAVEPOINT active_record_1
26401
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1092 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26402
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1092], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26403
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26404
+  (0.3ms) SAVEPOINT active_record_1
26405
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1092 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26406
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26407
+  (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" = 1092 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1105)
26408
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1105]]
26409
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1092]]
26410
+ 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" = 1092 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
26411
+  (0.3ms) SAVEPOINT active_record_1
26412
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1092]]
26413
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1092 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26414
+ 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" = 1105 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26415
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26416
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26417
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1092]]
26418
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1092 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26419
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1105 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26420
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1092]]
26421
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1092 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
26422
+  (0.3ms) ROLLBACK
26423
+  (0.2ms) BEGIN
26424
+  (0.3ms) SAVEPOINT active_record_1
26425
+ SQL (1.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26426
+  (0.7ms) RELEASE SAVEPOINT active_record_1
26427
+  (0.4ms) SAVEPOINT active_record_1
26428
+  (0.9ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1093 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26429
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1093], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26430
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26431
+  (0.2ms) SAVEPOINT active_record_1
26432
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1093 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26433
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26434
+  (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" = 1093 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1106)
26435
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1106]]
26436
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1093]]
26437
+ 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" = 1093 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
26438
+  (0.3ms) SAVEPOINT active_record_1
26439
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1093]]
26440
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1093 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26441
+ 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" = 1106 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26442
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26443
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1106 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26444
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1093]]
26445
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1093 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26446
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1106 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26447
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1093]]
26448
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1093 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
26449
+  (0.3ms) ROLLBACK
26450
+  (0.2ms) BEGIN
26451
+  (0.3ms) SAVEPOINT active_record_1
26452
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26453
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26454
+  (0.2ms) SAVEPOINT active_record_1
26455
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1094 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26456
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1094], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26457
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26458
+  (0.2ms) SAVEPOINT active_record_1
26459
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1094 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26460
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26461
+  (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" = 1094 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1107)
26462
+  (0.5ms) SAVEPOINT active_record_1
26463
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1094 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26464
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1094], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26466
+  (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" = 1094 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1108)
26467
+  (0.2ms) ROLLBACK
26468
+  (0.2ms) BEGIN
26469
+  (0.2ms) SAVEPOINT active_record_1
26470
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26471
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26472
+  (0.2ms) SAVEPOINT active_record_1
26473
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26474
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1095], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26475
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26476
+  (0.2ms) SAVEPOINT active_record_1
26477
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26478
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1095], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26479
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26480
+ 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", 1110]]
26481
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1095]]
26482
+ 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" = 1095 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
26483
+  (0.2ms) SAVEPOINT active_record_1
26484
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1095]]
26485
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26486
+ 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" = 1109 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26487
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26488
+  (0.3ms) SAVEPOINT active_record_1
26489
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1095]]
26490
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26491
+ 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" = 1110 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26492
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26493
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1095 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26494
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1095 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
26495
+  (0.2ms) SAVEPOINT active_record_1
26496
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5IwXdst4KoIxJQQDbeqN6Qu1muOl_lidq6VCaAWdTZLg' LIMIT 1
26497
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1095], ["target_type", "User"], ["token", "5IwXdst4KoIxJQQDbeqN6Qu1muOl_lidq6VCaAWdTZLg"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26498
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26499
+
26500
+ Sent mail to user@example.com (14.0ms)
26501
+ Date: Tue, 28 Oct 2014 11:40:59 +1100
26502
+ From: please-change-me-at-config-initializers-notify-user@example.com
26503
+ To: user@example.com
26504
+ Message-ID: <544ee61b8b8ae_43d83fed85865be814310@wp.local.mail>
26505
+ Subject: Rails404: You have new Newpostnotification notifications.
26506
+ Mime-Version: 1.0
26507
+ Content-Type: text/html;
26508
+ charset=UTF-8
26509
+ Content-Transfer-Encoding: quoted-printable
26510
+
26511
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
26512
+ tml4/strict.dtd">
26513
+ <html>
26514
+ <head>
26515
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
26516
+ "/>
26517
+ <title></title>
26518
+ </head>
26519
+
26520
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
26521
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
26522
+ ing: optimizeLegibility;">
26523
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
26524
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
26525
+ Logo
26526
+ </div>
26527
+ </div>
26528
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
26529
+ ">
26530
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
26531
+ =
26532
+
26533
+ <div>
26534
+ New Post Notification happened. =
26535
+
26536
+ </div>
26537
+ <div>
26538
+ New Post Notification happened. =
26539
+
26540
+ </div>
26541
+
26542
+ </div>
26543
+ </div>
26544
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
26545
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
26546
+ <p style=3D"text-align: center;">
26547
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
26548
+ _unsubscribe?token=3D5IwXdst4KoIxJQQDbeqN6Qu1muOl_lidq6VCaAWdTZLg&amp;typ=
26549
+ e=3DNewPostNotification">Unsubscribe</a>
26550
+ </p>
26551
+ <p style=3D"text-align: center;">
26552
+ This is the default generated layout. A privacy declaration could g=
26553
+ o here.
26554
+ </p>
26555
+ <p style=3D"text-align: center; margin-bottom: 0px;">
26556
+ =C2=A9 MyCompany Pty Ltd
26557
+ </p>
26558
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
26559
+ ABN 123 456 789
26560
+ </p>
26561
+ </div>
26562
+ </div>
26563
+ </body>
26564
+ </html>=
26565
+
26566
+  (0.5ms) ROLLBACK
26567
+  (0.2ms) BEGIN
26568
+  (0.2ms) SAVEPOINT active_record_1
26569
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26570
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26571
+  (0.2ms) SAVEPOINT active_record_1
26572
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1096 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26573
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1096], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26574
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26575
+ 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", 1111]]
26576
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1096]]
26577
+ NewPostNotification Load (0.9ms) 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" = 1096 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
26578
+  (0.2ms) SAVEPOINT active_record_1
26579
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1096]]
26580
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1096 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26581
+ 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" = 1111 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26582
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26583
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1111 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26584
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1096]]
26585
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1096 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26586
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1096 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
26587
+  (0.2ms) SAVEPOINT active_record_1
26588
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DxIo8qgB1mkoHdRX5XwduQALpCnQEjUZTX07ed5AIkvA' LIMIT 1
26589
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1096], ["target_type", "User"], ["token", "DxIo8qgB1mkoHdRX5XwduQALpCnQEjUZTX07ed5AIkvA"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26590
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26591
+
26592
+ Sent mail to user@example.com (6.7ms)
26593
+ Date: Tue, 28 Oct 2014 11:40:59 +1100
26594
+ From: please-change-me-at-config-initializers-notify-user@example.com
26595
+ To: user@example.com
26596
+ Message-ID: <544ee61b9871a_43d83fed85865be8144f3@wp.local.mail>
26597
+ Subject: Rails404: You have a new Newpostnotification notification.
26598
+ Mime-Version: 1.0
26599
+ Content-Type: text/html;
26600
+ charset=UTF-8
26601
+ Content-Transfer-Encoding: quoted-printable
26602
+
26603
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
26604
+ tml4/strict.dtd">
26605
+ <html>
26606
+ <head>
26607
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
26608
+ "/>
26609
+ <title></title>
26610
+ </head>
26611
+
26612
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
26613
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
26614
+ ing: optimizeLegibility;">
26615
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
26616
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
26617
+ Logo
26618
+ </div>
26619
+ </div>
26620
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
26621
+ ">
26622
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
26623
+ New Post Notification happened.
26624
+
26625
+ </div>
26626
+ </div>
26627
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
26628
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
26629
+ <p style=3D"text-align: center;">
26630
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
26631
+ _unsubscribe?token=3DDxIo8qgB1mkoHdRX5XwduQALpCnQEjUZTX07ed5AIkvA&amp;typ=
26632
+ e=3DNewPostNotification">Unsubscribe</a>
26633
+ </p>
26634
+ <p style=3D"text-align: center;">
26635
+ This is the default generated layout. A privacy declaration could g=
26636
+ o here.
26637
+ </p>
26638
+ <p style=3D"text-align: center; margin-bottom: 0px;">
26639
+ =C2=A9 MyCompany Pty Ltd
26640
+ </p>
26641
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
26642
+ ABN 123 456 789
26643
+ </p>
26644
+ </div>
26645
+ </div>
26646
+ </body>
26647
+ </html>=
26648
+
26649
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1096 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
26650
+  (0.3ms) ROLLBACK
26651
+  (0.2ms) BEGIN
26652
+  (0.3ms) SAVEPOINT active_record_1
26653
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26654
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26655
+  (0.2ms) SAVEPOINT active_record_1
26656
+ 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" = 1097) LIMIT 1
26657
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1097], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26658
+  (0.4ms) RELEASE SAVEPOINT active_record_1
26659
+  (0.4ms) SAVEPOINT active_record_1
26660
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1097 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26661
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
26662
+ 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
26663
+  (0.3ms) ROLLBACK
26664
+  (0.3ms) BEGIN
26665
+  (0.2ms) SAVEPOINT active_record_1
26666
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26667
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26668
+  (0.2ms) SAVEPOINT active_record_1
26669
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1098 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26670
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1098], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26671
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26672
+ NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1112 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26673
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1098]]
26674
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1098 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26675
+  (0.2ms) ROLLBACK
26676
+  (0.2ms) BEGIN
26677
+  (0.3ms) SAVEPOINT active_record_1
26678
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26679
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26680
+  (0.3ms) SAVEPOINT active_record_1
26681
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26682
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1099], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26683
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26684
+  (0.4ms) SAVEPOINT active_record_1
26685
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26686
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1099], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26687
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26688
+ 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", 1114]]
26689
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1099]]
26690
+ 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" = 1099 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
26691
+  (0.2ms) SAVEPOINT active_record_1
26692
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1099]]
26693
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26694
+ 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" = 1113 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26695
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26696
+  (0.2ms) SAVEPOINT active_record_1
26697
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1099]]
26698
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26699
+ 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" = 1114 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26700
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26701
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1099 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26702
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1099 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
26703
+  (0.2ms) SAVEPOINT active_record_1
26704
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mmsbBy0Kt7AgxRIg7yvQtgnVseD3hc6VLu6tJJhjzkug' LIMIT 1
26705
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1099], ["target_type", "User"], ["token", "mmsbBy0Kt7AgxRIg7yvQtgnVseD3hc6VLu6tJJhjzkug"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26706
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26707
+
26708
+ Sent mail to user@example.com (6.6ms)
26709
+ Date: Tue, 28 Oct 2014 11:40:59 +1100
26710
+ From: please-change-me-at-config-initializers-notify-user@example.com
26711
+ To: user@example.com
26712
+ Message-ID: <544ee61bae8df_43d83fed85865be814571@wp.local.mail>
26713
+ Subject: Rails404: You have new Newpostnotification notifications.
26714
+ Mime-Version: 1.0
26715
+ Content-Type: text/html;
26716
+ charset=UTF-8
26717
+ Content-Transfer-Encoding: quoted-printable
26718
+
26719
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
26720
+ tml4/strict.dtd">
26721
+ <html>
26722
+ <head>
26723
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
26724
+ "/>
26725
+ <title></title>
26726
+ </head>
26727
+
26728
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
26729
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
26730
+ ing: optimizeLegibility;">
26731
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
26732
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
26733
+ Logo
26734
+ </div>
26735
+ </div>
26736
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
26737
+ ">
26738
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
26739
+ =
26740
+
26741
+ <div>
26742
+ New Post Notification happened. =
26743
+
26744
+ </div>
26745
+ <div>
26746
+ New Post Notification happened. =
26747
+
26748
+ </div>
26749
+
26750
+ </div>
26751
+ </div>
26752
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
26753
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
26754
+ <p style=3D"text-align: center;">
26755
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
26756
+ _unsubscribe?token=3DmmsbBy0Kt7AgxRIg7yvQtgnVseD3hc6VLu6tJJhjzkug&amp;typ=
26757
+ e=3DNewPostNotification">Unsubscribe</a>
26758
+ </p>
26759
+ <p style=3D"text-align: center;">
26760
+ This is the default generated layout. A privacy declaration could g=
26761
+ o here.
26762
+ </p>
26763
+ <p style=3D"text-align: center; margin-bottom: 0px;">
26764
+ =C2=A9 MyCompany Pty Ltd
26765
+ </p>
26766
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
26767
+ ABN 123 456 789
26768
+ </p>
26769
+ </div>
26770
+ </div>
26771
+ </body>
26772
+ </html>=
26773
+
26774
+  (0.3ms) ROLLBACK
26775
+  (0.2ms) BEGIN
26776
+  (0.2ms) SAVEPOINT active_record_1
26777
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26778
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26779
+  (0.2ms) SAVEPOINT active_record_1
26780
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26781
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1100], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26782
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26783
+ 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", 1115]]
26784
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1100]]
26785
+ 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" = 1100 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
26786
+  (0.2ms) SAVEPOINT active_record_1
26787
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1100]]
26788
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26789
+ 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" = 1115 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26790
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26791
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1115 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26792
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1100]]
26793
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1100 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26794
+ NotifyUser::UserHash Load (0.9ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1100 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
26795
+  (0.3ms) SAVEPOINT active_record_1
26796
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8iCa72G7GO-5UInz_K1fzAWMoHR_lBJYwIZVx4LB59kw' LIMIT 1
26797
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1100], ["target_type", "User"], ["token", "8iCa72G7GO-5UInz_K1fzAWMoHR_lBJYwIZVx4LB59kw"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26798
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26799
+
26800
+ Sent mail to user@example.com (6.9ms)
26801
+ Date: Tue, 28 Oct 2014 11:40:59 +1100
26802
+ From: please-change-me-at-config-initializers-notify-user@example.com
26803
+ To: user@example.com
26804
+ Message-ID: <544ee61bb90b0_43d83fed85865be8146fc@wp.local.mail>
26805
+ Subject: Rails404: You have a new Newpostnotification notification.
26806
+ Mime-Version: 1.0
26807
+ Content-Type: text/html;
26808
+ charset=UTF-8
26809
+ Content-Transfer-Encoding: quoted-printable
26810
+
26811
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
26812
+ tml4/strict.dtd">
26813
+ <html>
26814
+ <head>
26815
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
26816
+ "/>
26817
+ <title></title>
26818
+ </head>
26819
+
26820
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
26821
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
26822
+ ing: optimizeLegibility;">
26823
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
26824
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
26825
+ Logo
26826
+ </div>
26827
+ </div>
26828
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
26829
+ ">
26830
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
26831
+ New Post Notification happened.
26832
+
26833
+ </div>
26834
+ </div>
26835
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
26836
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
26837
+ <p style=3D"text-align: center;">
26838
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
26839
+ _unsubscribe?token=3D8iCa72G7GO-5UInz_K1fzAWMoHR_lBJYwIZVx4LB59kw&amp;typ=
26840
+ e=3DNewPostNotification">Unsubscribe</a>
26841
+ </p>
26842
+ <p style=3D"text-align: center;">
26843
+ This is the default generated layout. A privacy declaration could g=
26844
+ o here.
26845
+ </p>
26846
+ <p style=3D"text-align: center; margin-bottom: 0px;">
26847
+ =C2=A9 MyCompany Pty Ltd
26848
+ </p>
26849
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
26850
+ ABN 123 456 789
26851
+ </p>
26852
+ </div>
26853
+ </div>
26854
+ </body>
26855
+ </html>=
26856
+
26857
+  (0.3ms) ROLLBACK
26858
+  (0.2ms) BEGIN
26859
+  (0.2ms) SAVEPOINT active_record_1
26860
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26861
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26862
+  (0.2ms) SAVEPOINT active_record_1
26863
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26864
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1101], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26865
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26866
+  (0.2ms) SAVEPOINT active_record_1
26867
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26868
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26869
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26870
+  (0.3ms) SAVEPOINT active_record_1
26871
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26872
+ 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" = 1116 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26873
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26874
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1116 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26875
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1101]]
26876
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26877
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1101 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
26878
+  (0.3ms) ROLLBACK
26879
+  (0.2ms) BEGIN
26880
+  (0.3ms) SAVEPOINT active_record_1
26881
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26882
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26883
+  (0.2ms) SAVEPOINT active_record_1
26884
+ 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" = 1102) LIMIT 1
26885
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1102], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26886
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26887
+  (0.2ms) SAVEPOINT active_record_1
26888
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26889
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
26890
+  (0.2ms) SAVEPOINT active_record_1
26891
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26892
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
26893
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1102 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26894
+  (0.2ms) ROLLBACK
26895
+  (0.2ms) BEGIN
26896
+  (0.2ms) SAVEPOINT active_record_1
26897
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26898
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26899
+  (0.2ms) SAVEPOINT active_record_1
26900
+ 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" = 1103) LIMIT 1
26901
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1103], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26902
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26903
+  (0.2ms) SAVEPOINT active_record_1
26904
+ 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" != 252 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1103) LIMIT 1
26905
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26906
+  (0.2ms) SAVEPOINT active_record_1
26907
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26908
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1103], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26909
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26910
+  (0.2ms) SAVEPOINT active_record_1
26911
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26912
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26913
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26914
+  (0.2ms) SAVEPOINT active_record_1
26915
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26916
+ 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" = 1117 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26917
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26918
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1117 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
26919
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1103]]
26920
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
26921
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1103 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
26922
+  (0.3ms) ROLLBACK
26923
+  (0.2ms) BEGIN
26924
+  (0.2ms) SAVEPOINT active_record_1
26925
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26926
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26927
+  (0.2ms) SAVEPOINT active_record_1
26928
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1104 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26929
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1104], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26930
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26931
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1104 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
26932
+  (0.2ms) SAVEPOINT active_record_1
26933
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '1NBQYgzIxVE23vdF-PKv3wypqBBiZUQ-3c-McjPwyZ2g' LIMIT 1
26934
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1104], ["target_type", "User"], ["token", "1NBQYgzIxVE23vdF-PKv3wypqBBiZUQ-3c-McjPwyZ2g"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26935
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26936
+  (0.2ms) ROLLBACK
26937
+  (0.2ms) BEGIN
26938
+  (0.2ms) SAVEPOINT active_record_1
26939
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26940
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26941
+  (0.2ms) SAVEPOINT active_record_1
26942
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1105 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26943
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1105], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26944
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26945
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1105 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
26946
+  (0.2ms) SAVEPOINT active_record_1
26947
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'QV7yVQA40uDyjW_mmJtn2AVNj6gA7P8L2EJOozsNghmQ' LIMIT 1
26948
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1105], ["target_type", "User"], ["token", "QV7yVQA40uDyjW_mmJtn2AVNj6gA7P8L2EJOozsNghmQ"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26949
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26950
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1105 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
26951
+  (0.3ms) ROLLBACK
26952
+  (0.2ms) BEGIN
26953
+  (0.2ms) SAVEPOINT active_record_1
26954
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26955
+  (0.3ms) RELEASE SAVEPOINT active_record_1
26956
+  (0.4ms) SAVEPOINT active_record_1
26957
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1106 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26958
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["state", "pending"], ["target_id", 1106], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26959
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26960
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1106 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
26961
+  (0.2ms) SAVEPOINT active_record_1
26962
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'vxFwExSZktfA_KLOhU4LdAPIUsFEUpviMOtVB4WA1Atg' LIMIT 1
26963
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1106], ["target_type", "User"], ["token", "vxFwExSZktfA_KLOhU4LdAPIUsFEUpviMOtVB4WA1Atg"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26964
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26965
+  (0.2ms) SAVEPOINT active_record_1
26966
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 305 [["active", false], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26967
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26968
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1106 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
26969
+  (0.2ms) SAVEPOINT active_record_1
26970
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Urz-7tjj9oj5mhAOfEe8-Qez9eVhFpcLZwSUdBU2N7mA' LIMIT 1
26971
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1106], ["target_type", "User"], ["token", "Urz-7tjj9oj5mhAOfEe8-Qez9eVhFpcLZwSUdBU2N7mA"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26972
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26973
+  (0.2ms) ROLLBACK
26974
+  (0.2ms) BEGIN
26975
+  (0.3ms) SAVEPOINT active_record_1
26976
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26977
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26978
+  (0.2ms) SAVEPOINT active_record_1
26979
+ 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" = 1107) LIMIT 1
26980
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1107], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26981
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26982
+  (0.2ms) SAVEPOINT active_record_1
26983
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 253 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1107) LIMIT 1
26984
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26985
+  (0.3ms) SAVEPOINT active_record_1
26986
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1107 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
26987
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
26988
+  (0.3ms) ROLLBACK
26989
+  (0.2ms) BEGIN
26990
+  (0.3ms) SAVEPOINT active_record_1
26991
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26992
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26993
+  (0.2ms) SAVEPOINT active_record_1
26994
+ 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" = 1108) LIMIT 1
26995
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1108], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
26996
+  (0.2ms) RELEASE SAVEPOINT active_record_1
26997
+  (0.2ms) SAVEPOINT active_record_1
26998
+ NotifyUser::Unsubscribe Exists (1.0ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 254 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1108) LIMIT 1
26999
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27000
+  (0.2ms) SAVEPOINT active_record_1
27001
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1108 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27002
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
27003
+  (0.2ms) ROLLBACK
27004
+  (0.2ms) BEGIN
27005
+  (0.2ms) SAVEPOINT active_record_1
27006
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27007
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27008
+  (0.2ms) SAVEPOINT active_record_1
27009
+ 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" = 1109) LIMIT 1
27010
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1109], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27011
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27012
+  (0.2ms) SAVEPOINT active_record_1
27013
+ NotifyUser::Unsubscribe Exists (0.8ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 255 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1109) LIMIT 1
27014
+  (0.7ms) RELEASE SAVEPOINT active_record_1
27015
+  (0.3ms) SAVEPOINT active_record_1
27016
+ 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" = 1109) LIMIT 1
27017
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
27018
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27019
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27020
+  (0.2ms) SAVEPOINT active_record_1
27021
+ SQL (0.4ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 255]]
27022
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27023
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1109 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27024
+  (0.7ms) ROLLBACK
27025
+  (0.2ms) BEGIN
27026
+  (0.2ms) SAVEPOINT active_record_1
27027
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27028
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27029
+  (0.2ms) SAVEPOINT active_record_1
27030
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1110 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27031
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1110], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27032
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27033
+  (0.2ms) ROLLBACK
27034
+  (0.2ms) BEGIN
27035
+  (0.2ms) SAVEPOINT active_record_1
27036
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27037
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27038
+  (0.2ms) SAVEPOINT active_record_1
27039
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ApvwwKiTZyahacTWpjvjlAVtpZVfjQAxiS3IZ3VlrZAQ' LIMIT 1
27040
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1111], ["target_type", "User"], ["token", "ApvwwKiTZyahacTWpjvjlAVtpZVfjQAxiS3IZ3VlrZAQ"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27041
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27042
+  (0.2ms) SAVEPOINT active_record_1
27043
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27044
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ApvwwKiTZyahacTWpjvjlAVtpZVfjQAxiS3IZ3VlrZAQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
27045
+  (0.4ms) ROLLBACK
27046
+  (0.2ms) BEGIN
27047
+  (0.2ms) SAVEPOINT active_record_1
27048
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27049
+  (0.5ms) RELEASE SAVEPOINT active_record_1
27050
+  (0.3ms) SAVEPOINT active_record_1
27051
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'SRW5GWbp0Xk8z0Xi-cC2HABzH0U_d0_SSSSNmrtMcpjw' LIMIT 1
27052
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1112], ["target_type", "User"], ["token", "SRW5GWbp0Xk8z0Xi-cC2HABzH0U_d0_SSSSNmrtMcpjw"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27053
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27054
+  (0.2ms) SAVEPOINT active_record_1
27055
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27056
+  (0.2ms) SAVEPOINT active_record_1
27057
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 308 [["active", false], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27058
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27059
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'SRW5GWbp0Xk8z0Xi-cC2HABzH0U_d0_SSSSNmrtMcpjw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
27060
+  (0.2ms) ROLLBACK
27061
+  (0.2ms) BEGIN
27062
+  (0.3ms) SAVEPOINT active_record_1
27063
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27064
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27065
+  (0.2ms) SAVEPOINT active_record_1
27066
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Gh0fQKTfCi9H8MAt6vmAgA6VxgRQTK1ozOl7IQAWQEYw' LIMIT 1
27067
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1113], ["target_type", "User"], ["token", "Gh0fQKTfCi9H8MAt6vmAgA6VxgRQTK1ozOl7IQAWQEYw"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27068
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27069
+  (0.2ms) SAVEPOINT active_record_1
27070
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27071
+  (0.2ms) SAVEPOINT active_record_1
27072
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 309 [["active", false], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27073
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27074
+  (0.2ms) ROLLBACK
27075
+  (0.2ms) BEGIN
27076
+  (0.2ms) SAVEPOINT active_record_1
27077
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27078
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27079
+  (0.2ms) SAVEPOINT active_record_1
27080
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'TTUfZJQ-UeJcjYsZc9esMwf_yIuKXPaWk1IHcL0fECzg' LIMIT 1
27081
+ 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", Tue, 28 Oct 2014 00:40:59 UTC +00:00], ["target_id", 1114], ["target_type", "User"], ["token", "TTUfZJQ-UeJcjYsZc9esMwf_yIuKXPaWk1IHcL0fECzg"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 00:40:59 UTC +00:00]]
27082
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27083
+  (0.2ms) SAVEPOINT active_record_1
27084
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27085
+  (0.2ms) ROLLBACK
27086
+  (0.2ms) BEGIN
27087
+  (0.2ms) ROLLBACK
27088
+  (0.2ms) BEGIN
27089
+  (0.2ms) ROLLBACK
27090
+  (0.1ms) BEGIN
27091
+  (0.2ms) ROLLBACK
27092
+  (0.2ms) BEGIN
27093
+  (0.2ms) ROLLBACK
27094
+  (0.2ms) BEGIN
27095
+  (0.1ms) ROLLBACK
27096
+  (0.1ms) BEGIN
27097
+  (0.2ms) ROLLBACK
27098
+  (0.2ms) BEGIN
27099
+  (0.1ms) ROLLBACK
27100
+  (1.5ms) BEGIN
27101
+  (1.0ms) SAVEPOINT active_record_1
27102
+ SQL (18.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:26 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:26 UTC +00:00]]
27103
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27104
+ Processing by NotifyUser::NotificationsController#index as HTML
27105
+ Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
27106
+ Completed 200 OK in 14ms (Views: 11.0ms | ActiveRecord: 0.0ms)
27107
+  (0.4ms) ROLLBACK
27108
+  (0.2ms) BEGIN
27109
+  (0.2ms) SAVEPOINT active_record_1
27110
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27111
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27112
+  (0.4ms) SAVEPOINT active_record_1
27113
+  (1.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1116 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27114
+ SQL (2.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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1116], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27115
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27116
+ Processing by NotifyUser::NotificationsController#index as JSON
27117
+  (1.5ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1116 AND "notify_user_notifications"."target_type" = 'User'
27118
+ NotifyUser::BaseNotification Load (3.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1116 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
27119
+ Completed 200 OK in 24ms (Views: 11.7ms | ActiveRecord: 4.9ms)
27120
+  (0.4ms) ROLLBACK
27121
+  (0.2ms) BEGIN
27122
+  (0.2ms) SAVEPOINT active_record_1
27123
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27124
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27125
+  (0.2ms) SAVEPOINT active_record_1
27126
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1117 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27127
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27128
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27129
+  (0.2ms) SAVEPOINT active_record_1
27130
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1117 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27131
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27132
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27133
+  (0.3ms) SAVEPOINT active_record_1
27134
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1117 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27135
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1117], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27136
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27137
+ Processing by NotifyUser::NotificationsController#index as HTML
27138
+ NotifyUser::BaseNotification Load (1.2ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1117 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
27139
+ Completed 200 OK in 74ms (Views: 71.5ms | ActiveRecord: 1.2ms)
27140
+  (0.4ms) ROLLBACK
27141
+  (0.3ms) BEGIN
27142
+  (0.3ms) SAVEPOINT active_record_1
27143
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27144
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27145
+  (0.3ms) SAVEPOINT active_record_1
27146
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27147
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27148
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27149
+  (0.2ms) SAVEPOINT active_record_1
27150
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27151
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27152
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27153
+  (0.2ms) SAVEPOINT active_record_1
27154
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27155
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1118], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27156
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27157
+ Processing by NotifyUser::NotificationsController#read as HTML
27158
+ Parameters: {"id"=>"1126"}
27159
+ NotifyUser::BaseNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1118 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1126') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27160
+  (0.2ms) SAVEPOINT active_record_1
27161
+ User Load (1.0ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1118]]
27162
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1118 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27163
+ SQL (3.3ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1126 [["state", "read"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27164
+  (0.5ms) RELEASE SAVEPOINT active_record_1
27165
+ Completed 200 OK in 26ms (Views: 2.3ms | ActiveRecord: 6.5ms)
27166
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1126 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27167
+  (0.4ms) ROLLBACK
27168
+  (0.3ms) BEGIN
27169
+  (0.3ms) SAVEPOINT active_record_1
27170
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27171
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27172
+  (0.2ms) SAVEPOINT active_record_1
27173
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27174
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27175
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27176
+  (0.2ms) SAVEPOINT active_record_1
27177
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27178
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27179
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27180
+  (0.3ms) SAVEPOINT active_record_1
27181
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27182
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1119], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27183
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27184
+ Processing by NotifyUser::NotificationsController#read as HTML
27185
+ Parameters: {"id"=>"1129"}
27186
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1119 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1129') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27187
+  (0.2ms) SAVEPOINT active_record_1
27188
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1119]]
27189
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1119 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27190
+ 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" = 1129 [["state", "read"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27191
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27192
+ Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 2.6ms)
27193
+ Processing by NotifyUser::NotificationsController#read as HTML
27194
+ Parameters: {"id"=>"1129"}
27195
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1119 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1129') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27196
+ Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.1ms)
27197
+  (0.4ms) ROLLBACK
27198
+  (0.2ms) BEGIN
27199
+  (0.2ms) SAVEPOINT active_record_1
27200
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27201
+  (0.4ms) RELEASE SAVEPOINT active_record_1
27202
+  (0.2ms) SAVEPOINT active_record_1
27203
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1120 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27204
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1120], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27205
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27206
+  (0.2ms) SAVEPOINT active_record_1
27207
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1120 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27208
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1120], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27209
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27210
+  (0.2ms) SAVEPOINT active_record_1
27211
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1120 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27212
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1120], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27213
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27214
+ Processing by NotifyUser::NotificationsController#mark_all as HTML
27215
+ SQL (1.1ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1120 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
27216
+ Redirected to http://test.host/notify_user/notifications
27217
+ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
27218
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1120 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
27219
+  (0.3ms) ROLLBACK
27220
+  (0.3ms) BEGIN
27221
+  (0.2ms) SAVEPOINT active_record_1
27222
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27223
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27224
+  (0.2ms) SAVEPOINT active_record_1
27225
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1121 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27226
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1121], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27227
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27228
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
27229
+ Parameters: {"ids"=>["1135"]}
27230
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1121 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1135'))
27231
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1121 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1135'))
27232
+ Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 1.2ms)
27233
+ 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", 1135]]
27234
+  (0.4ms) ROLLBACK
27235
+  (0.1ms) BEGIN
27236
+  (0.2ms) SAVEPOINT active_record_1
27237
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27238
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27239
+  (0.2ms) SAVEPOINT active_record_1
27240
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1122 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27241
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1122], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27242
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27243
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
27244
+ Parameters: {"ids"=>["1136"]}
27245
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1122 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1136'))
27246
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1122 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1136'))
27247
+ Completed 200 OK in 5ms (Views: 2.3ms | ActiveRecord: 1.4ms)
27248
+  (0.3ms) ROLLBACK
27249
+  (0.2ms) BEGIN
27250
+  (0.2ms) SAVEPOINT active_record_1
27251
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27252
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27253
+  (0.2ms) SAVEPOINT active_record_1
27254
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1123 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27255
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1123], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27256
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27257
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1123 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27258
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
27259
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
27260
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1123 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27261
+  (0.2ms) SAVEPOINT active_record_1
27262
+ NotifyUser::Unsubscribe Exists (0.9ms) 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" = 1123) LIMIT 1
27263
+ SQL (1.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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1123], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27264
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27265
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1123 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27266
+ Completed 200 OK in 24ms (Views: 0.5ms | ActiveRecord: 3.9ms)
27267
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1123 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27268
+  (0.3ms) ROLLBACK
27269
+  (0.2ms) BEGIN
27270
+  (0.2ms) SAVEPOINT active_record_1
27271
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27272
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27273
+  (0.2ms) SAVEPOINT active_record_1
27274
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1124 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27275
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1124], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27276
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27277
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1124 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27278
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
27279
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
27280
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1124 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27281
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1124 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27282
+ Completed 200 OK in 4ms (Views: 0.4ms | ActiveRecord: 1.0ms)
27283
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1124 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27284
+  (0.2ms) ROLLBACK
27285
+  (0.2ms) BEGIN
27286
+  (0.2ms) SAVEPOINT active_record_1
27287
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27288
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27289
+  (0.2ms) SAVEPOINT active_record_1
27290
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1125 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27291
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1125], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27292
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27293
+ Processing by NotifyUser::NotificationsController#unsubscribe as HTML
27294
+ Parameters: {"type"=>"NewPostNotification"}
27295
+  (0.3ms) SAVEPOINT active_record_1
27296
+ 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" = 1125) LIMIT 1
27297
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1125], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27298
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27299
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
27300
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1125 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27301
+ Completed 302 Found in 8ms (ActiveRecord: 2.3ms)
27302
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
27303
+  (0.2ms) ROLLBACK
27304
+  (0.2ms) BEGIN
27305
+  (0.2ms) SAVEPOINT active_record_1
27306
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27307
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27308
+  (0.2ms) SAVEPOINT active_record_1
27309
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1126 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27310
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1126], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27311
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27312
+  (0.3ms) SAVEPOINT active_record_1
27313
+ 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" = 1126) LIMIT 1
27314
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1126], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27315
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27316
+ Processing by NotifyUser::NotificationsController#subscribe as HTML
27317
+ Parameters: {"type"=>"NewPostNotification"}
27318
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1126 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27319
+  (0.2ms) SAVEPOINT active_record_1
27320
+ SQL (0.7ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 258]]
27321
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27322
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
27323
+ Completed 302 Found in 5ms (ActiveRecord: 1.7ms)
27324
+ NotifyUser::Unsubscribe Load (0.4ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
27325
+  (0.2ms) ROLLBACK
27326
+  (0.2ms) BEGIN
27327
+  (0.3ms) SAVEPOINT active_record_1
27328
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27329
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27330
+  (0.2ms) SAVEPOINT active_record_1
27331
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1127 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27332
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1127], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27333
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27334
+ NotifyUser::UserHash Load (0.9ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1127 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
27335
+  (0.3ms) SAVEPOINT active_record_1
27336
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ftcbmEaxjsUOfjkku1f8Sgwq-UCQTLQcBOju5Ki87Xgg' LIMIT 1
27337
+ SQL (1.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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1127], ["target_type", "User"], ["token", "ftcbmEaxjsUOfjkku1f8Sgwq-UCQTLQcBOju5Ki87Xgg"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27338
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27339
+ Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
27340
+ Parameters: {"type"=>"NewPostNotification", "token"=>"ftcbmEaxjsUOfjkku1f8Sgwq-UCQTLQcBOju5Ki87Xgg"}
27341
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ftcbmEaxjsUOfjkku1f8Sgwq-UCQTLQcBOju5Ki87Xgg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
27342
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'ftcbmEaxjsUOfjkku1f8Sgwq-UCQTLQcBOju5Ki87Xgg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
27343
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1127]]
27344
+  (0.2ms) SAVEPOINT active_record_1
27345
+ 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" = 1127) LIMIT 1
27346
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1127], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27347
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27348
+  (0.2ms) SAVEPOINT active_record_1
27349
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 311 [["active", false], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27350
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27351
+ Completed 200 OK in 12ms (Views: 0.4ms | ActiveRecord: 4.2ms)
27352
+ 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
27353
+  (0.3ms) ROLLBACK
27354
+  (0.2ms) BEGIN
27355
+ 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
27356
+  (0.3ms) SAVEPOINT active_record_1
27357
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
27358
+ 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
27359
+  (0.3ms) SAVEPOINT active_record_1
27360
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
27361
+  (0.3ms) ROLLBACK
27362
+  (0.2ms) BEGIN
27363
+ 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
27364
+  (0.2ms) SAVEPOINT active_record_1
27365
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
27366
+ 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
27367
+  (0.3ms) SAVEPOINT active_record_1
27368
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
27369
+  (0.2ms) ROLLBACK
27370
+  (0.2ms) BEGIN
27371
+ 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
27372
+  (0.2ms) SAVEPOINT active_record_1
27373
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
27374
+ 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
27375
+  (0.2ms) SAVEPOINT active_record_1
27376
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
27377
+  (0.2ms) ROLLBACK
27378
+  (0.2ms) BEGIN
27379
+  (0.2ms) SAVEPOINT active_record_1
27380
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27381
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27382
+  (0.2ms) SAVEPOINT active_record_1
27383
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1128 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27384
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1128], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27385
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27386
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1128 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
27387
+  (0.2ms) ROLLBACK
27388
+  (0.2ms) BEGIN
27389
+  (0.2ms) SAVEPOINT active_record_1
27390
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27391
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27392
+  (0.2ms) SAVEPOINT active_record_1
27393
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1129 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27394
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1129], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27395
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27396
+  (0.2ms) ROLLBACK
27397
+  (0.2ms) BEGIN
27398
+  (0.2ms) SAVEPOINT active_record_1
27399
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27400
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27401
+  (0.2ms) SAVEPOINT active_record_1
27402
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1130 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27403
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1130], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27404
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27405
+  (0.3ms) ROLLBACK
27406
+  (0.2ms) BEGIN
27407
+  (0.2ms) SAVEPOINT active_record_1
27408
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27409
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27410
+  (0.2ms) SAVEPOINT active_record_1
27411
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1131 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27412
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1131], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27413
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27414
+  (0.2ms) SAVEPOINT active_record_1
27415
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1131 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27416
+ 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" = 1145 [["params", {"listing_id"=>1}], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27417
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27418
+ 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
27419
+  (0.2ms) ROLLBACK
27420
+  (0.2ms) BEGIN
27421
+  (0.2ms) SAVEPOINT active_record_1
27422
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27423
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27424
+  (0.2ms) SAVEPOINT active_record_1
27425
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1132 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27426
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1132], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27427
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27428
+  (0.2ms) SAVEPOINT active_record_1
27429
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1132 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27430
+ 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" = 1146 [["params", {"listing_id"=>1}], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27431
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27432
+ 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
27433
+  (0.3ms) ROLLBACK
27434
+  (0.2ms) BEGIN
27435
+  (0.2ms) SAVEPOINT active_record_1
27436
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27437
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27438
+  (0.2ms) SAVEPOINT active_record_1
27439
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1133 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27440
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1133], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27441
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27442
+  (0.2ms) SAVEPOINT active_record_1
27443
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1133 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27444
+ 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" = 1147 [["params", {:listing_id=>1}], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27445
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27446
+ 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
27447
+  (0.2ms) ROLLBACK
27448
+  (0.2ms) BEGIN
27449
+  (0.2ms) SAVEPOINT active_record_1
27450
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27451
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27452
+  (0.2ms) SAVEPOINT active_record_1
27453
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1134 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27454
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1134], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27455
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27456
+  (0.2ms) SAVEPOINT active_record_1
27457
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1134 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27458
+ 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" = 1148 [["params", {:listing_id=>1}], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27459
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27460
+ 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
27461
+  (0.2ms) ROLLBACK
27462
+  (0.2ms) BEGIN
27463
+  (0.2ms) SAVEPOINT active_record_1
27464
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27465
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27466
+  (0.3ms) SAVEPOINT active_record_1
27467
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1135 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27468
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1135], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27469
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27470
+  (0.3ms) SAVEPOINT active_record_1
27471
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
27472
+  (0.4ms) ROLLBACK
27473
+  (0.2ms) BEGIN
27474
+  (0.2ms) SAVEPOINT active_record_1
27475
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27476
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27477
+  (0.2ms) SAVEPOINT active_record_1
27478
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27479
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1136], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27480
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27481
+  (0.3ms) SAVEPOINT active_record_1
27482
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27483
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27484
+  (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" = 1136 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1150)
27485
+ NotifyUser::BaseNotification Load (1.1ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1150]]
27486
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1136]]
27487
+ NotifyUser::BaseNotification Load (0.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1136 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
27488
+  (0.2ms) SAVEPOINT active_record_1
27489
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1136]]
27490
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27491
+ 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" = 1150 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27492
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27493
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1150 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27494
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1136]]
27495
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27496
+ NewPostNotification Load (1.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1150 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27497
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1136]]
27498
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1136 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
27499
+  (0.4ms) ROLLBACK
27500
+  (0.2ms) BEGIN
27501
+  (0.2ms) SAVEPOINT active_record_1
27502
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27503
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27504
+  (0.2ms) SAVEPOINT active_record_1
27505
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27506
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1137], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27507
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27508
+  (0.2ms) SAVEPOINT active_record_1
27509
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27510
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27511
+  (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" = 1137 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1151)
27512
+ NotifyUser::BaseNotification Load (0.4ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1151]]
27513
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1137]]
27514
+ 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" = 1137 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
27515
+  (0.2ms) SAVEPOINT active_record_1
27516
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1137]]
27517
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27518
+ 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" = 1151 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27519
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27520
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1151 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27521
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1137]]
27522
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27523
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1151 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27524
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1137]]
27525
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1137 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
27526
+  (0.2ms) ROLLBACK
27527
+  (0.3ms) BEGIN
27528
+  (0.2ms) SAVEPOINT active_record_1
27529
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27530
+  (0.7ms) RELEASE SAVEPOINT active_record_1
27531
+  (0.3ms) SAVEPOINT active_record_1
27532
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1138 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27533
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1138], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27534
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27535
+  (0.2ms) SAVEPOINT active_record_1
27536
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1138 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27537
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27538
+  (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" = 1138 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1152)
27539
+  (0.2ms) SAVEPOINT active_record_1
27540
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1138 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27541
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1138], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27543
+  (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" = 1138 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1153)
27544
+  (0.3ms) ROLLBACK
27545
+  (0.2ms) BEGIN
27546
+  (0.2ms) SAVEPOINT active_record_1
27547
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27548
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27549
+  (0.2ms) SAVEPOINT active_record_1
27550
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1139 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27551
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1139], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27552
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27553
+  (0.2ms) SAVEPOINT active_record_1
27554
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1139 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27555
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1139], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27556
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27557
+ NewPostNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1155]]
27558
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1139]]
27559
+ 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" = 1139 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
27560
+  (0.2ms) SAVEPOINT active_record_1
27561
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1139]]
27562
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1139 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27563
+ 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" = 1154 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27564
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27565
+  (0.2ms) SAVEPOINT active_record_1
27566
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1139]]
27567
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1139 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27568
+ 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" = 1155 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27569
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27570
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1139 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27571
+ NotifyUser::UserHash Load (1.3ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1139 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
27572
+  (0.3ms) SAVEPOINT active_record_1
27573
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '_DYxeHDAN1DsZF4FDYb31QWVqvfOmxr7HeZP8O33cWag' LIMIT 1
27574
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1139], ["target_type", "User"], ["token", "_DYxeHDAN1DsZF4FDYb31QWVqvfOmxr7HeZP8O33cWag"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27575
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27576
+
27577
+ Sent mail to user@example.com (14.7ms)
27578
+ Date: Tue, 28 Oct 2014 15:17:27 +1100
27579
+ From: please-change-me-at-config-initializers-notify-user@example.com
27580
+ To: user@example.com
27581
+ Message-ID: <544f18d7e1112_6b893fea81857be411793@wp.local.mail>
27582
+ Subject: Rails404: You have new Newpostnotification notifications.
27583
+ Mime-Version: 1.0
27584
+ Content-Type: text/html;
27585
+ charset=UTF-8
27586
+ Content-Transfer-Encoding: quoted-printable
27587
+
27588
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
27589
+ tml4/strict.dtd">
27590
+ <html>
27591
+ <head>
27592
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
27593
+ "/>
27594
+ <title></title>
27595
+ </head>
27596
+
27597
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
27598
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
27599
+ ing: optimizeLegibility;">
27600
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
27601
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
27602
+ Logo
27603
+ </div>
27604
+ </div>
27605
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
27606
+ ">
27607
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
27608
+ =
27609
+
27610
+ <div>
27611
+ New Post Notification happened. =
27612
+
27613
+ </div>
27614
+ <div>
27615
+ New Post Notification happened. =
27616
+
27617
+ </div>
27618
+
27619
+ </div>
27620
+ </div>
27621
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
27622
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
27623
+ <p style=3D"text-align: center;">
27624
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
27625
+ _unsubscribe?token=3D_DYxeHDAN1DsZF4FDYb31QWVqvfOmxr7HeZP8O33cWag&amp;typ=
27626
+ e=3DNewPostNotification">Unsubscribe</a>
27627
+ </p>
27628
+ <p style=3D"text-align: center;">
27629
+ This is the default generated layout. A privacy declaration could g=
27630
+ o here.
27631
+ </p>
27632
+ <p style=3D"text-align: center; margin-bottom: 0px;">
27633
+ =C2=A9 MyCompany Pty Ltd
27634
+ </p>
27635
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
27636
+ ABN 123 456 789
27637
+ </p>
27638
+ </div>
27639
+ </div>
27640
+ </body>
27641
+ </html>=
27642
+
27643
+  (0.3ms) ROLLBACK
27644
+  (0.2ms) BEGIN
27645
+  (0.2ms) SAVEPOINT active_record_1
27646
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27647
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27648
+  (0.3ms) SAVEPOINT active_record_1
27649
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1140 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27650
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["state", "pending"], ["target_id", 1140], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27651
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27652
+ 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", 1156]]
27653
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1140]]
27654
+ 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" = 1140 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
27655
+  (0.2ms) SAVEPOINT active_record_1
27656
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1140]]
27657
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1140 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27658
+ 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" = 1156 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27659
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27660
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1156 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27661
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1140]]
27662
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1140 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27663
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1140 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
27664
+  (0.3ms) SAVEPOINT active_record_1
27665
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zAXVDxj0weNDng-29rVyzQwPUffFN9gDc-cnIWQkwcBw' LIMIT 1
27666
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1140], ["target_type", "User"], ["token", "zAXVDxj0weNDng-29rVyzQwPUffFN9gDc-cnIWQkwcBw"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27667
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27668
+
27669
+ Sent mail to user@example.com (8.0ms)
27670
+ Date: Tue, 28 Oct 2014 15:17:27 +1100
27671
+ From: please-change-me-at-config-initializers-notify-user@example.com
27672
+ To: user@example.com
27673
+ Message-ID: <544f18d7ed30e_6b893fea81857be411826@wp.local.mail>
27674
+ Subject: Rails404: You have a new Newpostnotification notification.
27675
+ Mime-Version: 1.0
27676
+ Content-Type: text/html;
27677
+ charset=UTF-8
27678
+ Content-Transfer-Encoding: quoted-printable
27679
+
27680
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
27681
+ tml4/strict.dtd">
27682
+ <html>
27683
+ <head>
27684
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
27685
+ "/>
27686
+ <title></title>
27687
+ </head>
27688
+
27689
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
27690
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
27691
+ ing: optimizeLegibility;">
27692
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
27693
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
27694
+ Logo
27695
+ </div>
27696
+ </div>
27697
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
27698
+ ">
27699
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
27700
+ New Post Notification happened.
27701
+
27702
+ </div>
27703
+ </div>
27704
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
27705
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
27706
+ <p style=3D"text-align: center;">
27707
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
27708
+ _unsubscribe?token=3DzAXVDxj0weNDng-29rVyzQwPUffFN9gDc-cnIWQkwcBw&amp;typ=
27709
+ e=3DNewPostNotification">Unsubscribe</a>
27710
+ </p>
27711
+ <p style=3D"text-align: center;">
27712
+ This is the default generated layout. A privacy declaration could g=
27713
+ o here.
27714
+ </p>
27715
+ <p style=3D"text-align: center; margin-bottom: 0px;">
27716
+ =C2=A9 MyCompany Pty Ltd
27717
+ </p>
27718
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
27719
+ ABN 123 456 789
27720
+ </p>
27721
+ </div>
27722
+ </div>
27723
+ </body>
27724
+ </html>=
27725
+
27726
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1140 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
27727
+  (0.3ms) ROLLBACK
27728
+  (0.2ms) BEGIN
27729
+  (0.2ms) SAVEPOINT active_record_1
27730
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27731
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27732
+  (0.2ms) SAVEPOINT active_record_1
27733
+ 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" = 1141) LIMIT 1
27734
+ 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", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["target_id", 1141], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27735
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27736
+  (0.2ms) SAVEPOINT active_record_1
27737
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1141 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27738
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
27739
+ 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
27740
+  (0.3ms) ROLLBACK
27741
+  (0.2ms) BEGIN
27742
+  (0.2ms) SAVEPOINT active_record_1
27743
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:27 UTC +00:00]]
27744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27745
+  (0.2ms) SAVEPOINT active_record_1
27746
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27747
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1142], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27748
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27749
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1157 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27750
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1142]]
27751
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1142 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27752
+  (0.3ms) ROLLBACK
27753
+  (0.2ms) BEGIN
27754
+  (0.2ms) SAVEPOINT active_record_1
27755
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27756
+  (0.4ms) RELEASE SAVEPOINT active_record_1
27757
+  (0.2ms) SAVEPOINT active_record_1
27758
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27759
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1143], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27760
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27761
+  (0.2ms) SAVEPOINT active_record_1
27762
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27763
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1143], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27764
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27765
+ 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", 1159]]
27766
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1143]]
27767
+ 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" = 1143 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
27768
+  (0.2ms) SAVEPOINT active_record_1
27769
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1143]]
27770
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27771
+ 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" = 1158 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27772
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27773
+  (0.2ms) SAVEPOINT active_record_1
27774
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1143]]
27775
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27776
+ 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" = 1159 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27777
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27778
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1143 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27779
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1143 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
27780
+  (0.2ms) SAVEPOINT active_record_1
27781
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HLOeKDpTPJ5wHV_3E2o0NAnnTBrS-V54-lqCc7GZ_A1w' LIMIT 1
27782
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1143], ["target_type", "User"], ["token", "HLOeKDpTPJ5wHV_3E2o0NAnnTBrS-V54-lqCc7GZ_A1w"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27783
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27784
+
27785
+ Sent mail to user@example.com (7.1ms)
27786
+ Date: Tue, 28 Oct 2014 15:17:28 +1100
27787
+ From: please-change-me-at-config-initializers-notify-user@example.com
27788
+ To: user@example.com
27789
+ Message-ID: <544f18d810e80_6b893fea81857be41193e@wp.local.mail>
27790
+ Subject: Rails404: You have new Newpostnotification notifications.
27791
+ Mime-Version: 1.0
27792
+ Content-Type: text/html;
27793
+ charset=UTF-8
27794
+ Content-Transfer-Encoding: quoted-printable
27795
+
27796
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
27797
+ tml4/strict.dtd">
27798
+ <html>
27799
+ <head>
27800
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
27801
+ "/>
27802
+ <title></title>
27803
+ </head>
27804
+
27805
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
27806
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
27807
+ ing: optimizeLegibility;">
27808
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
27809
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
27810
+ Logo
27811
+ </div>
27812
+ </div>
27813
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
27814
+ ">
27815
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
27816
+ =
27817
+
27818
+ <div>
27819
+ New Post Notification happened. =
27820
+
27821
+ </div>
27822
+ <div>
27823
+ New Post Notification happened. =
27824
+
27825
+ </div>
27826
+
27827
+ </div>
27828
+ </div>
27829
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
27830
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
27831
+ <p style=3D"text-align: center;">
27832
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
27833
+ _unsubscribe?token=3DHLOeKDpTPJ5wHV_3E2o0NAnnTBrS-V54-lqCc7GZ_A1w&amp;typ=
27834
+ e=3DNewPostNotification">Unsubscribe</a>
27835
+ </p>
27836
+ <p style=3D"text-align: center;">
27837
+ This is the default generated layout. A privacy declaration could g=
27838
+ o here.
27839
+ </p>
27840
+ <p style=3D"text-align: center; margin-bottom: 0px;">
27841
+ =C2=A9 MyCompany Pty Ltd
27842
+ </p>
27843
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
27844
+ ABN 123 456 789
27845
+ </p>
27846
+ </div>
27847
+ </div>
27848
+ </body>
27849
+ </html>=
27850
+
27851
+  (0.3ms) ROLLBACK
27852
+  (0.2ms) BEGIN
27853
+  (0.2ms) SAVEPOINT active_record_1
27854
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27855
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27856
+  (0.2ms) SAVEPOINT active_record_1
27857
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1144 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27858
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1144], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27859
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27860
+ 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", 1160]]
27861
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1144]]
27862
+ 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" = 1144 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
27863
+  (0.2ms) SAVEPOINT active_record_1
27864
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1144]]
27865
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1144 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27866
+ 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" = 1160 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27867
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27868
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1160 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27869
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1144]]
27870
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1144 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27871
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1144 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
27872
+  (0.2ms) SAVEPOINT active_record_1
27873
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'S-8ioqZo6ZQ3hHlLKdfEuwDPQC-b4OTohXBA48L0nkCA' LIMIT 1
27874
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1144], ["target_type", "User"], ["token", "S-8ioqZo6ZQ3hHlLKdfEuwDPQC-b4OTohXBA48L0nkCA"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27875
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27876
+
27877
+ Sent mail to user@example.com (8.9ms)
27878
+ Date: Tue, 28 Oct 2014 15:17:28 +1100
27879
+ From: please-change-me-at-config-initializers-notify-user@example.com
27880
+ To: user@example.com
27881
+ Message-ID: <544f18d81b6c6_6b893fea81857be4120c0@wp.local.mail>
27882
+ Subject: Rails404: You have a new Newpostnotification notification.
27883
+ Mime-Version: 1.0
27884
+ Content-Type: text/html;
27885
+ charset=UTF-8
27886
+ Content-Transfer-Encoding: quoted-printable
27887
+
27888
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
27889
+ tml4/strict.dtd">
27890
+ <html>
27891
+ <head>
27892
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
27893
+ "/>
27894
+ <title></title>
27895
+ </head>
27896
+
27897
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
27898
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
27899
+ ing: optimizeLegibility;">
27900
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
27901
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
27902
+ Logo
27903
+ </div>
27904
+ </div>
27905
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
27906
+ ">
27907
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
27908
+ New Post Notification happened.
27909
+
27910
+ </div>
27911
+ </div>
27912
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
27913
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
27914
+ <p style=3D"text-align: center;">
27915
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
27916
+ _unsubscribe?token=3DS-8ioqZo6ZQ3hHlLKdfEuwDPQC-b4OTohXBA48L0nkCA&amp;typ=
27917
+ e=3DNewPostNotification">Unsubscribe</a>
27918
+ </p>
27919
+ <p style=3D"text-align: center;">
27920
+ This is the default generated layout. A privacy declaration could g=
27921
+ o here.
27922
+ </p>
27923
+ <p style=3D"text-align: center; margin-bottom: 0px;">
27924
+ =C2=A9 MyCompany Pty Ltd
27925
+ </p>
27926
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
27927
+ ABN 123 456 789
27928
+ </p>
27929
+ </div>
27930
+ </div>
27931
+ </body>
27932
+ </html>=
27933
+
27934
+  (0.4ms) ROLLBACK
27935
+  (0.4ms) BEGIN
27936
+  (0.3ms) SAVEPOINT active_record_1
27937
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27938
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27939
+  (0.2ms) SAVEPOINT active_record_1
27940
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27941
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1145], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27942
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27943
+  (0.2ms) SAVEPOINT active_record_1
27944
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27945
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27946
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27947
+  (0.3ms) SAVEPOINT active_record_1
27948
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27949
+ SQL (1.2ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1161 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27950
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27951
+ NewPostNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1161 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27952
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1145]]
27953
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27954
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1145 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
27955
+  (0.3ms) ROLLBACK
27956
+  (0.2ms) BEGIN
27957
+  (0.2ms) SAVEPOINT active_record_1
27958
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27959
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27960
+  (0.2ms) SAVEPOINT active_record_1
27961
+ 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" = 1146) LIMIT 1
27962
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1146], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27963
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27964
+  (0.2ms) SAVEPOINT active_record_1
27965
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1146 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27966
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
27967
+  (0.2ms) SAVEPOINT active_record_1
27968
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1146 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27969
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
27970
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1146 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27971
+  (0.3ms) ROLLBACK
27972
+  (0.2ms) BEGIN
27973
+  (0.2ms) SAVEPOINT active_record_1
27974
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27975
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27976
+  (0.2ms) SAVEPOINT active_record_1
27977
+ NotifyUser::Unsubscribe Exists (1.1ms) 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" = 1147) LIMIT 1
27978
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1147], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27979
+  (0.3ms) RELEASE SAVEPOINT active_record_1
27980
+  (0.2ms) SAVEPOINT active_record_1
27981
+ 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" != 262 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1147) LIMIT 1
27982
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27983
+  (0.2ms) SAVEPOINT active_record_1
27984
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27985
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1147], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27986
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27987
+  (0.2ms) SAVEPOINT active_record_1
27988
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27989
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27990
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27991
+  (0.2ms) SAVEPOINT active_record_1
27992
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
27993
+ 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" = 1162 [["state", "sent"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
27994
+  (0.2ms) RELEASE SAVEPOINT active_record_1
27995
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1162 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
27996
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1147]]
27997
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
27998
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
27999
+  (0.2ms) ROLLBACK
28000
+  (0.2ms) BEGIN
28001
+  (0.2ms) SAVEPOINT active_record_1
28002
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28003
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28004
+  (0.2ms) SAVEPOINT active_record_1
28005
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1148 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28006
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1148], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28007
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28008
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1148 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
28009
+  (0.3ms) SAVEPOINT active_record_1
28010
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'sSPCtEiwIACABQFIxywqGQaM-FFMLP20yDY3_nnGbhlw' LIMIT 1
28011
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1148], ["target_type", "User"], ["token", "sSPCtEiwIACABQFIxywqGQaM-FFMLP20yDY3_nnGbhlw"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28012
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28013
+  (0.3ms) ROLLBACK
28014
+  (0.2ms) BEGIN
28015
+  (0.2ms) SAVEPOINT active_record_1
28016
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28017
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28018
+  (0.2ms) SAVEPOINT active_record_1
28019
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1149 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28020
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1149], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28021
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28022
+ NotifyUser::UserHash Load (1.2ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1149 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
28023
+  (0.3ms) SAVEPOINT active_record_1
28024
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'PUnpmQWqqLgTfLaLRJDtAA8j9ibEWVuK9LHJrGrAkbXQ' LIMIT 1
28025
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1149], ["target_type", "User"], ["token", "PUnpmQWqqLgTfLaLRJDtAA8j9ibEWVuK9LHJrGrAkbXQ"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28026
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28027
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1149 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
28028
+  (0.3ms) ROLLBACK
28029
+  (0.2ms) BEGIN
28030
+  (0.2ms) SAVEPOINT active_record_1
28031
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28032
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28033
+  (0.2ms) SAVEPOINT active_record_1
28034
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1150 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28035
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["state", "pending"], ["target_id", 1150], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28036
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28037
+ NotifyUser::UserHash Load (0.5ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1150 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
28038
+  (0.2ms) SAVEPOINT active_record_1
28039
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'uTw7uzD8mSDq51u3g7cYpgsSRfec3LO_Wr1En8x2F9zQ' LIMIT 1
28040
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1150], ["target_type", "User"], ["token", "uTw7uzD8mSDq51u3g7cYpgsSRfec3LO_Wr1En8x2F9zQ"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28041
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28042
+  (0.2ms) SAVEPOINT active_record_1
28043
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 318 [["active", false], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28044
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28045
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1150 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
28046
+  (0.3ms) SAVEPOINT active_record_1
28047
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jRhFnSLvNMxHwDXQQN7BKAxdREqwrr1bntMl5Pq8PShg' LIMIT 1
28048
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1150], ["target_type", "User"], ["token", "jRhFnSLvNMxHwDXQQN7BKAxdREqwrr1bntMl5Pq8PShg"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28049
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28050
+  (0.2ms) ROLLBACK
28051
+  (0.2ms) BEGIN
28052
+  (0.2ms) SAVEPOINT active_record_1
28053
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28054
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28055
+  (0.2ms) SAVEPOINT active_record_1
28056
+ 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" = 1151) LIMIT 1
28057
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1151], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28058
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28059
+  (0.2ms) SAVEPOINT active_record_1
28060
+ NotifyUser::Unsubscribe Exists (1.0ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 263 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1151) LIMIT 1
28061
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28062
+  (0.1ms) SAVEPOINT active_record_1
28063
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1151 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28064
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
28065
+  (0.3ms) ROLLBACK
28066
+  (0.2ms) BEGIN
28067
+  (0.2ms) SAVEPOINT active_record_1
28068
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28069
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28070
+  (0.2ms) SAVEPOINT active_record_1
28071
+ 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" = 1152) LIMIT 1
28072
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1152], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28073
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28074
+  (0.2ms) SAVEPOINT active_record_1
28075
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 264 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1152) LIMIT 1
28076
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28077
+  (0.2ms) SAVEPOINT active_record_1
28078
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1152 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28079
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
28080
+  (0.2ms) ROLLBACK
28081
+  (0.2ms) BEGIN
28082
+  (0.2ms) SAVEPOINT active_record_1
28083
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28084
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28085
+  (0.2ms) SAVEPOINT active_record_1
28086
+ 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" = 1153) LIMIT 1
28087
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1153], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28088
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28089
+  (0.2ms) SAVEPOINT active_record_1
28090
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 265 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1153) LIMIT 1
28091
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28092
+  (0.3ms) SAVEPOINT active_record_1
28093
+ 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" = 1153) LIMIT 1
28094
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
28095
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1153 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28096
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1153 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28097
+  (0.2ms) SAVEPOINT active_record_1
28098
+ SQL (0.4ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 265]]
28099
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28100
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1153 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28101
+  (0.7ms) ROLLBACK
28102
+  (0.2ms) BEGIN
28103
+  (0.2ms) SAVEPOINT active_record_1
28104
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28105
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28106
+  (0.2ms) SAVEPOINT active_record_1
28107
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1154 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
28108
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1154], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28109
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28110
+  (0.2ms) ROLLBACK
28111
+  (0.2ms) BEGIN
28112
+  (0.2ms) SAVEPOINT active_record_1
28113
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28114
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28115
+  (0.2ms) SAVEPOINT active_record_1
28116
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'E2ep8V7UDZim_53_JOEX9ARkrC4dNaQZuPKPdWmPDf2A' LIMIT 1
28117
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1155], ["target_type", "User"], ["token", "E2ep8V7UDZim_53_JOEX9ARkrC4dNaQZuPKPdWmPDf2A"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28118
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28119
+  (0.2ms) SAVEPOINT active_record_1
28120
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28121
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'E2ep8V7UDZim_53_JOEX9ARkrC4dNaQZuPKPdWmPDf2A' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
28122
+  (0.3ms) ROLLBACK
28123
+  (0.3ms) BEGIN
28124
+  (0.2ms) SAVEPOINT active_record_1
28125
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28126
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28127
+  (0.2ms) SAVEPOINT active_record_1
28128
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8qnDYw0kdg74KudFJAIrNQlInn_GKiEpHlwQ6RTiicFw' LIMIT 1
28129
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1156], ["target_type", "User"], ["token", "8qnDYw0kdg74KudFJAIrNQlInn_GKiEpHlwQ6RTiicFw"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28130
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28131
+  (0.3ms) SAVEPOINT active_record_1
28132
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28133
+  (0.2ms) SAVEPOINT active_record_1
28134
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 321 [["active", false], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28135
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28136
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8qnDYw0kdg74KudFJAIrNQlInn_GKiEpHlwQ6RTiicFw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
28137
+  (0.3ms) ROLLBACK
28138
+  (0.2ms) BEGIN
28139
+  (0.2ms) SAVEPOINT active_record_1
28140
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28141
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28142
+  (0.2ms) SAVEPOINT active_record_1
28143
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Q0lliLIRN2e38BjcciTLEgAa6_rMg5NxqUyuQ4xYXFoA' LIMIT 1
28144
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1157], ["target_type", "User"], ["token", "Q0lliLIRN2e38BjcciTLEgAa6_rMg5NxqUyuQ4xYXFoA"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28145
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28146
+  (0.2ms) SAVEPOINT active_record_1
28147
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28148
+  (0.2ms) SAVEPOINT active_record_1
28149
+ SQL (1.0ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 322 [["active", false], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28150
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28151
+  (0.2ms) ROLLBACK
28152
+  (0.2ms) BEGIN
28153
+  (0.2ms) SAVEPOINT active_record_1
28154
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["email", "user@example.com"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28155
+  (0.2ms) RELEASE SAVEPOINT active_record_1
28156
+  (0.2ms) SAVEPOINT active_record_1
28157
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'R898vj3CmU50vB9cA2vd8Qgd2oEVxUMtyg5uVyt-Y89A' LIMIT 1
28158
+ 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", Tue, 28 Oct 2014 04:17:28 UTC +00:00], ["target_id", 1158], ["target_type", "User"], ["token", "R898vj3CmU50vB9cA2vd8Qgd2oEVxUMtyg5uVyt-Y89A"], ["type", "NewPostNotification"], ["updated_at", Tue, 28 Oct 2014 04:17:28 UTC +00:00]]
28159
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28160
+  (0.2ms) SAVEPOINT active_record_1
28161
+  (0.3ms) RELEASE SAVEPOINT active_record_1
28162
+  (0.2ms) ROLLBACK
28163
+  (0.2ms) BEGIN
28164
+  (0.2ms) ROLLBACK
28165
+  (0.2ms) BEGIN
28166
+  (0.2ms) ROLLBACK
28167
+  (0.2ms) BEGIN
28168
+  (0.2ms) ROLLBACK
28169
+  (0.2ms) BEGIN
28170
+  (0.2ms) ROLLBACK
28171
+  (0.2ms) BEGIN
28172
+  (0.3ms) ROLLBACK
28173
+  (0.2ms) BEGIN
28174
+  (0.3ms) ROLLBACK
28175
+  (0.2ms) BEGIN
28176
+  (0.2ms) ROLLBACK