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