notify_user 0.0.23 → 0.0.24
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 750cba2cffccaf3e75e84314398fc19b95fc1aa1
|
4
|
+
data.tar.gz: e61be5a81fc70de8d790d1137ad9d0ed92aedb02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d08d03e8db322585e477613cb3336a194e449ba1cde14acae1ea390b3579c959e989d1b39d6dd71723543ce91cb0d4f6a16b35dab6d28813f75413eee99dd6f
|
7
|
+
data.tar.gz: 1d7e8aaf777f0bbb01ef117386e936ff066397d85272204c0c6640761d5a21b6c1eed28a3cd5e1a9ae5c743ee7c2ffac236841d12617eaf5c6cf13e112d1aeaa
|
@@ -66,7 +66,7 @@ module NotifyUser
|
|
66
66
|
ActionView::Base.new(
|
67
67
|
Rails.configuration.paths["app/views"]).render(
|
68
68
|
:template => self.class.views[:mobile_sdk][:template_path].call(self), :formats => [:html],
|
69
|
-
:locals => { :params => self.params}, :layout => false)
|
69
|
+
:locals => { :params => self.params}, :layout => false).html_safe
|
70
70
|
end
|
71
71
|
|
72
72
|
def mobile_message(length=115)
|
@@ -274,6 +274,7 @@ module NotifyUser
|
|
274
274
|
end
|
275
275
|
|
276
276
|
private
|
277
|
+
|
277
278
|
def unsubscribed_validation
|
278
279
|
errors.add(:target, (" has unsubscribed from this type")) if user_has_unsubscribed?
|
279
280
|
end
|
@@ -292,6 +293,5 @@ module NotifyUser
|
|
292
293
|
return false
|
293
294
|
end
|
294
295
|
|
295
|
-
|
296
296
|
end
|
297
297
|
end
|
@@ -1,12 +1,14 @@
|
|
1
1
|
class NotifyUser::NotificationSerializer < ActiveModel::Serializer
|
2
|
+
require 'cgi'
|
2
3
|
root :notifications
|
3
4
|
|
4
5
|
attributes :id, :type, :message, :read, :params, :created_at
|
5
6
|
|
6
7
|
def message
|
7
|
-
options[:template_renderer].render_to_string(:template => object.class.views[:mobile_sdk][:template_path].call(object),
|
8
|
+
string = options[:template_renderer].render_to_string(:template => object.class.views[:mobile_sdk][:template_path].call(object),
|
8
9
|
:locals => {params: object.params},
|
9
10
|
:layout => false, :formats => [:html])
|
11
|
+
return ::CGI.unescapeHTML("#{string}")
|
10
12
|
end
|
11
13
|
|
12
14
|
def read
|
data/lib/notify_user/version.rb
CHANGED
@@ -28174,3 +28174,2153 @@ o here.
|
|
28174
28174
|
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
28175
28175
|
[1m[35m (0.2ms)[0m BEGIN
|
28176
28176
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28177
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
28178
|
+
[1m[35m (0.9ms)[0m SAVEPOINT active_record_1
|
28179
|
+
[1m[36mSQL (17.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28180
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28181
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
28182
|
+
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
|
28183
|
+
Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 0.0ms)
|
28184
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
28185
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28186
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28187
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28188
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28189
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28190
|
+
[1m[36m (5.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1160 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28191
|
+
[1m[35mSQL (3.8ms)[0m 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", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1160], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28192
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28193
|
+
Processing by NotifyUser::NotificationsController#index as JSON
|
28194
|
+
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1160 AND "notify_user_notifications"."target_type" = 'User'
|
28195
|
+
[1m[36mNotifyUser::BaseNotification Load (3.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1160 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
28196
|
+
Completed 200 OK in 26ms (Views: 15.2ms | ActiveRecord: 4.6ms)
|
28197
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
28198
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28199
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28200
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28201
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28202
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28203
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28204
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1161], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28205
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28206
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28207
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28208
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1161], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28209
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28210
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28211
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1161 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28212
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1161], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28213
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28214
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
28215
|
+
[1m[36mNotifyUser::BaseNotification Load (1.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1161 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
28216
|
+
Completed 200 OK in 59ms (Views: 57.5ms | ActiveRecord: 1.0ms)
|
28217
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
28218
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28219
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28220
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28221
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28222
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28223
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28224
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1162], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28225
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28226
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28227
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28228
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1162], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28229
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28230
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28231
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28232
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1162], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28233
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28234
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
28235
|
+
Parameters: {"id"=>"1171"}
|
28236
|
+
[1m[36mNotifyUser::BaseNotification Load (0.9ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1162 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1171') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28237
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28238
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1162]]
|
28239
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1162 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28240
|
+
[1m[36mSQL (1.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1171[0m [["state", "read"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28241
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
28242
|
+
Completed 200 OK in 21ms (Views: 1.9ms | ActiveRecord: 4.6ms)
|
28243
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1171 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28244
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28245
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
28246
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28247
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28248
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28249
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28250
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28251
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1163], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28252
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28253
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28254
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28255
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1163], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28256
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28257
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28258
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28259
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1163], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28260
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28261
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
28262
|
+
Parameters: {"id"=>"1174"}
|
28263
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1163 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1174') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28264
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28265
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1163]]
|
28266
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1163 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28267
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1174[0m [["state", "read"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28268
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28269
|
+
Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 3.0ms)
|
28270
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
28271
|
+
Parameters: {"id"=>"1174"}
|
28272
|
+
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1163 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1174') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28273
|
+
Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 3.8ms)
|
28274
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28275
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28276
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28277
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28278
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28279
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28280
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1164 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28281
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1164], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28282
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28283
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28284
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1164 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28285
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1164], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28286
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28287
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28288
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1164 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28289
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1164], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28290
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28291
|
+
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
28292
|
+
[1m[36mSQL (1.4ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1164 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
28293
|
+
Redirected to http://test.host/notify_user/notifications
|
28294
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.4ms)
|
28295
|
+
[1m[35mNotifyUser::BaseNotification Load (0.7ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1164 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
28296
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
28297
|
+
[1m[35m (0.1ms)[0m BEGIN
|
28298
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28299
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28300
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28301
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28302
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1165 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28303
|
+
[1m[35mSQL (0.6ms)[0m 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", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1165], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28304
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28305
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
28306
|
+
Parameters: {"ids"=>["1180"]}
|
28307
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1165 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1180'))
|
28308
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1165 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1180'))[0m
|
28309
|
+
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 1.2ms)
|
28310
|
+
[1m[35mNewPostNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1180]]
|
28311
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28312
|
+
[1m[35m (0.3ms)[0m BEGIN
|
28313
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28314
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28315
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28316
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28317
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1166 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28318
|
+
[1m[35mSQL (0.6ms)[0m 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", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1166], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28319
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28320
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
28321
|
+
Parameters: {"ids"=>["1181"]}
|
28322
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1166 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1181'))
|
28323
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1166 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1181'))[0m
|
28324
|
+
Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 1.1ms)
|
28325
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28326
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28327
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28328
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28329
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28330
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28331
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1167 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28332
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1167], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28333
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28334
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1167 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28335
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
28336
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
28337
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1167 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28338
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
28339
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.8ms)[0m 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" = 1167) LIMIT 1
|
28340
|
+
[1m[36mSQL (2.9ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["target_id", 1167], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28341
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28342
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1167 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28343
|
+
Completed 200 OK in 26ms (Views: 0.5ms | ActiveRecord: 5.4ms)
|
28344
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.6ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1167 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28345
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28346
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28347
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28348
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28349
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28350
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28351
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28352
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1168], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28353
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28354
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28355
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
28356
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
28357
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28358
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28359
|
+
Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.9ms)
|
28360
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28361
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28362
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28363
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28364
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28365
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28366
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28367
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1169 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28368
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1169], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28369
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28370
|
+
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
28371
|
+
Parameters: {"type"=>"NewPostNotification"}
|
28372
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28373
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m 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" = 1169) LIMIT 1
|
28374
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["target_id", 1169], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28375
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28376
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
28377
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1169 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28378
|
+
Completed 302 Found in 7ms (ActiveRecord: 2.2ms)
|
28379
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
|
28380
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
28381
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28382
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28383
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28384
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28385
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28386
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1170 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28387
|
+
[1m[35mSQL (0.8ms)[0m 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", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1170], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28388
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28389
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28390
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 1170) LIMIT 1[0m
|
28391
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["target_id", 1170], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28392
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28393
|
+
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
28394
|
+
Parameters: {"type"=>"NewPostNotification"}
|
28395
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1170 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28396
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28397
|
+
[1m[35mSQL (0.7ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 268]]
|
28398
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28399
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
28400
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.6ms)
|
28401
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
|
28402
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
28403
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28404
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28405
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28406
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28407
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28408
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28409
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1171], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28410
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28411
|
+
[1m[35mNotifyUser::UserHash Load (2.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1171 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
|
28412
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28413
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DKvRFO6FHHD6JIwyUpklWw2ADTlggIGW7Hak2zw7yurA' LIMIT 1
|
28414
|
+
[1m[36mSQL (2.8ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["target_id", 1171], ["target_type", "User"], ["token", "DKvRFO6FHHD6JIwyUpklWw2ADTlggIGW7Hak2zw7yurA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28415
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28416
|
+
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
28417
|
+
Parameters: {"type"=>"NewPostNotification", "token"=>"DKvRFO6FHHD6JIwyUpklWw2ADTlggIGW7Hak2zw7yurA"}
|
28418
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DKvRFO6FHHD6JIwyUpklWw2ADTlggIGW7Hak2zw7yurA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
28419
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DKvRFO6FHHD6JIwyUpklWw2ADTlggIGW7Hak2zw7yurA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
28420
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1171]]
|
28421
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28422
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 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" = 1171) LIMIT 1[0m
|
28423
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00], ["target_id", 1171], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28424
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28425
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28426
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 324[0m [["active", false], ["updated_at", Sat, 15 Nov 2014 10:47:01 UTC +00:00]]
|
28427
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28428
|
+
Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 4.0ms)
|
28429
|
+
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1[0m
|
28430
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28431
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28432
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m 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
|
28433
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28434
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
28435
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "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[0m
|
28436
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28437
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
28438
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
28439
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28440
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m 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
|
28441
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28442
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
28443
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "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[0m
|
28444
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28445
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
28446
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28447
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28448
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m 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
|
28449
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28450
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
28451
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "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[0m
|
28452
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28453
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
28454
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28455
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
28456
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28457
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28458
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28459
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28460
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1172 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28461
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1172], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28462
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28463
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1172 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))[0m
|
28464
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28465
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28466
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28467
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28468
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28469
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28470
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1173 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28471
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1173], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28472
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28473
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28474
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28475
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28476
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28477
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28478
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28479
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1174 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28480
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1174], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28481
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28482
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28483
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28484
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28485
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28486
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28487
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28488
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1175 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28489
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1175], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28490
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28491
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28492
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1175 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28493
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1190[0m [["params", {"listing_id"=>1}], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28494
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28495
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
28496
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28497
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28498
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28499
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28500
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28501
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28502
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1176 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28503
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1176], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28504
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28505
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28506
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1176 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28507
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1191[0m [["params", {"listing_id"=>1}], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28508
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28509
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
28510
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28511
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28512
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28513
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28514
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28515
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28516
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28517
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1177], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28518
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28519
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28520
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1177 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28521
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1192[0m [["params", {:listing_id=>1}], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28522
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28523
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
28524
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28525
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28526
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28527
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28528
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28529
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28530
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28531
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1178], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28532
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28533
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28534
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1178 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28535
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1193[0m [["params", {:listing_id=>1}], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28536
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28537
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
28538
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28539
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28540
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28541
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28542
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28543
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28544
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1179 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28545
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1179], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28546
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28547
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28548
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
28549
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28550
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28551
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
28552
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28553
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28554
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28555
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28556
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1180], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28557
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28558
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28559
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28560
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28561
|
+
[1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1180 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1195)[0m
|
28562
|
+
[1m[35mNotifyUser::BaseNotification Load (0.9ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1195]]
|
28563
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1180]]
|
28564
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1180 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
28565
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28566
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1180]]
|
28567
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28568
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1195 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28569
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28570
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1195 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
28571
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1180]]
|
28572
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
28573
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1195 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28574
|
+
[1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1180]]
|
28575
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1180 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
28576
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28577
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28578
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28579
|
+
[1m[36mSQL (1.1ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28580
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28581
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28582
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1181 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28583
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1181], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28584
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28585
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28586
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1181 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28587
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28588
|
+
[1m[35m (0.5ms)[0m 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" = 1181 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1196)
|
28589
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 1196]]
|
28590
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1181]]
|
28591
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1181 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
28592
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28593
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1181]]
|
28594
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1181 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28595
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1196[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28596
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28597
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1196 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28598
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1181]]
|
28599
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1181 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
28600
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1196 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
28601
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1181]]
|
28602
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1181 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
28603
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
28604
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28605
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28606
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28607
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28608
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28609
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1182 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28610
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1182], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28611
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28612
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28613
|
+
[1m[36m (1.0ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1182 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28614
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28615
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1182 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1197)[0m
|
28616
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28617
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1182 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28618
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1182], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28619
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28620
|
+
[1m[35m (0.6ms)[0m 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" = 1182 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1198)
|
28621
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
28622
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28623
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28624
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28625
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28626
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28627
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1183 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28628
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1183], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28629
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28630
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28631
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1183 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28632
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1183], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28633
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28634
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1200]]
|
28635
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1183]]
|
28636
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m 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" = 1183 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
28637
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28638
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1183]]
|
28639
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1183 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28640
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1199 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28641
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28642
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28643
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1183]]
|
28644
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1183 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28645
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1200[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28646
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28647
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1183 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
28648
|
+
[1m[35mNotifyUser::UserHash Load (1.0ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1183 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
|
28649
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28650
|
+
[1m[35mNotifyUser::UserHash Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'VLbMJ2kdT89TDP5n9x0BgA3FTnxmwwVSAQXZCi-BlQHw' LIMIT 1
|
28651
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1183], ["target_type", "User"], ["token", "VLbMJ2kdT89TDP5n9x0BgA3FTnxmwwVSAQXZCi-BlQHw"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28652
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28653
|
+
|
28654
|
+
Sent mail to user@example.com (8.8ms)
|
28655
|
+
Date: Sat, 15 Nov 2014 21:47:02 +1100
|
28656
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
28657
|
+
To: user@example.com
|
28658
|
+
Message-ID: <54672f264bf6a_39a3fe439065bf078399@wp.local.mail>
|
28659
|
+
Subject: Rails404: You have new Newpostnotification notifications.
|
28660
|
+
Mime-Version: 1.0
|
28661
|
+
Content-Type: text/html;
|
28662
|
+
charset=UTF-8
|
28663
|
+
Content-Transfer-Encoding: quoted-printable
|
28664
|
+
|
28665
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
28666
|
+
tml4/strict.dtd">
|
28667
|
+
<html>
|
28668
|
+
<head>
|
28669
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
28670
|
+
"/>
|
28671
|
+
<title></title>
|
28672
|
+
</head>
|
28673
|
+
|
28674
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
28675
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
28676
|
+
ing: optimizeLegibility;">
|
28677
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
28678
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
28679
|
+
Logo
|
28680
|
+
</div>
|
28681
|
+
</div>
|
28682
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
28683
|
+
">
|
28684
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
28685
|
+
=
|
28686
|
+
|
28687
|
+
<div>
|
28688
|
+
New Post Notification happened. =
|
28689
|
+
|
28690
|
+
</div>
|
28691
|
+
<div>
|
28692
|
+
New Post Notification happened. =
|
28693
|
+
|
28694
|
+
</div>
|
28695
|
+
|
28696
|
+
</div>
|
28697
|
+
</div>
|
28698
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
28699
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
28700
|
+
<p style=3D"text-align: center;">
|
28701
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
28702
|
+
_unsubscribe?token=3DVLbMJ2kdT89TDP5n9x0BgA3FTnxmwwVSAQXZCi-BlQHw&typ=
|
28703
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
28704
|
+
</p>
|
28705
|
+
<p style=3D"text-align: center;">
|
28706
|
+
This is the default generated layout. A privacy declaration could g=
|
28707
|
+
o here.
|
28708
|
+
</p>
|
28709
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
28710
|
+
=C2=A9 MyCompany Pty Ltd
|
28711
|
+
</p>
|
28712
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
28713
|
+
ABN 123 456 789
|
28714
|
+
</p>
|
28715
|
+
</div>
|
28716
|
+
</div>
|
28717
|
+
</body>
|
28718
|
+
</html>=
|
28719
|
+
|
28720
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
28721
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28722
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28723
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28724
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28725
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28726
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1184 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28727
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1184], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28728
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28729
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1201]]
|
28730
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1184]]
|
28731
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m 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" = 1184 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
28732
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28733
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1184]]
|
28734
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1184 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28735
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1201 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28736
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28737
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1201 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
28738
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1184]]
|
28739
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1184 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
28740
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1184 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[0m
|
28741
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28742
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dugIiDCI4ZQ_eZcxvnKBkAxVeYtlNxE37dlemwCqTX-Q' LIMIT 1[0m
|
28743
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1184], ["target_type", "User"], ["token", "dugIiDCI4ZQ_eZcxvnKBkAxVeYtlNxE37dlemwCqTX-Q"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28744
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28745
|
+
|
28746
|
+
Sent mail to user@example.com (6.2ms)
|
28747
|
+
Date: Sat, 15 Nov 2014 21:47:02 +1100
|
28748
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
28749
|
+
To: user@example.com
|
28750
|
+
Message-ID: <54672f26563d3_39a3fe439065bf0784b3@wp.local.mail>
|
28751
|
+
Subject: Rails404: You have a new Newpostnotification notification.
|
28752
|
+
Mime-Version: 1.0
|
28753
|
+
Content-Type: text/html;
|
28754
|
+
charset=UTF-8
|
28755
|
+
Content-Transfer-Encoding: quoted-printable
|
28756
|
+
|
28757
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
28758
|
+
tml4/strict.dtd">
|
28759
|
+
<html>
|
28760
|
+
<head>
|
28761
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
28762
|
+
"/>
|
28763
|
+
<title></title>
|
28764
|
+
</head>
|
28765
|
+
|
28766
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
28767
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
28768
|
+
ing: optimizeLegibility;">
|
28769
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
28770
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
28771
|
+
Logo
|
28772
|
+
</div>
|
28773
|
+
</div>
|
28774
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
28775
|
+
">
|
28776
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
28777
|
+
New Post Notification happened.
|
28778
|
+
|
28779
|
+
</div>
|
28780
|
+
</div>
|
28781
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
28782
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
28783
|
+
<p style=3D"text-align: center;">
|
28784
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
28785
|
+
_unsubscribe?token=3DdugIiDCI4ZQ_eZcxvnKBkAxVeYtlNxE37dlemwCqTX-Q&typ=
|
28786
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
28787
|
+
</p>
|
28788
|
+
<p style=3D"text-align: center;">
|
28789
|
+
This is the default generated layout. A privacy declaration could g=
|
28790
|
+
o here.
|
28791
|
+
</p>
|
28792
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
28793
|
+
=C2=A9 MyCompany Pty Ltd
|
28794
|
+
</p>
|
28795
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
28796
|
+
ABN 123 456 789
|
28797
|
+
</p>
|
28798
|
+
</div>
|
28799
|
+
</div>
|
28800
|
+
</body>
|
28801
|
+
</html>=
|
28802
|
+
|
28803
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1184 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
28804
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
28805
|
+
[1m[35m (0.2ms)[0m BEGIN
|
28806
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
28807
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28808
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28809
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28810
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 1185) LIMIT 1[0m
|
28811
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1185], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28812
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28813
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28814
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1185 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28815
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
28816
|
+
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28817
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
28818
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28819
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28820
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28821
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28822
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28823
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1186 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28824
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1186], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28825
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28826
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1202 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28827
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1186]]
|
28828
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1186 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
28829
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
28830
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28831
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28832
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28833
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28834
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28835
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28836
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1187], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28837
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28838
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28839
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28840
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1187], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28841
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28842
|
+
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 1204]]
|
28843
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1187]]
|
28844
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "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" = 1187 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
28845
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28846
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1187]]
|
28847
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28848
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1203[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28849
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28850
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28851
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1187]]
|
28852
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
28853
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1204 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28854
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28855
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1187 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
28856
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1187 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[0m
|
28857
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
28858
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HXFTxLufUkWdCewTIC1uegXW9nY9mXq61OBzn3nd0yEQ' LIMIT 1[0m
|
28859
|
+
[1m[35mSQL (0.6ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1187], ["target_type", "User"], ["token", "HXFTxLufUkWdCewTIC1uegXW9nY9mXq61OBzn3nd0yEQ"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28860
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
28861
|
+
|
28862
|
+
Sent mail to user@example.com (6.6ms)
|
28863
|
+
Date: Sat, 15 Nov 2014 21:47:02 +1100
|
28864
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
28865
|
+
To: user@example.com
|
28866
|
+
Message-ID: <54672f2669903_39a3fe439065bf0785ce@wp.local.mail>
|
28867
|
+
Subject: Rails404: You have new Newpostnotification notifications.
|
28868
|
+
Mime-Version: 1.0
|
28869
|
+
Content-Type: text/html;
|
28870
|
+
charset=UTF-8
|
28871
|
+
Content-Transfer-Encoding: quoted-printable
|
28872
|
+
|
28873
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
28874
|
+
tml4/strict.dtd">
|
28875
|
+
<html>
|
28876
|
+
<head>
|
28877
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
28878
|
+
"/>
|
28879
|
+
<title></title>
|
28880
|
+
</head>
|
28881
|
+
|
28882
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
28883
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
28884
|
+
ing: optimizeLegibility;">
|
28885
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
28886
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
28887
|
+
Logo
|
28888
|
+
</div>
|
28889
|
+
</div>
|
28890
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
28891
|
+
">
|
28892
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
28893
|
+
=
|
28894
|
+
|
28895
|
+
<div>
|
28896
|
+
New Post Notification happened. =
|
28897
|
+
|
28898
|
+
</div>
|
28899
|
+
<div>
|
28900
|
+
New Post Notification happened. =
|
28901
|
+
|
28902
|
+
</div>
|
28903
|
+
|
28904
|
+
</div>
|
28905
|
+
</div>
|
28906
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
28907
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
28908
|
+
<p style=3D"text-align: center;">
|
28909
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
28910
|
+
_unsubscribe?token=3DHXFTxLufUkWdCewTIC1uegXW9nY9mXq61OBzn3nd0yEQ&typ=
|
28911
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
28912
|
+
</p>
|
28913
|
+
<p style=3D"text-align: center;">
|
28914
|
+
This is the default generated layout. A privacy declaration could g=
|
28915
|
+
o here.
|
28916
|
+
</p>
|
28917
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
28918
|
+
=C2=A9 MyCompany Pty Ltd
|
28919
|
+
</p>
|
28920
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
28921
|
+
ABN 123 456 789
|
28922
|
+
</p>
|
28923
|
+
</div>
|
28924
|
+
</div>
|
28925
|
+
</body>
|
28926
|
+
</html>=
|
28927
|
+
|
28928
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
28929
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
28930
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28931
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28932
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28933
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28934
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1188 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28935
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1188], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28936
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
28937
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 1205]]
|
28938
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1188]]
|
28939
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "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" = 1188 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
28940
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
28941
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1188]]
|
28942
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1188 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
28943
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1205[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28944
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28945
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1205 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
28946
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1188]]
|
28947
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1188 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
28948
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1188 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
|
28949
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
28950
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3Y_EE-sr9OXYkQBMNPrZUAd_HeLg35wXg_PYX-xGzxNg' LIMIT 1
|
28951
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1188], ["target_type", "User"], ["token", "3Y_EE-sr9OXYkQBMNPrZUAd_HeLg35wXg_PYX-xGzxNg"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
28952
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
28953
|
+
|
28954
|
+
Sent mail to user@example.com (7.3ms)
|
28955
|
+
Date: Sat, 15 Nov 2014 21:47:02 +1100
|
28956
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
28957
|
+
To: user@example.com
|
28958
|
+
Message-ID: <54672f26746d5_39a3fe439065bf0786d2@wp.local.mail>
|
28959
|
+
Subject: Rails404: You have a new Newpostnotification notification.
|
28960
|
+
Mime-Version: 1.0
|
28961
|
+
Content-Type: text/html;
|
28962
|
+
charset=UTF-8
|
28963
|
+
Content-Transfer-Encoding: quoted-printable
|
28964
|
+
|
28965
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
28966
|
+
tml4/strict.dtd">
|
28967
|
+
<html>
|
28968
|
+
<head>
|
28969
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
28970
|
+
"/>
|
28971
|
+
<title></title>
|
28972
|
+
</head>
|
28973
|
+
|
28974
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
28975
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
28976
|
+
ing: optimizeLegibility;">
|
28977
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
28978
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
28979
|
+
Logo
|
28980
|
+
</div>
|
28981
|
+
</div>
|
28982
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
28983
|
+
">
|
28984
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
28985
|
+
New Post Notification happened.
|
28986
|
+
|
28987
|
+
</div>
|
28988
|
+
</div>
|
28989
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
28990
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
28991
|
+
<p style=3D"text-align: center;">
|
28992
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
28993
|
+
_unsubscribe?token=3D3Y_EE-sr9OXYkQBMNPrZUAd_HeLg35wXg_PYX-xGzxNg&typ=
|
28994
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
28995
|
+
</p>
|
28996
|
+
<p style=3D"text-align: center;">
|
28997
|
+
This is the default generated layout. A privacy declaration could g=
|
28998
|
+
o here.
|
28999
|
+
</p>
|
29000
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
29001
|
+
=C2=A9 MyCompany Pty Ltd
|
29002
|
+
</p>
|
29003
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
29004
|
+
ABN 123 456 789
|
29005
|
+
</p>
|
29006
|
+
</div>
|
29007
|
+
</div>
|
29008
|
+
</body>
|
29009
|
+
</html>=
|
29010
|
+
|
29011
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
29012
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29013
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
29014
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29015
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29016
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29017
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29018
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1189], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29019
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29020
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29021
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29022
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29023
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29024
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29025
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29026
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1206 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29027
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29028
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1206 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
29029
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1189]]
|
29030
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
29031
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1189 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
29032
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29033
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
29034
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29035
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29036
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29037
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29038
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m 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" = 1190) LIMIT 1
|
29039
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1190], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29040
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29041
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29042
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1190 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29043
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
29044
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29045
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1190 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29046
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29047
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1190 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29048
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29049
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29050
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29051
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29052
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29053
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29054
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m 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" = 1191) LIMIT 1
|
29055
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1191], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29056
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29057
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29058
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.8ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 272 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1191) LIMIT 1
|
29059
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29060
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29061
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29062
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1191], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29063
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29064
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29065
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29066
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29067
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29068
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29069
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29070
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1207 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29071
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29072
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1207 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
29073
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1191]]
|
29074
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
29075
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1191 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
29076
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29077
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29078
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29079
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29080
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29081
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29082
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1192 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29083
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1192], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29084
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29085
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1192 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[0m
|
29086
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29087
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'DjO7VXBwUnyBPPa0KzfT6Qh8uwCbKClIQGq6Ci2SogGg' LIMIT 1[0m
|
29088
|
+
[1m[35mSQL (0.7ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1192], ["target_type", "User"], ["token", "DjO7VXBwUnyBPPa0KzfT6Qh8uwCbKClIQGq6Ci2SogGg"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29089
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29090
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29091
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29092
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29093
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29094
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29095
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29096
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1193 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29097
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1193], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29098
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29099
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1193 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[0m
|
29100
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29101
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WMWmFq6t8Am8RxnubJFpBQW8sF-wmsgantH0JsOEsBSA' LIMIT 1[0m
|
29102
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1193], ["target_type", "User"], ["token", "WMWmFq6t8Am8RxnubJFpBQW8sF-wmsgantH0JsOEsBSA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29103
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29104
|
+
[1m[35mNotifyUser::UserHash Load (301.9ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1193 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
|
29105
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
29106
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29107
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
29108
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29109
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29110
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29111
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1194 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29112
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["state", "pending"], ["target_id", 1194], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29113
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29114
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1194 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
|
29115
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
29116
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'rtG9pLgeik7JsbbJky09GwmCVPTWZY2E-UjeYlug1PaQ' LIMIT 1
|
29117
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1194], ["target_type", "User"], ["token", "rtG9pLgeik7JsbbJky09GwmCVPTWZY2E-UjeYlug1PaQ"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29118
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29119
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29120
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 331 [["active", false], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29121
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29122
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1194 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
|
29123
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29124
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '0Ao3jLLC_rvE7vqcRWu_qwNWy-e6yqV91kUe2lyJH_iQ' LIMIT 1
|
29125
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1194], ["target_type", "User"], ["token", "0Ao3jLLC_rvE7vqcRWu_qwNWy-e6yqV91kUe2lyJH_iQ"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29126
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29127
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29128
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29129
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29130
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29131
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29132
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29133
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 1195) LIMIT 1[0m
|
29134
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1195], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29135
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29136
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29137
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 273 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1195) LIMIT 1[0m
|
29138
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29139
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29140
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1195 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29141
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
29142
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29143
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29144
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29145
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29146
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29147
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
29148
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m 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" = 1196) LIMIT 1
|
29149
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1196], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29150
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
29151
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29152
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 274 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1196) LIMIT 1
|
29153
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29154
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29155
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1196 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29156
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29157
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29158
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29159
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29160
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29161
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29162
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29163
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 1197) LIMIT 1[0m
|
29164
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1197], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29165
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29166
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29167
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 275 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1197) LIMIT 1[0m
|
29168
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29169
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29170
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m 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" = 1197) LIMIT 1
|
29171
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
29172
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1197 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29173
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1197 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29174
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29175
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 275]]
|
29176
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29177
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1197 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29178
|
+
[1m[35m (1.0ms)[0m ROLLBACK
|
29179
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29180
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
29181
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29182
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29183
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29184
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1198 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29185
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1198], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29186
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29187
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29188
|
+
[1m[35m (0.3ms)[0m BEGIN
|
29189
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29190
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29191
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29192
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29193
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-puxPxAp72Cy4jigsa5zPQRa-JMDWajTSRdd88iLbTsw' LIMIT 1[0m
|
29194
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1199], ["target_type", "User"], ["token", "-puxPxAp72Cy4jigsa5zPQRa-JMDWajTSRdd88iLbTsw"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29195
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29196
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29197
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29198
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '-puxPxAp72Cy4jigsa5zPQRa-JMDWajTSRdd88iLbTsw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
29199
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29200
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29201
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29202
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29203
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29204
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29205
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5fCeppigtPQt3LQEPfIeAwernZR5_gpIZ0Mv9PGWliRg' LIMIT 1[0m
|
29206
|
+
[1m[35mSQL (0.6ms)[0m 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", Sat, 15 Nov 2014 10:47:02 UTC +00:00], ["target_id", 1200], ["target_type", "User"], ["token", "5fCeppigtPQt3LQEPfIeAwernZR5_gpIZ0Mv9PGWliRg"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29207
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29208
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29209
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29210
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29211
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 334[0m [["active", false], ["updated_at", Sat, 15 Nov 2014 10:47:02 UTC +00:00]]
|
29212
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29213
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5fCeppigtPQt3LQEPfIeAwernZR5_gpIZ0Mv9PGWliRg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
29214
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29215
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29216
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29217
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00]]
|
29218
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29219
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29220
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '848IRbqzTWkVR79QkDZDVQPbUJ36Ef28tCQ0LhZ4-R5w' LIMIT 1
|
29221
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00], ["target_id", 1201], ["target_type", "User"], ["token", "848IRbqzTWkVR79QkDZDVQPbUJ36Ef28tCQ0LhZ4-R5w"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00]]
|
29222
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29223
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29224
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29225
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29226
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 335 [["active", false], ["updated_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00]]
|
29227
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29228
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29229
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29230
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29231
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00]]
|
29232
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29233
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29234
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '4rmn8p79fcHmeAXfBVLpsQvUT0CmJdAVV0byaqu_1UBw' LIMIT 1
|
29235
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00], ["target_id", 1202], ["target_type", "User"], ["token", "4rmn8p79fcHmeAXfBVLpsQvUT0CmJdAVV0byaqu_1UBw"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:47:03 UTC +00:00]]
|
29236
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29237
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29238
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29239
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29240
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29241
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29242
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29243
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29244
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29245
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
29246
|
+
[1m[35m (0.1ms)[0m BEGIN
|
29247
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29248
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29249
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29250
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29251
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29252
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29253
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29254
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29255
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
29256
|
+
[1m[36mSQL (3.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29257
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29258
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
29259
|
+
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
|
29260
|
+
Completed 200 OK in 10ms (Views: 7.4ms | ActiveRecord: 0.0ms)
|
29261
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
29262
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29263
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29264
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29265
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29266
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
29267
|
+
[1m[36m (1.2ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1204 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29268
|
+
[1m[35mSQL (1.2ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1204], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29269
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29270
|
+
Processing by NotifyUser::NotificationsController#index as JSON
|
29271
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1204 AND "notify_user_notifications"."target_type" = 'User'
|
29272
|
+
[1m[36mNotifyUser::BaseNotification Load (1.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1204 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
29273
|
+
Completed 200 OK in 15ms (Views: 8.1ms | ActiveRecord: 1.7ms)
|
29274
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
29275
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29276
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29277
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29278
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29279
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29280
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1205 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29281
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1205], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29282
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29283
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29284
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1205 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29285
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1205], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29286
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29287
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29288
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1205 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29289
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1205], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29290
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29291
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
29292
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1205 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
29293
|
+
Completed 200 OK in 25ms (Views: 23.5ms | ActiveRecord: 0.6ms)
|
29294
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29295
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29296
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29297
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29298
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29299
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29300
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1206 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29301
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1206], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29302
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29303
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29304
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1206 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29305
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1206], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29306
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29307
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29308
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1206 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29309
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1206], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29310
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29311
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
29312
|
+
Parameters: {"id"=>"1216"}
|
29313
|
+
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1206 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1216') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29314
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29315
|
+
[1m[36mUser Load (0.8ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1206]]
|
29316
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1206 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29317
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1216[0m [["state", "read"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29318
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29319
|
+
Completed 200 OK in 16ms (Views: 1.5ms | ActiveRecord: 3.5ms)
|
29320
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1216 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29321
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29322
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29323
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29324
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29325
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29326
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29327
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1207 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29328
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1207], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29329
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29330
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
29331
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1207 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29332
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1207], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29333
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29334
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29335
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1207 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29336
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1207], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29337
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29338
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
29339
|
+
Parameters: {"id"=>"1219"}
|
29340
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1207 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1219') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29341
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29342
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1207]]
|
29343
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1207 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29344
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1219[0m [["state", "read"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29345
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29346
|
+
Completed 200 OK in 8ms (Views: 0.4ms | ActiveRecord: 2.9ms)
|
29347
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
29348
|
+
Parameters: {"id"=>"1219"}
|
29349
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1207 AND "notify_user_notifications"."target_type" = 'User' AND (id = '1219') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29350
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.4ms)
|
29351
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29352
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29353
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29354
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29355
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29356
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29357
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1208 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29358
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1208], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29359
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29360
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
29361
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1208 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29362
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 1208], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29363
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29364
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29365
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1208 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29366
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 1208], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29367
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29368
|
+
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
29369
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1208 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
29370
|
+
Redirected to http://test.host/notify_user/notifications
|
29371
|
+
Completed 302 Found in 2ms (ActiveRecord: 0.9ms)
|
29372
|
+
[1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1208 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
29373
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29374
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29375
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29376
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29377
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29378
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29379
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1209 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29380
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1209], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29381
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29382
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
29383
|
+
Parameters: {"ids"=>["1225"]}
|
29384
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1209 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1225'))
|
29385
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1209 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1225'))[0m
|
29386
|
+
Completed 200 OK in 5ms (Views: 2.2ms | ActiveRecord: 1.1ms)
|
29387
|
+
[1m[35mNewPostNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1225]]
|
29388
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29389
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29390
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29391
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29392
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29393
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29394
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1210 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29395
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1210], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29396
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29397
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
29398
|
+
Parameters: {"ids"=>["1226"]}
|
29399
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 1210 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1226'))
|
29400
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1210 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('1226'))[0m
|
29401
|
+
Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 1.0ms)
|
29402
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29403
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29404
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29405
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29406
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29407
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29408
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1211 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29409
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1211], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29410
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29411
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1211 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29412
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
29413
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
29414
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1211 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29415
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29416
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m 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" = 1211) LIMIT 1
|
29417
|
+
[1m[36mSQL (1.3ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["target_id", 1211], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29418
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29419
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1211 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29420
|
+
Completed 200 OK in 18ms (Views: 0.3ms | ActiveRecord: 3.3ms)
|
29421
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1211 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29422
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29423
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29424
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29425
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29426
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29427
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29428
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1212 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29429
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1212], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29430
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29431
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1212 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29432
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
29433
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
29434
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1212 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29435
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1212 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29436
|
+
Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.9ms)
|
29437
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1212 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29438
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29439
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29440
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29441
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29442
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29443
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29444
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1213 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29445
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1213], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29446
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29447
|
+
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
29448
|
+
Parameters: {"type"=>"NewPostNotification"}
|
29449
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
29450
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1213 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29451
|
+
Completed 302 Found in 3ms (ActiveRecord: 0.5ms)
|
29452
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
|
29453
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29454
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29455
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29456
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29457
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29458
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
29459
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1214 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29460
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1214], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29461
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29462
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29463
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 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" = 1214) LIMIT 1[0m
|
29464
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["target_id", 1214], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29465
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29466
|
+
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
29467
|
+
Parameters: {"type"=>"NewPostNotification"}
|
29468
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.5ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1214 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29469
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29470
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 277]]
|
29471
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29472
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
29473
|
+
Completed 302 Found in 4ms (ActiveRecord: 1.5ms)
|
29474
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
|
29475
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29476
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29477
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29478
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29479
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29480
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29481
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1215 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29482
|
+
[1m[35mSQL (0.6ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1215], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29483
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29484
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1215 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
|
29485
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29486
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'iJPgeTqW-ybs-wLitBpaKQXI8jpfFcoJfTnxmy_MP-EQ' LIMIT 1
|
29487
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["target_id", 1215], ["target_type", "User"], ["token", "iJPgeTqW-ybs-wLitBpaKQXI8jpfFcoJfTnxmy_MP-EQ"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29488
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29489
|
+
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
29490
|
+
Parameters: {"type"=>"NewPostNotification", "token"=>"iJPgeTqW-ybs-wLitBpaKQXI8jpfFcoJfTnxmy_MP-EQ"}
|
29491
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'iJPgeTqW-ybs-wLitBpaKQXI8jpfFcoJfTnxmy_MP-EQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
29492
|
+
[1m[35mNotifyUser::UserHash Load (0.4ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'iJPgeTqW-ybs-wLitBpaKQXI8jpfFcoJfTnxmy_MP-EQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
|
29493
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1215]]
|
29494
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29495
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 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" = 1215) LIMIT 1[0m
|
29496
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["target_id", 1215], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29497
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29498
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29499
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 337[0m [["active", false], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29500
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29501
|
+
Completed 200 OK in 11ms (Views: 0.4ms | ActiveRecord: 3.8ms)
|
29502
|
+
[1m[36mNotifyUser::UserHash Load (0.4ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1[0m
|
29503
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29504
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29505
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m 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
|
29506
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29507
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29508
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "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[0m
|
29509
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29510
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
29511
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29512
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29513
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m 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
|
29514
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29515
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29516
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "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[0m
|
29517
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29518
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
29519
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29520
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29521
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m 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
|
29522
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29523
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29524
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "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[0m
|
29525
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29526
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
29527
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29528
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29529
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29530
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29531
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29532
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29533
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1216 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29534
|
+
[1m[36mSQL (0.9ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["state", "pending"], ["target_id", 1216], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29535
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29536
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 1216 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))[0m
|
29537
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29538
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29539
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29540
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29541
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29542
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29543
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1217 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29544
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["state", "pending"], ["target_id", 1217], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29545
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29546
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29547
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29548
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29549
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29550
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29551
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29552
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1218 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29553
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:04 UTC +00:00], ["state", "pending"], ["target_id", 1218], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:04 UTC +00:00]]
|
29554
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29555
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29556
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29557
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29558
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29559
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29560
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29561
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1219 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29562
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1219], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29563
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29564
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
29565
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1219 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29566
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1235[0m [["params", {"listing_id"=>1}], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29567
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29568
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
29569
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
29570
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29571
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29572
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29573
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29574
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29575
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1220 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29576
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1220], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29577
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29578
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29579
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1220 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29580
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1236[0m [["params", {"listing_id"=>1}], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29581
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29582
|
+
[1m[36mNewPostNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
29583
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29584
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29585
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29586
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29587
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
29588
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
29589
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1221 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29590
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1221], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29591
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29592
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29593
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1221 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29594
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1237[0m [["params", {:listing_id=>1}], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29595
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29596
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
29597
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
29598
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29599
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29600
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29601
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29602
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29603
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1222 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29604
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1222], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29605
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29606
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29607
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1222 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29608
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1238[0m [["params", {:listing_id=>1}], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29609
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29610
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1[0m
|
29611
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29612
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29613
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29614
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29615
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29616
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
29617
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1223 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29618
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1223], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29619
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29620
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29621
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29622
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
29623
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29624
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29625
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29626
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29627
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29628
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1224 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29629
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1224], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29630
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29631
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29632
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1224 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29633
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29634
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1224 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1240)[0m
|
29635
|
+
[1m[35mNotifyUser::BaseNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1240]]
|
29636
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1224]]
|
29637
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1224 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
29638
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29639
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1224]]
|
29640
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1224 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29641
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1240 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29642
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29643
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1240 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
29644
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1224]]
|
29645
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1224 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
29646
|
+
[1m[36mNewPostNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1240 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29647
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1224]]
|
29648
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1224 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
29649
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29650
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29651
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29652
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29653
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29654
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
29655
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1225 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29656
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1225], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29657
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29658
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29659
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1225 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29660
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29661
|
+
[1m[35m (0.7ms)[0m 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" = 1225 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1241)
|
29662
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 1241]]
|
29663
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1225]]
|
29664
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1225 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
29665
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29666
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1225]]
|
29667
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1225 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29668
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1241[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29669
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29670
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1241 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29671
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1225]]
|
29672
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1225 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
29673
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1241 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
29674
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1225]]
|
29675
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1225 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
29676
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29677
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29678
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29679
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29680
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29681
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29682
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1226 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29683
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1226], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29684
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29685
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29686
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1226 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29687
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
29688
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 1226 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1242)[0m
|
29689
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29690
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1226 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29691
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1226], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29692
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29693
|
+
[1m[35m (0.6ms)[0m 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" = 1226 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 1243)
|
29694
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29695
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29696
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29697
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29698
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29699
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29700
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1227 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29701
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1227], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29702
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29703
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29704
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1227 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29705
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1227], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29706
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29707
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1245]]
|
29708
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1227]]
|
29709
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m 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" = 1227 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
29710
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29711
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1227]]
|
29712
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1227 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29713
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1244 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29714
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29715
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29716
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1227]]
|
29717
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1227 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29718
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1245[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29719
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29720
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1227 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
29721
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1227 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
|
29722
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29723
|
+
[1m[35mNotifyUser::UserHash Exists (0.3ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'uduukAbVWYBUG2XOLlVjbQKqJcw4-PiWZfXxeuRAbWmA' LIMIT 1
|
29724
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1227], ["target_type", "User"], ["token", "uduukAbVWYBUG2XOLlVjbQKqJcw4-PiWZfXxeuRAbWmA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29725
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29726
|
+
|
29727
|
+
Sent mail to user@example.com (7.4ms)
|
29728
|
+
Date: Sat, 15 Nov 2014 21:50:05 +1100
|
29729
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
29730
|
+
To: user@example.com
|
29731
|
+
Message-ID: <54672fdd33bdc_44c3fef0d865bf024375@wp.local.mail>
|
29732
|
+
Subject: Rails404: You have new Newpostnotification notifications.
|
29733
|
+
Mime-Version: 1.0
|
29734
|
+
Content-Type: text/html;
|
29735
|
+
charset=UTF-8
|
29736
|
+
Content-Transfer-Encoding: quoted-printable
|
29737
|
+
|
29738
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
29739
|
+
tml4/strict.dtd">
|
29740
|
+
<html>
|
29741
|
+
<head>
|
29742
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
29743
|
+
"/>
|
29744
|
+
<title></title>
|
29745
|
+
</head>
|
29746
|
+
|
29747
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
29748
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
29749
|
+
ing: optimizeLegibility;">
|
29750
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
29751
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
29752
|
+
Logo
|
29753
|
+
</div>
|
29754
|
+
</div>
|
29755
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
29756
|
+
">
|
29757
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
29758
|
+
=
|
29759
|
+
|
29760
|
+
<div>
|
29761
|
+
New Post Notification happened. =
|
29762
|
+
|
29763
|
+
</div>
|
29764
|
+
<div>
|
29765
|
+
New Post Notification happened. =
|
29766
|
+
|
29767
|
+
</div>
|
29768
|
+
|
29769
|
+
</div>
|
29770
|
+
</div>
|
29771
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
29772
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
29773
|
+
<p style=3D"text-align: center;">
|
29774
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
29775
|
+
_unsubscribe?token=3DuduukAbVWYBUG2XOLlVjbQKqJcw4-PiWZfXxeuRAbWmA&typ=
|
29776
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
29777
|
+
</p>
|
29778
|
+
<p style=3D"text-align: center;">
|
29779
|
+
This is the default generated layout. A privacy declaration could g=
|
29780
|
+
o here.
|
29781
|
+
</p>
|
29782
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
29783
|
+
=C2=A9 MyCompany Pty Ltd
|
29784
|
+
</p>
|
29785
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
29786
|
+
ABN 123 456 789
|
29787
|
+
</p>
|
29788
|
+
</div>
|
29789
|
+
</div>
|
29790
|
+
</body>
|
29791
|
+
</html>=
|
29792
|
+
|
29793
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29794
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29795
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29796
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29797
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29798
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29799
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1228 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29800
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1228], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29801
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29802
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 1246]]
|
29803
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1228]]
|
29804
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m 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" = 1228 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
29805
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29806
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1228]]
|
29807
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1228 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29808
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1246 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29809
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29810
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1246 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
29811
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1228]]
|
29812
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1228 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
29813
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1228 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[0m
|
29814
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29815
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'pCSIFEkbruqnuKnb18si5AVz5svdrggr3oOimB9EwceA' LIMIT 1[0m
|
29816
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1228], ["target_type", "User"], ["token", "pCSIFEkbruqnuKnb18si5AVz5svdrggr3oOimB9EwceA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29817
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29818
|
+
|
29819
|
+
Sent mail to user@example.com (6.0ms)
|
29820
|
+
Date: Sat, 15 Nov 2014 21:50:05 +1100
|
29821
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
29822
|
+
To: user@example.com
|
29823
|
+
Message-ID: <54672fdd3df38_44c3fef0d865bf0244fe@wp.local.mail>
|
29824
|
+
Subject: Rails404: You have a new Newpostnotification notification.
|
29825
|
+
Mime-Version: 1.0
|
29826
|
+
Content-Type: text/html;
|
29827
|
+
charset=UTF-8
|
29828
|
+
Content-Transfer-Encoding: quoted-printable
|
29829
|
+
|
29830
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
29831
|
+
tml4/strict.dtd">
|
29832
|
+
<html>
|
29833
|
+
<head>
|
29834
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
29835
|
+
"/>
|
29836
|
+
<title></title>
|
29837
|
+
</head>
|
29838
|
+
|
29839
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
29840
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
29841
|
+
ing: optimizeLegibility;">
|
29842
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
29843
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
29844
|
+
Logo
|
29845
|
+
</div>
|
29846
|
+
</div>
|
29847
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
29848
|
+
">
|
29849
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
29850
|
+
New Post Notification happened.
|
29851
|
+
|
29852
|
+
</div>
|
29853
|
+
</div>
|
29854
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
29855
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
29856
|
+
<p style=3D"text-align: center;">
|
29857
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
29858
|
+
_unsubscribe?token=3DpCSIFEkbruqnuKnb18si5AVz5svdrggr3oOimB9EwceA&typ=
|
29859
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
29860
|
+
</p>
|
29861
|
+
<p style=3D"text-align: center;">
|
29862
|
+
This is the default generated layout. A privacy declaration could g=
|
29863
|
+
o here.
|
29864
|
+
</p>
|
29865
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
29866
|
+
=C2=A9 MyCompany Pty Ltd
|
29867
|
+
</p>
|
29868
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
29869
|
+
ABN 123 456 789
|
29870
|
+
</p>
|
29871
|
+
</div>
|
29872
|
+
</div>
|
29873
|
+
</body>
|
29874
|
+
</html>=
|
29875
|
+
|
29876
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1228 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
29877
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
29878
|
+
[1m[35m (0.2ms)[0m BEGIN
|
29879
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
29880
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29881
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29882
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29883
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 1229) LIMIT 1[0m
|
29884
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1229], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29885
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29886
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29887
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1229 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29888
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
29889
|
+
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29890
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29891
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29892
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29893
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29894
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29895
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
29896
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1230 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29897
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1230], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29898
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29899
|
+
[1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 1247 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
29900
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1230]]
|
29901
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1230 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
29902
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
29903
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
29904
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29905
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29906
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29907
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29908
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1231 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29909
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1231], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29910
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29911
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29912
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1231 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29913
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1231], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29914
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29915
|
+
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 1249]]
|
29916
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1231]]
|
29917
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "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" = 1231 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
29918
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29919
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1231]]
|
29920
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1231 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
29921
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1248[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29922
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
29923
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
29924
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1231]]
|
29925
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1231 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
29926
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1249 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29927
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29928
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1231 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
29929
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1231 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[0m
|
29930
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
29931
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zJAKR2Nwy9gNlr6M0ehQVg8Y8cDkOotoct_Py1fJJ0LA' LIMIT 1[0m
|
29932
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1231], ["target_type", "User"], ["token", "zJAKR2Nwy9gNlr6M0ehQVg8Y8cDkOotoct_Py1fJJ0LA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
29933
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
29934
|
+
|
29935
|
+
Sent mail to user@example.com (5.5ms)
|
29936
|
+
Date: Sat, 15 Nov 2014 21:50:05 +1100
|
29937
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
29938
|
+
To: user@example.com
|
29939
|
+
Message-ID: <54672fdd51d62_44c3fef0d865bf02453a@wp.local.mail>
|
29940
|
+
Subject: Rails404: You have new Newpostnotification notifications.
|
29941
|
+
Mime-Version: 1.0
|
29942
|
+
Content-Type: text/html;
|
29943
|
+
charset=UTF-8
|
29944
|
+
Content-Transfer-Encoding: quoted-printable
|
29945
|
+
|
29946
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
29947
|
+
tml4/strict.dtd">
|
29948
|
+
<html>
|
29949
|
+
<head>
|
29950
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
29951
|
+
"/>
|
29952
|
+
<title></title>
|
29953
|
+
</head>
|
29954
|
+
|
29955
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
29956
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
29957
|
+
ing: optimizeLegibility;">
|
29958
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
29959
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
29960
|
+
Logo
|
29961
|
+
</div>
|
29962
|
+
</div>
|
29963
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
29964
|
+
">
|
29965
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
29966
|
+
=
|
29967
|
+
|
29968
|
+
<div>
|
29969
|
+
New Post Notification happened. =
|
29970
|
+
|
29971
|
+
</div>
|
29972
|
+
<div>
|
29973
|
+
New Post Notification happened. =
|
29974
|
+
|
29975
|
+
</div>
|
29976
|
+
|
29977
|
+
</div>
|
29978
|
+
</div>
|
29979
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
29980
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
29981
|
+
<p style=3D"text-align: center;">
|
29982
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
29983
|
+
_unsubscribe?token=3DzJAKR2Nwy9gNlr6M0ehQVg8Y8cDkOotoct_Py1fJJ0LA&typ=
|
29984
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
29985
|
+
</p>
|
29986
|
+
<p style=3D"text-align: center;">
|
29987
|
+
This is the default generated layout. A privacy declaration could g=
|
29988
|
+
o here.
|
29989
|
+
</p>
|
29990
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
29991
|
+
=C2=A9 MyCompany Pty Ltd
|
29992
|
+
</p>
|
29993
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
29994
|
+
ABN 123 456 789
|
29995
|
+
</p>
|
29996
|
+
</div>
|
29997
|
+
</div>
|
29998
|
+
</body>
|
29999
|
+
</html>=
|
30000
|
+
|
30001
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30002
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30003
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30004
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30005
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30006
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30007
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1232 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30008
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1232], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30009
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30010
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 1250]]
|
30011
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1232]]
|
30012
|
+
[1m[36mNewPostNotification Load (0.4ms)[0m [1mSELECT "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" = 1232 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
30013
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30014
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1232]]
|
30015
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1232 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30016
|
+
[1m[36mSQL (0.8ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1250[0m [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30017
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30018
|
+
[1m[36mNewPostNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1250 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
30019
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 1232]]
|
30020
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1232 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
30021
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1232 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
|
30022
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30023
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3fgccd6b3yW6RnEtWjbmQwTmD8bPGyEnj27W20KcQSBQ' LIMIT 1
|
30024
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1232], ["target_type", "User"], ["token", "3fgccd6b3yW6RnEtWjbmQwTmD8bPGyEnj27W20KcQSBQ"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30025
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30026
|
+
|
30027
|
+
Sent mail to user@example.com (6.6ms)
|
30028
|
+
Date: Sat, 15 Nov 2014 21:50:05 +1100
|
30029
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
30030
|
+
To: user@example.com
|
30031
|
+
Message-ID: <54672fdd5af46_44c3fef0d865bf02461c@wp.local.mail>
|
30032
|
+
Subject: Rails404: You have a new Newpostnotification notification.
|
30033
|
+
Mime-Version: 1.0
|
30034
|
+
Content-Type: text/html;
|
30035
|
+
charset=UTF-8
|
30036
|
+
Content-Transfer-Encoding: quoted-printable
|
30037
|
+
|
30038
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
30039
|
+
tml4/strict.dtd">
|
30040
|
+
<html>
|
30041
|
+
<head>
|
30042
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
30043
|
+
"/>
|
30044
|
+
<title></title>
|
30045
|
+
</head>
|
30046
|
+
|
30047
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
30048
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
30049
|
+
ing: optimizeLegibility;">
|
30050
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
30051
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
30052
|
+
Logo
|
30053
|
+
</div>
|
30054
|
+
</div>
|
30055
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
30056
|
+
">
|
30057
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
30058
|
+
New Post Notification happened.
|
30059
|
+
|
30060
|
+
</div>
|
30061
|
+
</div>
|
30062
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
30063
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
30064
|
+
<p style=3D"text-align: center;">
|
30065
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
30066
|
+
_unsubscribe?token=3D3fgccd6b3yW6RnEtWjbmQwTmD8bPGyEnj27W20KcQSBQ&typ=
|
30067
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
30068
|
+
</p>
|
30069
|
+
<p style=3D"text-align: center;">
|
30070
|
+
This is the default generated layout. A privacy declaration could g=
|
30071
|
+
o here.
|
30072
|
+
</p>
|
30073
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
30074
|
+
=C2=A9 MyCompany Pty Ltd
|
30075
|
+
</p>
|
30076
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
30077
|
+
ABN 123 456 789
|
30078
|
+
</p>
|
30079
|
+
</div>
|
30080
|
+
</div>
|
30081
|
+
</body>
|
30082
|
+
</html>=
|
30083
|
+
|
30084
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
30085
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30086
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
30087
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30088
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30089
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30090
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1233 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30091
|
+
[1m[35mSQL (0.6ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1233], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30092
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30093
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30094
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1233 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30095
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30096
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1233 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30097
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30098
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1233 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30099
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1251 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30100
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30101
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1251 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
30102
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1233]]
|
30103
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1233 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
30104
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1233 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
30105
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30106
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30107
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30108
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30109
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30110
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30111
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m 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" = 1234) LIMIT 1
|
30112
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1234], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30113
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30114
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30115
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1234 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30116
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
30117
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30118
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1234 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30119
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
30120
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1234 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30121
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30122
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30123
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30124
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30125
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30126
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30127
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m 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" = 1235) LIMIT 1
|
30128
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1235], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30129
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30130
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
30131
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."id" != 281 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1235) LIMIT 1
|
30132
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30133
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30134
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1235 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30135
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1235], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30136
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30137
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
30138
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1235 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30139
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
30140
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1235 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30141
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30142
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1235 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30143
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1252 [["state", "sent"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30144
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30145
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 1252 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
30146
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 1235]]
|
30147
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1235 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
30148
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1235 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
30149
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30150
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30151
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30152
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30153
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
30154
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30155
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1236 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30156
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1236], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30157
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30158
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1236 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[0m
|
30159
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30160
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '7owYAVGs6itdTMtpmeOxsA8QHLiiuKWudw5hgoTYodeA' LIMIT 1[0m
|
30161
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1236], ["target_type", "User"], ["token", "7owYAVGs6itdTMtpmeOxsA8QHLiiuKWudw5hgoTYodeA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30162
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30163
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30164
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30165
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30166
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30167
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30168
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30169
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1237 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30170
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1237], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30171
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30172
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1237 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[0m
|
30173
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30174
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'W8JLd8bws9e8SLvg8AtKygwWqy3vZ6HBom5mo6WP_89g' LIMIT 1[0m
|
30175
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1237], ["target_type", "User"], ["token", "W8JLd8bws9e8SLvg8AtKygwWqy3vZ6HBom5mo6WP_89g"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30176
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30177
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1237 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
|
30178
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
30179
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30180
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
30181
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30182
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30183
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30184
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1238 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30185
|
+
[1m[35mSQL (0.5ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["state", "pending"], ["target_id", 1238], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30186
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30187
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1238 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
|
30188
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
30189
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'eMlXr2CFWCehojmgH9BnkQxnT-x_11-GtB_3i2ep-aEA' LIMIT 1
|
30190
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1238], ["target_type", "User"], ["token", "eMlXr2CFWCehojmgH9BnkQxnT-x_11-GtB_3i2ep-aEA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30191
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30192
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30193
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 344 [["active", false], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30194
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30195
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 1238 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
|
30196
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
30197
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'yea-fj6ajwIyjTzEXDTpEwYc6zeRAa8g54WRZiAJiI9A' LIMIT 1
|
30198
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1238], ["target_type", "User"], ["token", "yea-fj6ajwIyjTzEXDTpEwYc6zeRAa8g54WRZiAJiI9A"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30199
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30200
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
30201
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30202
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30203
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30204
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30205
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30206
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 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" = 1239) LIMIT 1[0m
|
30207
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1239], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30208
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30209
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30210
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 282 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1239) LIMIT 1[0m
|
30211
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30212
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30213
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1239 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30214
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
30215
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30216
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30217
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30218
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30219
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30220
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30221
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m 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" = 1240) LIMIT 1
|
30222
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1240], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30223
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30224
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30225
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 283 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1240) LIMIT 1
|
30226
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30227
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30228
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1240 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30229
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
30230
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30231
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30232
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30233
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30234
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30235
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30236
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 1241) LIMIT 1[0m
|
30237
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1241], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30238
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30239
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30240
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 284 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 1241) LIMIT 1[0m
|
30241
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30242
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30243
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m 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" = 1241) LIMIT 1
|
30244
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
30245
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1241 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30246
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1241 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30247
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30248
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 284]]
|
30249
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30250
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1241 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
30251
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30252
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30253
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30254
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30255
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30256
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30257
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 1242 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
30258
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT 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"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 1242], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30259
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30260
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30261
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30262
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30263
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30264
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30265
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30266
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3cSXXy_vzdimJ-6jz8IMrw9W_kQs1mqqZPiWac2okILA' LIMIT 1[0m
|
30267
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1243], ["target_type", "User"], ["token", "3cSXXy_vzdimJ-6jz8IMrw9W_kQs1mqqZPiWac2okILA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30268
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30269
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30270
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30271
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '3cSXXy_vzdimJ-6jz8IMrw9W_kQs1mqqZPiWac2okILA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
30272
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30273
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30274
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30275
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30276
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30277
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30278
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'hHbDdrnxXK5eAZ_J64C_owNsKldTOix4-5NACQwK9NHw' LIMIT 1[0m
|
30279
|
+
[1m[35mSQL (0.4ms)[0m 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", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1244], ["target_type", "User"], ["token", "hHbDdrnxXK5eAZ_J64C_owNsKldTOix4-5NACQwK9NHw"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30280
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30281
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30282
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30283
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30284
|
+
[1m[36mSQL (0.7ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 347[0m [["active", false], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30285
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30286
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'hHbDdrnxXK5eAZ_J64C_owNsKldTOix4-5NACQwK9NHw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
30287
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
30288
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30289
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
30290
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30291
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30292
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30293
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'dAr8Z-0SQsVvlXKzGCsE9wNlQxrJ64k3wp7Jdo3OkskA' LIMIT 1
|
30294
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1245], ["target_type", "User"], ["token", "dAr8Z-0SQsVvlXKzGCsE9wNlQxrJ64k3wp7Jdo3OkskA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30295
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30296
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30297
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30298
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30299
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 348 [["active", false], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30300
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
30301
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
30302
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
30303
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
30304
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["email", "user@example.com"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30305
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30306
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30307
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'EtGWSg7wT2vBydeqjK5v-QTWV2w-XR9b0WXtbLUUEsHA' LIMIT 1
|
30308
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["created_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00], ["target_id", 1246], ["target_type", "User"], ["token", "EtGWSg7wT2vBydeqjK5v-QTWV2w-XR9b0WXtbLUUEsHA"], ["type", "NewPostNotification"], ["updated_at", Sat, 15 Nov 2014 10:50:05 UTC +00:00]]
|
30309
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30310
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
30311
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
30312
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30313
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30314
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30315
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30316
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30317
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30318
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30319
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30320
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30321
|
+
[1m[35m (0.3ms)[0m BEGIN
|
30322
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30323
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30324
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
30325
|
+
[1m[35m (0.2ms)[0m BEGIN
|
30326
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|