notify_user 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f505749dbb731cb8d626b84eb0f553add13cae5
|
4
|
+
data.tar.gz: db61e5684a71778eb1cf9e6d22c63ef79fa1bdea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e25abe6a48afe80fb60a4a00a791e25083994073ad04739f73bce3b193a0c4eb25d48392cbab2efe457b6312525bb755ec4032b888df9171c145d17340a984ac
|
7
|
+
data.tar.gz: e935f3e451ed18b6eab7e05b259c0970f70ee20070456e5f95d570ec62cdb205ce0ff533a4eb1b994bd7b907139625f26eacbeeecc2877415e9ee7b017a55cf3
|
@@ -126,7 +126,7 @@ module NotifyUser
|
|
126
126
|
## Channels
|
127
127
|
class_attribute :channels
|
128
128
|
self.channels = {
|
129
|
-
|
129
|
+
|
130
130
|
}
|
131
131
|
|
132
132
|
# Not sure about this. The JSON and web feeds don't fit into channels, because nothing is broadcast through
|
@@ -0,0 +1,32 @@
|
|
1
|
+
module NotifyUser
|
2
|
+
class PubNub
|
3
|
+
|
4
|
+
#sends push notification
|
5
|
+
def self.push_notification(notification)
|
6
|
+
pubnub = Pubnub.new(
|
7
|
+
:origin => ENV['PN_ORIGIN'],
|
8
|
+
:publish_key => ENV['PN_PUBLISH_KEY'],
|
9
|
+
:subscribe_key => ENV['PN_SUBSCRIBE_KEY'],
|
10
|
+
:secret_key => ENV['PN_SECRET_KEY'],
|
11
|
+
:logger => Logger.new(STDOUT)
|
12
|
+
)
|
13
|
+
|
14
|
+
pubnub.grant( auth_key: ENV['PN_SECRET_KEY'],
|
15
|
+
:read => true,
|
16
|
+
:write => true,
|
17
|
+
:ttl => 525600,
|
18
|
+
:http_sync => true
|
19
|
+
)
|
20
|
+
|
21
|
+
pubnub.publish(
|
22
|
+
channel: notification.target.uuid,
|
23
|
+
http_sync: true,
|
24
|
+
:message => {
|
25
|
+
aps: {
|
26
|
+
alert: notification.params["message"]
|
27
|
+
}
|
28
|
+
}
|
29
|
+
)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
data/lib/notify_user/version.rb
CHANGED
@@ -15806,3 +15806,2189 @@ o here.
|
|
15806
15806
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
15807
15807
|
[1m[35m (0.2ms)[0m BEGIN
|
15808
15808
|
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
15809
|
+
[1m[36m (1.2ms)[0m [1mBEGIN[0m
|
15810
|
+
[1m[35m (1.0ms)[0m SAVEPOINT active_record_1
|
15811
|
+
[1m[36mSQL (15.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15812
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15813
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
15814
|
+
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
|
15815
|
+
Completed 200 OK in 17ms (Views: 13.1ms | ActiveRecord: 0.0ms)
|
15816
|
+
[1m[36m (0.5ms)[0m [1mROLLBACK[0m
|
15817
|
+
[1m[35m (0.3ms)[0m BEGIN
|
15818
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15819
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15820
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15821
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
15822
|
+
[1m[36m (5.0ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 633 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15823
|
+
[1m[35mSQL (3.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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 633], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15824
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15825
|
+
Processing by NotifyUser::NotificationsController#index as JSON
|
15826
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 633 AND "notify_user_notifications"."target_type" = 'User'
|
15827
|
+
[1m[36mNotifyUser::BaseNotification Load (3.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 633 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
15828
|
+
Completed 200 OK in 20ms (Views: 10.7ms | ActiveRecord: 3.7ms)
|
15829
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
15830
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15831
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
15832
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15833
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15834
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15835
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 634 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15836
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 634], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15837
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15838
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15839
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 634 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15840
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 634], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15841
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15842
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15843
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 634 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15844
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 634], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15845
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15846
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
15847
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 634 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
15848
|
+
Completed 200 OK in 34ms (Views: 32.5ms | ActiveRecord: 0.7ms)
|
15849
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
15850
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15851
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15852
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15853
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15854
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15855
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 635 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15856
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 635], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15857
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15858
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
15859
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 635 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15860
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 635], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15861
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15862
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
15863
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 635 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15864
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 635], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15865
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15866
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
15867
|
+
Parameters: {"id"=>"638"}
|
15868
|
+
[1m[36mNotifyUser::BaseNotification Load (0.9ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 635 AND "notify_user_notifications"."target_type" = 'User' AND (id = '638') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
15869
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15870
|
+
[1m[36mUser Load (0.9ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 635]]
|
15871
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 635 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15872
|
+
[1m[36mSQL (1.9ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 638[0m [["state", "read"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15873
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15874
|
+
Completed 200 OK in 24ms (Views: 1.8ms | ActiveRecord: 4.9ms)
|
15875
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 638 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
15876
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
15877
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15878
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15879
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15880
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15881
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15882
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 636 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15883
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 636], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15884
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15885
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15886
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 636 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15887
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 636], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15888
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15889
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15890
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 636 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15891
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 636], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15892
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15893
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
15894
|
+
Parameters: {"id"=>"641"}
|
15895
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 636 AND "notify_user_notifications"."target_type" = 'User' AND (id = '641') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
15896
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15897
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 636]]
|
15898
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 636 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15899
|
+
[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" = 641[0m [["state", "read"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15900
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15901
|
+
Completed 200 OK in 9ms (Views: 0.5ms | ActiveRecord: 3.1ms)
|
15902
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
15903
|
+
Parameters: {"id"=>"641"}
|
15904
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 636 AND "notify_user_notifications"."target_type" = 'User' AND (id = '641') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
15905
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.7ms)
|
15906
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
15907
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15908
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15909
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15910
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15911
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15912
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 637 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15913
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 637], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15914
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15915
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15916
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 637 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15917
|
+
[1m[36mSQL (11.3ms)[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 637], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15918
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15919
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
15920
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 637 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15921
|
+
[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", Thu, 09 Oct 2014 02:45:19 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 637], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:19 UTC +00:00]]
|
15922
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15923
|
+
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
15924
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 637 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
15925
|
+
Redirected to http://test.host/notify_user/notifications
|
15926
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.2ms)
|
15927
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 637 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
15928
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
15929
|
+
[1m[35m (0.2ms)[0m BEGIN
|
15930
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
15931
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15932
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15933
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15934
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 638 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15935
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 638], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15936
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15937
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
15938
|
+
Parameters: {"ids"=>["647"]}
|
15939
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 638 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('647'))
|
15940
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 638 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('647'))[0m
|
15941
|
+
Completed 200 OK in 5ms (Views: 2.1ms | ActiveRecord: 1.3ms)
|
15942
|
+
[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"."id" = $1 LIMIT 1 [["id", 647]]
|
15943
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
15944
|
+
[1m[35m (0.2ms)[0m BEGIN
|
15945
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15946
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15947
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15948
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15949
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 639 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15950
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 639], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15951
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
15952
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
15953
|
+
Parameters: {"ids"=>["648"]}
|
15954
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 639 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('648'))
|
15955
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 639 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('648'))[0m
|
15956
|
+
Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 1.3ms)
|
15957
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
15958
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15959
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
15960
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15961
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15962
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
15963
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 640 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15964
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 640], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15965
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15966
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 640 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15967
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
15968
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
15969
|
+
[1m[35m (0.8ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 640 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15970
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
15971
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.8ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 640) LIMIT 1
|
15972
|
+
[1m[36mSQL (2.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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 640], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15973
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15974
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 640 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
15975
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 640 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15976
|
+
Completed 200 OK in 25ms (Views: 0.4ms | ActiveRecord: 5.5ms)
|
15977
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 640 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15978
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
15979
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15980
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
15981
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15982
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
15983
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
15984
|
+
[1m[35m (0.9ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 641 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15985
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 641], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15986
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
15987
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.6ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 641 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15988
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
15989
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
15990
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.6ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 641 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15991
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 641 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
15992
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 641 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
15993
|
+
Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.7ms)
|
15994
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 641 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
15995
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
15996
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
15997
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
15998
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
15999
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16000
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16001
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 642 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16002
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 642], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16003
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16004
|
+
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
16005
|
+
Parameters: {"type"=>"NewPostNotification"}
|
16006
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16007
|
+
[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" = 642) LIMIT 1
|
16008
|
+
[1m[36mSQL (0.7ms)[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 642], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16009
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
16010
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
16011
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 642 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
16012
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 642 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16013
|
+
Completed 302 Found in 9ms (ActiveRecord: 2.7ms)
|
16014
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
16015
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
16016
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16017
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16018
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16019
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16020
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16021
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 643 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16022
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 643], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16023
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16024
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16025
|
+
[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" = 643) LIMIT 1
|
16026
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 643], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16027
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16028
|
+
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
16029
|
+
Parameters: {"type"=>"NewPostNotification"}
|
16030
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.6ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 643 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16031
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16032
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 152]]
|
16033
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16034
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
16035
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.9ms)
|
16036
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
|
16037
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
16038
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16039
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16040
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16041
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16042
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16043
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 644 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16044
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 644], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16045
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16046
|
+
[1m[36mNotifyUser::UserHash Load (2.3ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 644 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
|
16047
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
16048
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mk3iqEpHYbd-YO5EMtz_-QVMbX46-TPQSFlChvi1UZIw' LIMIT 1[0m
|
16049
|
+
[1m[35mSQL (2.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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 644], ["target_type", "User"], ["token", "mk3iqEpHYbd-YO5EMtz_-QVMbX46-TPQSFlChvi1UZIw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16050
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16051
|
+
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
16052
|
+
Parameters: {"type"=>"NewPostNotification", "token"=>"mk3iqEpHYbd-YO5EMtz_-QVMbX46-TPQSFlChvi1UZIw"}
|
16053
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mk3iqEpHYbd-YO5EMtz_-QVMbX46-TPQSFlChvi1UZIw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
16054
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mk3iqEpHYbd-YO5EMtz_-QVMbX46-TPQSFlChvi1UZIw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
16055
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 644]]
|
16056
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16057
|
+
[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" = 644) LIMIT 1
|
16058
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 644], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16059
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16060
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16061
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 186 [["active", false], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16062
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16063
|
+
Completed 200 OK in 13ms (Views: 0.5ms | ActiveRecord: 4.5ms)
|
16064
|
+
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
|
16065
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16066
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16067
|
+
[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
|
16068
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16069
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16070
|
+
[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
|
16071
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16072
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16073
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16074
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16075
|
+
[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
|
16076
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16077
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16078
|
+
[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
|
16079
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16080
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16081
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16082
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16083
|
+
[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
|
16084
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16085
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16086
|
+
[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
|
16087
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16088
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16089
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16090
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16091
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16092
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16093
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16094
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16095
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 645 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16096
|
+
[1m[35mSQL (0.8ms)[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 645], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16097
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16098
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 645 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
|
16099
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16100
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16101
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16102
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16103
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16104
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16105
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 646 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16106
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 646], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16107
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16108
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
16109
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16110
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16111
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16112
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16113
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16114
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 647 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16115
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 647], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16116
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16117
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16118
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16119
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16120
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16121
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16122
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16123
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 648 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16124
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 648], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16125
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16126
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16127
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 648 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16128
|
+
[1m[35mSQL (1.1ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 657 [["params", {"listing_id"=>1}], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16129
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16130
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
16131
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
16132
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16133
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16134
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16135
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16136
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16137
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 649 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16138
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 649], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16139
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16140
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16141
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 649 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16142
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 658 [["params", {"listing_id"=>1}], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16143
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16144
|
+
[1m[35mNewPostNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
16145
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16146
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16147
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16148
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16149
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16150
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16151
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 650 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16152
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 650], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16153
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16154
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16155
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 650 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16156
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 659 [["params", {:listing_id=>1}], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16157
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16158
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
16159
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16160
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16161
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16162
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16163
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16164
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16165
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 651 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16166
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 651], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16167
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16168
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16169
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 651 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16170
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 660 [["params", {:listing_id=>1}], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16171
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16172
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
16173
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16174
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16175
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16176
|
+
[1m[35mSQL (0.7ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16177
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16178
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16179
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 652 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16180
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 652], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16181
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16182
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
16183
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16184
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16185
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16186
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16187
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16188
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16189
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
16190
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 653 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16191
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 653], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16192
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16193
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16194
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 653 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16195
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16196
|
+
[1m[35m (0.8ms)[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" = 653 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 662)
|
16197
|
+
[1m[36mNotifyUser::BaseNotification Load (1.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 662]]
|
16198
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 653]]
|
16199
|
+
[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" = 653 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
16200
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16201
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 653]]
|
16202
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 653 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16203
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 662[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16204
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16205
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 662 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16206
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 653]]
|
16207
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 653 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
16208
|
+
[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" = 662 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
16209
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 653]]
|
16210
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 653 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
16211
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16212
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16213
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16214
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16215
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16216
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16217
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 654 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16218
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 654], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16219
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16220
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16221
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 654 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16222
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16223
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 654 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 663)[0m
|
16224
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 663]]
|
16225
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 654]]
|
16226
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 654 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
16227
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16228
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 654]]
|
16229
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 654 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16230
|
+
[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" = 663 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16231
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16232
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 663 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
16233
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 654]]
|
16234
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 654 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
16235
|
+
[1m[36mNewPostNotification Load (1.0ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 663 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16236
|
+
[1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 654]]
|
16237
|
+
[1m[36m (0.8ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 654 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
16238
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
16239
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16240
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16241
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16242
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16243
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16244
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 655 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16245
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 655], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16246
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16247
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16248
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 655 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16249
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16250
|
+
[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" = 655 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 664)
|
16251
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16252
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 655 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16253
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 655], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16254
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16255
|
+
[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" = 655 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 665)[0m
|
16256
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16257
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16258
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16259
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16260
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16261
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16262
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 656 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16263
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 656], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16264
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16265
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16266
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 656 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16267
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 656], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16268
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16269
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 667]]
|
16270
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]]
|
16271
|
+
[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" = 656 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
16272
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16273
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 656]]
|
16274
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 656 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16275
|
+
[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" = 666[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16276
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16277
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16278
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 656]]
|
16279
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 656 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16280
|
+
[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" = 667 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16281
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16282
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 656 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
16283
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 656 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
|
16284
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16285
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'f5pWZTHtFQ2aMsKJ-v_s7w-c-lSgqXJL-jzg5LHYj5TQ' LIMIT 1[0m
|
16286
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 656], ["target_type", "User"], ["token", "f5pWZTHtFQ2aMsKJ-v_s7w-c-lSgqXJL-jzg5LHYj5TQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16287
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16288
|
+
|
16289
|
+
Sent mail to user@example.com (19.0ms)
|
16290
|
+
Date: Thu, 09 Oct 2014 13:45:20 +1100
|
16291
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
16292
|
+
To: user@example.com
|
16293
|
+
Message-ID: <5435f6c08d7f1_7dd3ff86c865bec479c4@wp.local.mail>
|
16294
|
+
Subject: New Notifications
|
16295
|
+
Mime-Version: 1.0
|
16296
|
+
Content-Type: text/html;
|
16297
|
+
charset=UTF-8
|
16298
|
+
Content-Transfer-Encoding: quoted-printable
|
16299
|
+
|
16300
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
16301
|
+
tml4/strict.dtd">
|
16302
|
+
<html>
|
16303
|
+
<head>
|
16304
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
16305
|
+
"/>
|
16306
|
+
<title></title>
|
16307
|
+
</head>
|
16308
|
+
|
16309
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
16310
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
16311
|
+
ing: optimizeLegibility;">
|
16312
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
16313
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
16314
|
+
Logo
|
16315
|
+
</div>
|
16316
|
+
</div>
|
16317
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
16318
|
+
">
|
16319
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
16320
|
+
=
|
16321
|
+
|
16322
|
+
<div>
|
16323
|
+
New Post Notification happened. =
|
16324
|
+
|
16325
|
+
</div>
|
16326
|
+
<div>
|
16327
|
+
New Post Notification happened. =
|
16328
|
+
|
16329
|
+
</div>
|
16330
|
+
|
16331
|
+
</div>
|
16332
|
+
</div>
|
16333
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
16334
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
16335
|
+
<p style=3D"text-align: center;">
|
16336
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
16337
|
+
_unsubscribe?token=3Df5pWZTHtFQ2aMsKJ-v_s7w-c-lSgqXJL-jzg5LHYj5TQ&typ=
|
16338
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
16339
|
+
</p>
|
16340
|
+
<p style=3D"text-align: center;">
|
16341
|
+
This is the default generated layout. A privacy declaration could g=
|
16342
|
+
o here.
|
16343
|
+
</p>
|
16344
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
16345
|
+
=C2=A9 MyCompany Pty Ltd
|
16346
|
+
</p>
|
16347
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
16348
|
+
ABN 123 456 789
|
16349
|
+
</p>
|
16350
|
+
</div>
|
16351
|
+
</div>
|
16352
|
+
</body>
|
16353
|
+
</html>=
|
16354
|
+
|
16355
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
16356
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16357
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16358
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16359
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16360
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16361
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 657 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16362
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 657], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16363
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16364
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 668]]
|
16365
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 657]]
|
16366
|
+
[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" = 657 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
16367
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16368
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 657]]
|
16369
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 657 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16370
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 668[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16371
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16372
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 668 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16373
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 657]]
|
16374
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 657 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
16375
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 657 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
|
16376
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16377
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mGlK9tOKpYzvBl8XU0ZtKguldot5lWij00hM_dAeqaQQ' LIMIT 1
|
16378
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 657], ["target_type", "User"], ["token", "mGlK9tOKpYzvBl8XU0ZtKguldot5lWij00hM_dAeqaQQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16379
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16380
|
+
|
16381
|
+
Sent mail to user@example.com (5.7ms)
|
16382
|
+
Date: Thu, 09 Oct 2014 13:45:20 +1100
|
16383
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
16384
|
+
To: user@example.com
|
16385
|
+
Message-ID: <5435f6c098e85_7dd3ff86c865bec48014@wp.local.mail>
|
16386
|
+
Subject: New Notification
|
16387
|
+
Mime-Version: 1.0
|
16388
|
+
Content-Type: text/html;
|
16389
|
+
charset=UTF-8
|
16390
|
+
Content-Transfer-Encoding: quoted-printable
|
16391
|
+
|
16392
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
16393
|
+
tml4/strict.dtd">
|
16394
|
+
<html>
|
16395
|
+
<head>
|
16396
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
16397
|
+
"/>
|
16398
|
+
<title></title>
|
16399
|
+
</head>
|
16400
|
+
|
16401
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
16402
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
16403
|
+
ing: optimizeLegibility;">
|
16404
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
16405
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
16406
|
+
Logo
|
16407
|
+
</div>
|
16408
|
+
</div>
|
16409
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
16410
|
+
">
|
16411
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
16412
|
+
New Post Notification happened.
|
16413
|
+
|
16414
|
+
</div>
|
16415
|
+
</div>
|
16416
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
16417
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
16418
|
+
<p style=3D"text-align: center;">
|
16419
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
16420
|
+
_unsubscribe?token=3DmGlK9tOKpYzvBl8XU0ZtKguldot5lWij00hM_dAeqaQQ&typ=
|
16421
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
16422
|
+
</p>
|
16423
|
+
<p style=3D"text-align: center;">
|
16424
|
+
This is the default generated layout. A privacy declaration could g=
|
16425
|
+
o here.
|
16426
|
+
</p>
|
16427
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
16428
|
+
=C2=A9 MyCompany Pty Ltd
|
16429
|
+
</p>
|
16430
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
16431
|
+
ABN 123 456 789
|
16432
|
+
</p>
|
16433
|
+
</div>
|
16434
|
+
</div>
|
16435
|
+
</body>
|
16436
|
+
</html>=
|
16437
|
+
|
16438
|
+
[1m[36m (0.9ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 657 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
16439
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16440
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16441
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16442
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16443
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16444
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16445
|
+
[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" = 658) LIMIT 1
|
16446
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 658], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16447
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16448
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16449
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 658 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16450
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16451
|
+
[1m[35mNotifyUser::BaseNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
16452
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16453
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16454
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16455
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16456
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16457
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16458
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 659 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16459
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 659], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16460
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16461
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 669 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
16462
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 659]]
|
16463
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 659 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
16464
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16465
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16466
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16467
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16468
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16469
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16470
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 660 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16471
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 660], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16472
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16473
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16474
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 660 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16475
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 660], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16476
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16477
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 671]]
|
16478
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 660]]
|
16479
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 660 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
16480
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16481
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 660]]
|
16482
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 660 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16483
|
+
[1m[35mSQL (1.3ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 670 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16484
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16485
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16486
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 660]]
|
16487
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 660 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16488
|
+
[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" = 671[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16489
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16490
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 660 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
16491
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 660 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
|
16492
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16493
|
+
[1m[35mNotifyUser::UserHash Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Js6uPX6J6cvDUfaOf_5-WgDE-PNy214qpyyGhuW0jZqA' LIMIT 1
|
16494
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 660], ["target_type", "User"], ["token", "Js6uPX6J6cvDUfaOf_5-WgDE-PNy214qpyyGhuW0jZqA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16495
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16496
|
+
|
16497
|
+
Sent mail to user@example.com (5.3ms)
|
16498
|
+
Date: Thu, 09 Oct 2014 13:45:20 +1100
|
16499
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
16500
|
+
To: user@example.com
|
16501
|
+
Message-ID: <5435f6c0ac385_7dd3ff86c865bec481b8@wp.local.mail>
|
16502
|
+
Subject: New Notifications
|
16503
|
+
Mime-Version: 1.0
|
16504
|
+
Content-Type: text/html;
|
16505
|
+
charset=UTF-8
|
16506
|
+
Content-Transfer-Encoding: quoted-printable
|
16507
|
+
|
16508
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
16509
|
+
tml4/strict.dtd">
|
16510
|
+
<html>
|
16511
|
+
<head>
|
16512
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
16513
|
+
"/>
|
16514
|
+
<title></title>
|
16515
|
+
</head>
|
16516
|
+
|
16517
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
16518
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
16519
|
+
ing: optimizeLegibility;">
|
16520
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
16521
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
16522
|
+
Logo
|
16523
|
+
</div>
|
16524
|
+
</div>
|
16525
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
16526
|
+
">
|
16527
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
16528
|
+
=
|
16529
|
+
|
16530
|
+
<div>
|
16531
|
+
New Post Notification happened. =
|
16532
|
+
|
16533
|
+
</div>
|
16534
|
+
<div>
|
16535
|
+
New Post Notification happened. =
|
16536
|
+
|
16537
|
+
</div>
|
16538
|
+
|
16539
|
+
</div>
|
16540
|
+
</div>
|
16541
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
16542
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
16543
|
+
<p style=3D"text-align: center;">
|
16544
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
16545
|
+
_unsubscribe?token=3DJs6uPX6J6cvDUfaOf_5-WgDE-PNy214qpyyGhuW0jZqA&typ=
|
16546
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
16547
|
+
</p>
|
16548
|
+
<p style=3D"text-align: center;">
|
16549
|
+
This is the default generated layout. A privacy declaration could g=
|
16550
|
+
o here.
|
16551
|
+
</p>
|
16552
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
16553
|
+
=C2=A9 MyCompany Pty Ltd
|
16554
|
+
</p>
|
16555
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
16556
|
+
ABN 123 456 789
|
16557
|
+
</p>
|
16558
|
+
</div>
|
16559
|
+
</div>
|
16560
|
+
</body>
|
16561
|
+
</html>=
|
16562
|
+
|
16563
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16564
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16565
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16566
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16567
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16568
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16569
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 661 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16570
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 661], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16571
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16572
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 672]]
|
16573
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 661]]
|
16574
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 661 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
16575
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16576
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 661]]
|
16577
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 661 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16578
|
+
[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" = 672 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16579
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16580
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 672 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
16581
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 661]]
|
16582
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 661 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
16583
|
+
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 661 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
|
16584
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16585
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'gR2PDnEqXmqsynA0OJ6MPAVVvJT2xrTbkKL-iTarCabQ' LIMIT 1[0m
|
16586
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 661], ["target_type", "User"], ["token", "gR2PDnEqXmqsynA0OJ6MPAVVvJT2xrTbkKL-iTarCabQ"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16587
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16588
|
+
|
16589
|
+
Sent mail to user@example.com (7.2ms)
|
16590
|
+
Date: Thu, 09 Oct 2014 13:45:20 +1100
|
16591
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
16592
|
+
To: user@example.com
|
16593
|
+
Message-ID: <5435f6c0b5e31_7dd3ff86c865bec48254@wp.local.mail>
|
16594
|
+
Subject: New Notification
|
16595
|
+
Mime-Version: 1.0
|
16596
|
+
Content-Type: text/html;
|
16597
|
+
charset=UTF-8
|
16598
|
+
Content-Transfer-Encoding: quoted-printable
|
16599
|
+
|
16600
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
16601
|
+
tml4/strict.dtd">
|
16602
|
+
<html>
|
16603
|
+
<head>
|
16604
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
16605
|
+
"/>
|
16606
|
+
<title></title>
|
16607
|
+
</head>
|
16608
|
+
|
16609
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
16610
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
16611
|
+
ing: optimizeLegibility;">
|
16612
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
16613
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
16614
|
+
Logo
|
16615
|
+
</div>
|
16616
|
+
</div>
|
16617
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
16618
|
+
">
|
16619
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
16620
|
+
New Post Notification happened.
|
16621
|
+
|
16622
|
+
</div>
|
16623
|
+
</div>
|
16624
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
16625
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
16626
|
+
<p style=3D"text-align: center;">
|
16627
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
16628
|
+
_unsubscribe?token=3DgR2PDnEqXmqsynA0OJ6MPAVVvJT2xrTbkKL-iTarCabQ&typ=
|
16629
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
16630
|
+
</p>
|
16631
|
+
<p style=3D"text-align: center;">
|
16632
|
+
This is the default generated layout. A privacy declaration could g=
|
16633
|
+
o here.
|
16634
|
+
</p>
|
16635
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
16636
|
+
=C2=A9 MyCompany Pty Ltd
|
16637
|
+
</p>
|
16638
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
16639
|
+
ABN 123 456 789
|
16640
|
+
</p>
|
16641
|
+
</div>
|
16642
|
+
</div>
|
16643
|
+
</body>
|
16644
|
+
</html>=
|
16645
|
+
|
16646
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
16647
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16648
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16649
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16650
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16651
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16652
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 662 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16653
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 662], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16654
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16655
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16656
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 662 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16657
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16658
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 662 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16659
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16660
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 662 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16661
|
+
[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" = 673[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16662
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16663
|
+
[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"."id" = 673 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16664
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 662]]
|
16665
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 662 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
16666
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 662 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
16667
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16668
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16669
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16670
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16671
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16672
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16673
|
+
[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" = 663) LIMIT 1[0m
|
16674
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 663], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16675
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16676
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16677
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 663 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16678
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16679
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16680
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 663 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16681
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16682
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 663 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16683
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16684
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16685
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16686
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16687
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16688
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16689
|
+
[1m[36mNotifyUser::Unsubscribe Exists (1.2ms)[0m [1mSELECT 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" = 664) LIMIT 1[0m
|
16690
|
+
[1m[35mSQL (0.9ms)[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 664], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16691
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16692
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16693
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 664 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16694
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 664], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16695
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16696
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16697
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 664 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16698
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16699
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 664 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16700
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16701
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 664 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16702
|
+
[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" = 674 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16703
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16704
|
+
[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"."id" = 674 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
16705
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 664]]
|
16706
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 664 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
16707
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 664 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
16708
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16709
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16710
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16711
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16712
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16713
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16714
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 665 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16715
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 665], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16716
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16717
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 665 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
|
16718
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16719
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'vLgMBRSKz-15ScaoKRtOVQZHvUBwdo9aiWIZJ6w59HEA' LIMIT 1[0m
|
16720
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 665], ["target_type", "User"], ["token", "vLgMBRSKz-15ScaoKRtOVQZHvUBwdo9aiWIZJ6w59HEA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16721
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16722
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16723
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16724
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16725
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16726
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16727
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16728
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 666 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16729
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 666], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16730
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16731
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 666 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
|
16732
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16733
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GqnQWRF1i8zem3bIAmRpWAKbpPbjTjdOVF_TpdEDI8Yw' LIMIT 1[0m
|
16734
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 666], ["target_type", "User"], ["token", "GqnQWRF1i8zem3bIAmRpWAKbpPbjTjdOVF_TpdEDI8Yw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16735
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16736
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 666 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
|
16737
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16738
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16739
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16740
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16741
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16742
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16743
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 667 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16744
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["state", "pending"], ["target_id", 667], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16745
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16746
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 667 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
|
16747
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16748
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Eu_iBzaQ6lk5YwKZ-xMSVgmHE4pysyORaEFO-647GMDg' LIMIT 1
|
16749
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 667], ["target_type", "User"], ["token", "Eu_iBzaQ6lk5YwKZ-xMSVgmHE4pysyORaEFO-647GMDg"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16750
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16751
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16752
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 193 [["active", false], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16753
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16754
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 667 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
|
16755
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16756
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '8BiXYl_9mquRt5YNLPoTCw_x6aOQdDOJKp9RAngUfmfw' LIMIT 1
|
16757
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 667], ["target_type", "User"], ["token", "8BiXYl_9mquRt5YNLPoTCw_x6aOQdDOJKp9RAngUfmfw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16758
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16759
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16760
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16761
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16762
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16763
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16764
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16765
|
+
[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" = 668) LIMIT 1[0m
|
16766
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 668], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16767
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16768
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16769
|
+
[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" != 157 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 668) LIMIT 1[0m
|
16770
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16771
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16772
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 668 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16773
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16774
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16775
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16776
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16777
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16778
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16779
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16780
|
+
[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" = 669) LIMIT 1
|
16781
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 669], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16782
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16783
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16784
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 158 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 669) LIMIT 1
|
16785
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16786
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16787
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 669 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16788
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
16789
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16790
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16791
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16792
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16793
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16794
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16795
|
+
[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" = 670) LIMIT 1[0m
|
16796
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 670], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16797
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16798
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16799
|
+
[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" != 159 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 670) LIMIT 1[0m
|
16800
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16801
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16802
|
+
[1m[35mNotifyUser::Unsubscribe Exists (1.1ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 670) LIMIT 1
|
16803
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16804
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.6ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
|
16805
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16806
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16807
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16808
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16809
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16810
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16811
|
+
[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" = 671) LIMIT 1[0m
|
16812
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 671], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16813
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16814
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16815
|
+
[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" != 160 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 671) LIMIT 1[0m
|
16816
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16817
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16818
|
+
[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" = 671) LIMIT 1
|
16819
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
16820
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 671 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16821
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 671 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16822
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16823
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 160]]
|
16824
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16825
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 671 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16826
|
+
[1m[35m (0.8ms)[0m ROLLBACK
|
16827
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
16828
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16829
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16830
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16831
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16832
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 672 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16833
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 672], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16834
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16835
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16836
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16837
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16838
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16839
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16840
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16841
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WHDH408QKbIGTfi9QGPwdAxvAoK_Go4ZkiIbo3Ztco4Q' LIMIT 1[0m
|
16842
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 673], ["target_type", "User"], ["token", "WHDH408QKbIGTfi9QGPwdAxvAoK_Go4ZkiIbo3Ztco4Q"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16843
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16844
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16845
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16846
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'WHDH408QKbIGTfi9QGPwdAxvAoK_Go4ZkiIbo3Ztco4Q' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
16847
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16848
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16849
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16850
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16851
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16852
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16853
|
+
[1m[36mNotifyUser::UserHash Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'OvF3GDjSYj2s4v6cpEvzQw4wISrizYwgasisxpmTBIeA' LIMIT 1[0m
|
16854
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 674], ["target_type", "User"], ["token", "OvF3GDjSYj2s4v6cpEvzQw4wISrizYwgasisxpmTBIeA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16855
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16856
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16857
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16858
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16859
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 196[0m [["active", false], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16860
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16861
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'OvF3GDjSYj2s4v6cpEvzQw4wISrizYwgasisxpmTBIeA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
16862
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16863
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16864
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
16865
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16866
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16867
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16868
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'rkQCo9-XpUa1QTS_SKWyrAhbeIIlgUxF8GSj56vIlaow' LIMIT 1
|
16869
|
+
[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", Thu, 09 Oct 2014 02:45:20 UTC +00:00], ["target_id", 675], ["target_type", "User"], ["token", "rkQCo9-XpUa1QTS_SKWyrAhbeIIlgUxF8GSj56vIlaow"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:20 UTC +00:00]]
|
16870
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16871
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16872
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16873
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16874
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 197 [["active", false], ["updated_at", Thu, 09 Oct 2014 02:45:21 UTC +00:00]]
|
16875
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16876
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
16877
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16878
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
16879
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:45:21 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:45:21 UTC +00:00]]
|
16880
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
16881
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16882
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '_ucfRwO103DOCesXk1Tu_wIXCMOIZ_pkakYD6Zw2LvLw' LIMIT 1
|
16883
|
+
[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", Thu, 09 Oct 2014 02:45:21 UTC +00:00], ["target_id", 676], ["target_type", "User"], ["token", "_ucfRwO103DOCesXk1Tu_wIXCMOIZ_pkakYD6Zw2LvLw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:45:21 UTC +00:00]]
|
16884
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16885
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16886
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16887
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16888
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16889
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16890
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16891
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16892
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16893
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16894
|
+
[1m[35m (0.3ms)[0m BEGIN
|
16895
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16896
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16897
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16898
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16899
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16900
|
+
[1m[35m (0.2ms)[0m BEGIN
|
16901
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
16902
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16903
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16904
|
+
[1m[36mSQL (7.3ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16905
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16906
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
16907
|
+
Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.3ms)
|
16908
|
+
Completed 200 OK in 14ms (Views: 11.6ms | ActiveRecord: 0.0ms)
|
16909
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
16910
|
+
[1m[35m (0.1ms)[0m BEGIN
|
16911
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
16912
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16913
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16914
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16915
|
+
[1m[36m (1.3ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 678 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
16916
|
+
[1m[35mSQL (1.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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 678], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16917
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
16918
|
+
Processing by NotifyUser::NotificationsController#index as JSON
|
16919
|
+
[1m[35m (1.0ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 678 AND "notify_user_notifications"."target_type" = 'User'
|
16920
|
+
[1m[36mNotifyUser::BaseNotification Load (1.3ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 678 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
16921
|
+
Completed 200 OK in 21ms (Views: 12.2ms | ActiveRecord: 2.3ms)
|
16922
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
16923
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
16924
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
16925
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16926
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16927
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16928
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 679 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16929
|
+
[1m[36mSQL (1.0ms)[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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 679], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16930
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16931
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
16932
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 679 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16933
|
+
[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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 679], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16934
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16935
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16936
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 679 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16937
|
+
[1m[36mSQL (1.1ms)[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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 679], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16938
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
16939
|
+
Processing by NotifyUser::NotificationsController#index as HTML
|
16940
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 679 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
|
16941
|
+
Completed 200 OK in 47ms (Views: 45.4ms | ActiveRecord: 0.6ms)
|
16942
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
16943
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16944
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16945
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16946
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16947
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16948
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 680 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16949
|
+
[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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 680], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16950
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16951
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16952
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 680 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16953
|
+
[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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 680], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16954
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16955
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16956
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 680 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16957
|
+
[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", Thu, 09 Oct 2014 02:52:13 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 680], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16958
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16959
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
16960
|
+
Parameters: {"id"=>"683"}
|
16961
|
+
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 680 AND "notify_user_notifications"."target_type" = 'User' AND (id = '683') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16962
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16963
|
+
[1m[36mUser Load (0.7ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 680]]
|
16964
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 680 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16965
|
+
[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" = 683[0m [["state", "read"], ["updated_at", Thu, 09 Oct 2014 02:52:13 UTC +00:00]]
|
16966
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16967
|
+
Completed 200 OK in 19ms (Views: 1.8ms | ActiveRecord: 3.2ms)
|
16968
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 683 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16969
|
+
[1m[35m (0.6ms)[0m ROLLBACK
|
16970
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
16971
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16972
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
16973
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16974
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16975
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 681 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16976
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 681], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
16977
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16978
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16979
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 681 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16980
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 681], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
16981
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16982
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
16983
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 681 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16984
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 681], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
16985
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16986
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
16987
|
+
Parameters: {"id"=>"686"}
|
16988
|
+
[1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 681 AND "notify_user_notifications"."target_type" = 'User' AND (id = '686') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16989
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
16990
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 681]]
|
16991
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 681 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
16992
|
+
[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" = 686[0m [["state", "read"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
16993
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
16994
|
+
Completed 200 OK in 9ms (Views: 0.6ms | ActiveRecord: 2.8ms)
|
16995
|
+
Processing by NotifyUser::NotificationsController#read as HTML
|
16996
|
+
Parameters: {"id"=>"686"}
|
16997
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 681 AND "notify_user_notifications"."target_type" = 'User' AND (id = '686') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
16998
|
+
Completed 200 OK in 2ms (Views: 0.2ms | ActiveRecord: 3.4ms)
|
16999
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17000
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17001
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17002
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17003
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17004
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17005
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 682 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17006
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 682], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17007
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17008
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17009
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 682 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17010
|
+
[1m[36mSQL (1.0ms)[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 682], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17011
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17012
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17013
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 682 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17014
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 682], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17015
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17016
|
+
Processing by NotifyUser::NotificationsController#mark_all as HTML
|
17017
|
+
[1m[36mSQL (1.1ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 682 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
|
17018
|
+
Redirected to http://test.host/notify_user/notifications
|
17019
|
+
Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
|
17020
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 682 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
|
17021
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17022
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17023
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17024
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17025
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17026
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17027
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 683 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17028
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 683], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17029
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17030
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
17031
|
+
Parameters: {"ids"=>["692"]}
|
17032
|
+
[1m[35mSQL (0.7ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 683 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('692'))
|
17033
|
+
[1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 683 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('692'))[0m
|
17034
|
+
Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 1.1ms)
|
17035
|
+
[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", 692]]
|
17036
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17037
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17038
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17039
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17040
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17041
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17042
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 684 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17043
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 684], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17044
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17045
|
+
Processing by NotifyUser::NotificationsController#mark_read as HTML
|
17046
|
+
Parameters: {"ids"=>["693"]}
|
17047
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 684 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('693'))
|
17048
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 684 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('693'))[0m
|
17049
|
+
Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 1.3ms)
|
17050
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17051
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17052
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17053
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17054
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17055
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17056
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 685 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17057
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 685], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17058
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17059
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 685 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17060
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
17061
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
|
17062
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 685 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17063
|
+
[1m[36m (0.4ms)[0m [1mSAVEPOINT active_record_1[0m
|
17064
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.8ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 685) LIMIT 1
|
17065
|
+
[1m[36mSQL (1.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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 685], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17066
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17067
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 685 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17068
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 685 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17069
|
+
Completed 200 OK in 37ms (Views: 0.5ms | ActiveRecord: 5.0ms)
|
17070
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 685 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17071
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17072
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17073
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17074
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17075
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17076
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17077
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 686 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17078
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 686], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17079
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17080
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 686 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17081
|
+
Processing by NotifyUser::NotificationsController#subscriptions as HTML
|
17082
|
+
Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
|
17083
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.6ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 686 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17084
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 686 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17085
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 686 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17086
|
+
Completed 200 OK in 5ms (Views: 0.4ms | ActiveRecord: 1.5ms)
|
17087
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.8ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 686 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17088
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17089
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17090
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17091
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17092
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17093
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17094
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 687 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17095
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 687], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17096
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17097
|
+
Processing by NotifyUser::NotificationsController#unsubscribe as HTML
|
17098
|
+
Parameters: {"type"=>"NewPostNotification"}
|
17099
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17100
|
+
[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" = 687) LIMIT 1
|
17101
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 687], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17102
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17103
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
17104
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 687 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17105
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 687 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17106
|
+
Completed 302 Found in 8ms (ActiveRecord: 2.7ms)
|
17107
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.6ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
|
17108
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17109
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17110
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17111
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17112
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17113
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17114
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 688 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17115
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 688], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17116
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17117
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17118
|
+
[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" = 688) LIMIT 1
|
17119
|
+
[1m[36mSQL (0.7ms)[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 688], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17120
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17121
|
+
Processing by NotifyUser::NotificationsController#subscribe as HTML
|
17122
|
+
Parameters: {"type"=>"NewPostNotification"}
|
17123
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.6ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 688 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17124
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17125
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 163]]
|
17126
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17127
|
+
Redirected to http://test.host/notify_user/notifications/unsubscribe
|
17128
|
+
Completed 302 Found in 5ms (ActiveRecord: 1.7ms)
|
17129
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
|
17130
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17131
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17132
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17133
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17134
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17135
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17136
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 689 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17137
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 689], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17138
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17139
|
+
[1m[36mNotifyUser::UserHash Load (0.8ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 689 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
|
17140
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17141
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'q_JopiTRTFuUm3RroaB_PglxdfflO2Q4KBEOz39MO0YA' LIMIT 1[0m
|
17142
|
+
[1m[35mSQL (1.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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 689], ["target_type", "User"], ["token", "q_JopiTRTFuUm3RroaB_PglxdfflO2Q4KBEOz39MO0YA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17143
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17144
|
+
Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
|
17145
|
+
Parameters: {"type"=>"NewPostNotification", "token"=>"q_JopiTRTFuUm3RroaB_PglxdfflO2Q4KBEOz39MO0YA"}
|
17146
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'q_JopiTRTFuUm3RroaB_PglxdfflO2Q4KBEOz39MO0YA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
17147
|
+
[1m[36mNotifyUser::UserHash Load (0.5ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'q_JopiTRTFuUm3RroaB_PglxdfflO2Q4KBEOz39MO0YA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
|
17148
|
+
[1m[35mUser Load (0.7ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 689]]
|
17149
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17150
|
+
[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" = 689) LIMIT 1
|
17151
|
+
[1m[36mSQL (0.7ms)[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 689], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17152
|
+
[1m[35m (0.4ms)[0m RELEASE SAVEPOINT active_record_1
|
17153
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17154
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 199 [["active", false], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17155
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17156
|
+
Completed 200 OK in 14ms (Views: 0.5ms | ActiveRecord: 5.2ms)
|
17157
|
+
[1m[35mNotifyUser::UserHash Load (0.5ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
|
17158
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17159
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17160
|
+
[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
|
17161
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17162
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17163
|
+
[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
|
17164
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17165
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17166
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17167
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17168
|
+
[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
|
17169
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17170
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17171
|
+
[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
|
17172
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17173
|
+
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17174
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17175
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17176
|
+
[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
|
17177
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17178
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17179
|
+
[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
|
17180
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17181
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17182
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17183
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17184
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17185
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17186
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17187
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17188
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 690 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17189
|
+
[1m[35mSQL (0.9ms)[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 690], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17190
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17191
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 690 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
|
17192
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17193
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17194
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17195
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17196
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17197
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17198
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 691 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17199
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 691], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17200
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17201
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17202
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17203
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17204
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17205
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17206
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17207
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 692 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17208
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 692], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17209
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17210
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17211
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17212
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17213
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17214
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17215
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17216
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 693 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17217
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 693], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17218
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17219
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17220
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 693 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17221
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 702 [["params", {"listing_id"=>1}], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17222
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17223
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
17224
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17225
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17226
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17227
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17228
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17229
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17230
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 694 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17231
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 694], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17232
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17233
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17234
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 694 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17235
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 703 [["params", {"listing_id"=>1}], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17236
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17237
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
17238
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17239
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17240
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17241
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17242
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17243
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17244
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 695 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17245
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 695], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17246
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17247
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17248
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 695 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17249
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 704 [["params", {:listing_id=>1}], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17250
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17251
|
+
[1m[35mNewPostNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
17252
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17253
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17254
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17255
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17256
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17257
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17258
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 696 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17259
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 696], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17260
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17261
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17262
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 696 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17263
|
+
[1m[35mSQL (0.9ms)[0m UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 705 [["params", {:listing_id=>1}], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17264
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17265
|
+
[1m[35mNewPostNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
|
17266
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17267
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17268
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17269
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17270
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17271
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17272
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 697 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17273
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 697], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17274
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17275
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17276
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17277
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17278
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17279
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17280
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17281
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17282
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17283
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 698 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17284
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 698], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17285
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17286
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17287
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 698 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17288
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17289
|
+
[1m[35m (0.7ms)[0m SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 698 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 707)
|
17290
|
+
[1m[36mNotifyUser::BaseNotification Load (0.9ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 707]]
|
17291
|
+
[1m[35mUser Load (0.6ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 698]]
|
17292
|
+
[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" = 698 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
17293
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17294
|
+
[1m[36mUser Load (0.6ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 698]]
|
17295
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 698 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17296
|
+
[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" = 707[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17297
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17298
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 707 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
17299
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 698]]
|
17300
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 698 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17301
|
+
[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" = 707 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
17302
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 698]]
|
17303
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 698 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
17304
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17305
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17306
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17307
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17308
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17309
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17310
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 699 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17311
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 699], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17312
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17313
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17314
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 699 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17315
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17316
|
+
[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" = 699 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 708)[0m
|
17317
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 708]]
|
17318
|
+
[1m[36mUser Load (0.5ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 699]]
|
17319
|
+
[1m[35mNotifyUser::BaseNotification Load (0.7ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 699 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
17320
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17321
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 699]]
|
17322
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 699 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17323
|
+
[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" = 708 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17324
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17325
|
+
[1m[35mNotifyUser::BaseNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 708 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
17326
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 699]]
|
17327
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 699 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
17328
|
+
[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" = 708 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
17329
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 699]]
|
17330
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 699 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
17331
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17332
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17333
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17334
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17335
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17336
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17337
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 700 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17338
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 700], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17339
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17340
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17341
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 700 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17342
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17343
|
+
[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" = 700 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 709)
|
17344
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17345
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 700 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17346
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 700], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17347
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17348
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 700 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 710)[0m
|
17349
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17350
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17351
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17352
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17353
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17354
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17355
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 701 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17356
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 701], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17357
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17358
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17359
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 701 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17360
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 701], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17361
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17362
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m [["id", 712]]
|
17363
|
+
[1m[35mUser Load (0.5ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 701]]
|
17364
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 701 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
17365
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17366
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 701]]
|
17367
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 701 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17368
|
+
[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" = 711[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17369
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17370
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17371
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 701]]
|
17372
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 701 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17373
|
+
[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" = 712 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17374
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17375
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 701 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
17376
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 701 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
|
17377
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17378
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mNrLW9-94Z5vvZ9fMV0VcAZJ4NVb7EAtPSr9-yYOcNlw' LIMIT 1[0m
|
17379
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 701], ["target_type", "User"], ["token", "mNrLW9-94Z5vvZ9fMV0VcAZJ4NVb7EAtPSr9-yYOcNlw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17380
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17381
|
+
|
17382
|
+
Sent mail to user@example.com (9.9ms)
|
17383
|
+
Date: Thu, 09 Oct 2014 13:52:14 +1100
|
17384
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
17385
|
+
To: user@example.com
|
17386
|
+
Message-ID: <5435f85e9bc1f_83a3fd47d865bf0709b6@wp.local.mail>
|
17387
|
+
Subject: New Notifications
|
17388
|
+
Mime-Version: 1.0
|
17389
|
+
Content-Type: text/html;
|
17390
|
+
charset=UTF-8
|
17391
|
+
Content-Transfer-Encoding: quoted-printable
|
17392
|
+
|
17393
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
17394
|
+
tml4/strict.dtd">
|
17395
|
+
<html>
|
17396
|
+
<head>
|
17397
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
17398
|
+
"/>
|
17399
|
+
<title></title>
|
17400
|
+
</head>
|
17401
|
+
|
17402
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
17403
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
17404
|
+
ing: optimizeLegibility;">
|
17405
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
17406
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
17407
|
+
Logo
|
17408
|
+
</div>
|
17409
|
+
</div>
|
17410
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
17411
|
+
">
|
17412
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
17413
|
+
=
|
17414
|
+
|
17415
|
+
<div>
|
17416
|
+
New Post Notification happened. =
|
17417
|
+
|
17418
|
+
</div>
|
17419
|
+
<div>
|
17420
|
+
New Post Notification happened. =
|
17421
|
+
|
17422
|
+
</div>
|
17423
|
+
|
17424
|
+
</div>
|
17425
|
+
</div>
|
17426
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
17427
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
17428
|
+
<p style=3D"text-align: center;">
|
17429
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
17430
|
+
_unsubscribe?token=3DmNrLW9-94Z5vvZ9fMV0VcAZJ4NVb7EAtPSr9-yYOcNlw&typ=
|
17431
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
17432
|
+
</p>
|
17433
|
+
<p style=3D"text-align: center;">
|
17434
|
+
This is the default generated layout. A privacy declaration could g=
|
17435
|
+
o here.
|
17436
|
+
</p>
|
17437
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
17438
|
+
=C2=A9 MyCompany Pty Ltd
|
17439
|
+
</p>
|
17440
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
17441
|
+
ABN 123 456 789
|
17442
|
+
</p>
|
17443
|
+
</div>
|
17444
|
+
</div>
|
17445
|
+
</body>
|
17446
|
+
</html>=
|
17447
|
+
|
17448
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17449
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17450
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17451
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17452
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17453
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17454
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 702 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17455
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 702], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17456
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17457
|
+
[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", 713]]
|
17458
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 702]]
|
17459
|
+
[1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 702 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
|
17460
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17461
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 702]]
|
17462
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 702 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17463
|
+
[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" = 713[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17464
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17465
|
+
[1m[36mNotifyUser::BaseNotification Load (0.6ms)[0m [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 713 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
17466
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 702]]
|
17467
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 702 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17468
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 702 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
|
17469
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17470
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'yhhGdzmuD5lmBl098WG4Rwl850q7ItiqH38q0U-zk54g' LIMIT 1
|
17471
|
+
[1m[36mSQL (0.7ms)[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 702], ["target_type", "User"], ["token", "yhhGdzmuD5lmBl098WG4Rwl850q7ItiqH38q0U-zk54g"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17472
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17473
|
+
|
17474
|
+
Sent mail to user@example.com (5.6ms)
|
17475
|
+
Date: Thu, 09 Oct 2014 13:52:14 +1100
|
17476
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
17477
|
+
To: user@example.com
|
17478
|
+
Message-ID: <5435f85ea787b_83a3fd47d865bf0710a6@wp.local.mail>
|
17479
|
+
Subject: New Notification
|
17480
|
+
Mime-Version: 1.0
|
17481
|
+
Content-Type: text/html;
|
17482
|
+
charset=UTF-8
|
17483
|
+
Content-Transfer-Encoding: quoted-printable
|
17484
|
+
|
17485
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
17486
|
+
tml4/strict.dtd">
|
17487
|
+
<html>
|
17488
|
+
<head>
|
17489
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
17490
|
+
"/>
|
17491
|
+
<title></title>
|
17492
|
+
</head>
|
17493
|
+
|
17494
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
17495
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
17496
|
+
ing: optimizeLegibility;">
|
17497
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
17498
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
17499
|
+
Logo
|
17500
|
+
</div>
|
17501
|
+
</div>
|
17502
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
17503
|
+
">
|
17504
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
17505
|
+
New Post Notification happened.
|
17506
|
+
|
17507
|
+
</div>
|
17508
|
+
</div>
|
17509
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
17510
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
17511
|
+
<p style=3D"text-align: center;">
|
17512
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
17513
|
+
_unsubscribe?token=3DyhhGdzmuD5lmBl098WG4Rwl850q7ItiqH38q0U-zk54g&typ=
|
17514
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
17515
|
+
</p>
|
17516
|
+
<p style=3D"text-align: center;">
|
17517
|
+
This is the default generated layout. A privacy declaration could g=
|
17518
|
+
o here.
|
17519
|
+
</p>
|
17520
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
17521
|
+
=C2=A9 MyCompany Pty Ltd
|
17522
|
+
</p>
|
17523
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
17524
|
+
ABN 123 456 789
|
17525
|
+
</p>
|
17526
|
+
</div>
|
17527
|
+
</div>
|
17528
|
+
</body>
|
17529
|
+
</html>=
|
17530
|
+
|
17531
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 702 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
17532
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17533
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17534
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17535
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17536
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17537
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17538
|
+
[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" = 703) LIMIT 1
|
17539
|
+
[1m[36mSQL (0.7ms)[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 703], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17540
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17541
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17542
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 703 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17543
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17544
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
17545
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17546
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17547
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17548
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17549
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17550
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17551
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 704 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17552
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 704], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17553
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17554
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 714 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
17555
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 704]]
|
17556
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 704 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
17557
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17558
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17559
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17560
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17561
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17562
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17563
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 705 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17564
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 705], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17565
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17566
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17567
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 705 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17568
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 705], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17569
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17570
|
+
[1m[35mNotifyUser::BaseNotification Load (0.5ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 716]]
|
17571
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 705]]
|
17572
|
+
[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" = 705 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
17573
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17574
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 705]]
|
17575
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 705 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17576
|
+
[1m[35mSQL (1.0ms)[0m UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 715 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17577
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17578
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17579
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 705]]
|
17580
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 705 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17581
|
+
[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" = 716[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17582
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17583
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 705 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17584
|
+
[1m[35mNotifyUser::UserHash Load (0.8ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 705 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
|
17585
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17586
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Cb_K8FalA7rdLB0a8MHjSwAU64LhgRaHOXAPlJay6TfA' LIMIT 1
|
17587
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 705], ["target_type", "User"], ["token", "Cb_K8FalA7rdLB0a8MHjSwAU64LhgRaHOXAPlJay6TfA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17588
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17589
|
+
|
17590
|
+
Sent mail to user@example.com (5.6ms)
|
17591
|
+
Date: Thu, 09 Oct 2014 13:52:14 +1100
|
17592
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
17593
|
+
To: user@example.com
|
17594
|
+
Message-ID: <5435f85ebbb37_83a3fd47d865bf07116@wp.local.mail>
|
17595
|
+
Subject: New Notifications
|
17596
|
+
Mime-Version: 1.0
|
17597
|
+
Content-Type: text/html;
|
17598
|
+
charset=UTF-8
|
17599
|
+
Content-Transfer-Encoding: quoted-printable
|
17600
|
+
|
17601
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
17602
|
+
tml4/strict.dtd">
|
17603
|
+
<html>
|
17604
|
+
<head>
|
17605
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
17606
|
+
"/>
|
17607
|
+
<title></title>
|
17608
|
+
</head>
|
17609
|
+
|
17610
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
17611
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
17612
|
+
ing: optimizeLegibility;">
|
17613
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
17614
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
17615
|
+
Logo
|
17616
|
+
</div>
|
17617
|
+
</div>
|
17618
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
17619
|
+
">
|
17620
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
17621
|
+
=
|
17622
|
+
|
17623
|
+
<div>
|
17624
|
+
New Post Notification happened. =
|
17625
|
+
|
17626
|
+
</div>
|
17627
|
+
<div>
|
17628
|
+
New Post Notification happened. =
|
17629
|
+
|
17630
|
+
</div>
|
17631
|
+
|
17632
|
+
</div>
|
17633
|
+
</div>
|
17634
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
17635
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
17636
|
+
<p style=3D"text-align: center;">
|
17637
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
17638
|
+
_unsubscribe?token=3DCb_K8FalA7rdLB0a8MHjSwAU64LhgRaHOXAPlJay6TfA&typ=
|
17639
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
17640
|
+
</p>
|
17641
|
+
<p style=3D"text-align: center;">
|
17642
|
+
This is the default generated layout. A privacy declaration could g=
|
17643
|
+
o here.
|
17644
|
+
</p>
|
17645
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
17646
|
+
=C2=A9 MyCompany Pty Ltd
|
17647
|
+
</p>
|
17648
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
17649
|
+
ABN 123 456 789
|
17650
|
+
</p>
|
17651
|
+
</div>
|
17652
|
+
</div>
|
17653
|
+
</body>
|
17654
|
+
</html>=
|
17655
|
+
|
17656
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17657
|
+
[1m[35m (0.3ms)[0m BEGIN
|
17658
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17659
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17660
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17661
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17662
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 706 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17663
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 706], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17664
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17665
|
+
[1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 717]]
|
17666
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 706]]
|
17667
|
+
[1m[35mNotifyUser::BaseNotification Load (0.7ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 706 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
|
17668
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17669
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 706]]
|
17670
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 706 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17671
|
+
[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" = 717 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17672
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17673
|
+
[1m[35mNotifyUser::BaseNotification Load (0.8ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 717 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
17674
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 706]]
|
17675
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 706 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
17676
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 706 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
|
17677
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17678
|
+
[1m[36mNotifyUser::UserHash Exists (0.4ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'iEjctGhyhtQukm4lAKhJowErALgaBRoGrAEbUku7TP-w' LIMIT 1[0m
|
17679
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 706], ["target_type", "User"], ["token", "iEjctGhyhtQukm4lAKhJowErALgaBRoGrAEbUku7TP-w"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17680
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17681
|
+
|
17682
|
+
Sent mail to user@example.com (6.1ms)
|
17683
|
+
Date: Thu, 09 Oct 2014 13:52:14 +1100
|
17684
|
+
From: please-change-me-at-config-initializers-notify-user@example.com
|
17685
|
+
To: user@example.com
|
17686
|
+
Message-ID: <5435f85ec6524_83a3fd47d865bf0712ad@wp.local.mail>
|
17687
|
+
Subject: New Notification
|
17688
|
+
Mime-Version: 1.0
|
17689
|
+
Content-Type: text/html;
|
17690
|
+
charset=UTF-8
|
17691
|
+
Content-Transfer-Encoding: quoted-printable
|
17692
|
+
|
17693
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
|
17694
|
+
tml4/strict.dtd">
|
17695
|
+
<html>
|
17696
|
+
<head>
|
17697
|
+
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
|
17698
|
+
"/>
|
17699
|
+
<title></title>
|
17700
|
+
</head>
|
17701
|
+
|
17702
|
+
<body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
|
17703
|
+
0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
|
17704
|
+
ing: optimizeLegibility;">
|
17705
|
+
<div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
|
17706
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
|
17707
|
+
Logo
|
17708
|
+
</div>
|
17709
|
+
</div>
|
17710
|
+
<div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
|
17711
|
+
">
|
17712
|
+
<div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
|
17713
|
+
New Post Notification happened.
|
17714
|
+
|
17715
|
+
</div>
|
17716
|
+
</div>
|
17717
|
+
<div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
|
17718
|
+
<div style=3D"width: 600px; margin: 0 auto; padding: 0;">
|
17719
|
+
<p style=3D"text-align: center;">
|
17720
|
+
<a href=3D"http://localhost:5000/notify_user/notifications/unauth=
|
17721
|
+
_unsubscribe?token=3DiEjctGhyhtQukm4lAKhJowErALgaBRoGrAEbUku7TP-w&typ=
|
17722
|
+
e=3DNewPostNotification">Unsubscribe</a>
|
17723
|
+
</p>
|
17724
|
+
<p style=3D"text-align: center;">
|
17725
|
+
This is the default generated layout. A privacy declaration could g=
|
17726
|
+
o here.
|
17727
|
+
</p>
|
17728
|
+
<p style=3D"text-align: center; margin-bottom: 0px;">
|
17729
|
+
=C2=A9 MyCompany Pty Ltd
|
17730
|
+
</p>
|
17731
|
+
<p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
|
17732
|
+
ABN 123 456 789
|
17733
|
+
</p>
|
17734
|
+
</div>
|
17735
|
+
</div>
|
17736
|
+
</body>
|
17737
|
+
</html>=
|
17738
|
+
|
17739
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
17740
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17741
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17742
|
+
[1m[36mSQL (0.8ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17743
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17744
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17745
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 707 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17746
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 707], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17747
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17748
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17749
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 707 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17750
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17751
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 707 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17752
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17753
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 707 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17754
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 718[0m [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17755
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17756
|
+
[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" = 718 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
|
17757
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 707]]
|
17758
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 707 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
|
17759
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 707 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
|
17760
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17761
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17762
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17763
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17764
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17765
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17766
|
+
[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" = 708) LIMIT 1[0m
|
17767
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 708], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17768
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17769
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17770
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 708 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17771
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17772
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17773
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 708 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17774
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17775
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 708 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17776
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17777
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17778
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17779
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17780
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17781
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17782
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.5ms)[0m [1mSELECT 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" = 709) LIMIT 1[0m
|
17783
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 709], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17784
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17785
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17786
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 709 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17787
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 709], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17788
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17789
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17790
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 709 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17791
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17792
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 709 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17793
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17794
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 709 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17795
|
+
[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" = 719 [["state", "sent"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17796
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17797
|
+
[1m[35mNewPostNotification Load (0.4ms)[0m SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 719 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
|
17798
|
+
[1m[36mUser Load (0.4ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1[0m [["id", 709]]
|
17799
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 709 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
|
17800
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 709 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
|
17801
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17802
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17803
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17804
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17805
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17806
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17807
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 710 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17808
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 710], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17809
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17810
|
+
[1m[36mNotifyUser::UserHash Load (0.6ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 710 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
|
17811
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17812
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UiYSjcdz8ohqPnR8an8HmAcI3dJ2mtC8rEEn1iiAz2aw' LIMIT 1[0m
|
17813
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 710], ["target_type", "User"], ["token", "UiYSjcdz8ohqPnR8an8HmAcI3dJ2mtC8rEEn1iiAz2aw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17814
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17815
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17816
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17817
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17818
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17819
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17820
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17821
|
+
[1m[35m (0.6ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 711 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17822
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 711], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17823
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17824
|
+
[1m[36mNotifyUser::UserHash Load (0.7ms)[0m [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 711 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
|
17825
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17826
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'k5ZirhYOjP1G91PQGeUnuwrFy-nuLnFu2Z4QR7ENo8TA' LIMIT 1[0m
|
17827
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 711], ["target_type", "User"], ["token", "k5ZirhYOjP1G91PQGeUnuwrFy-nuLnFu2Z4QR7ENo8TA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17828
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17829
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 711 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
|
17830
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17831
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17832
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17833
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17834
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17835
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17836
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 712 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17837
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["state", "pending"], ["target_id", 712], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17838
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17839
|
+
[1m[35mNotifyUser::UserHash Load (0.6ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 712 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
|
17840
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17841
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'F1wJFaWYjLXyHGZDtmYznAqyBTx3Max3Q5u0ho22Mz0w' LIMIT 1
|
17842
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 712], ["target_type", "User"], ["token", "F1wJFaWYjLXyHGZDtmYznAqyBTx3Max3Q5u0ho22Mz0w"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17843
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17844
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17845
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 206 [["active", false], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17846
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17847
|
+
[1m[35mNotifyUser::UserHash Load (0.7ms)[0m SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 712 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
|
17848
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
17849
|
+
[1m[35mNotifyUser::UserHash Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'zTeDQCklx8pKv5gJaf6MKw1blHsAQKI32LeXxoG9wHMw' LIMIT 1
|
17850
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 712], ["target_type", "User"], ["token", "zTeDQCklx8pKv5gJaf6MKw1blHsAQKI32LeXxoG9wHMw"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17851
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17852
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17853
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17854
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17855
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17856
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17857
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17858
|
+
[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" = 713) LIMIT 1[0m
|
17859
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 713], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17860
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17861
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17862
|
+
[1m[36mNotifyUser::Unsubscribe Exists (0.7ms)[0m [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 168 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 713) LIMIT 1[0m
|
17863
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17864
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17865
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 713 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17866
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17867
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17868
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17869
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17870
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17871
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17872
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17873
|
+
[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" = 714) LIMIT 1
|
17874
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 714], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17875
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17876
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17877
|
+
[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" != 169 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 714) LIMIT 1
|
17878
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17879
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17880
|
+
[1m[36m (0.5ms)[0m [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 714 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17881
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
17882
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17883
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17884
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17885
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17886
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17887
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17888
|
+
[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" = 715) LIMIT 1[0m
|
17889
|
+
[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", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["target_id", 715], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17890
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17891
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17892
|
+
[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" != 170 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 715) LIMIT 1[0m
|
17893
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17894
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17895
|
+
[1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'UnsubscribableNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 715) LIMIT 1
|
17896
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17897
|
+
[1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
|
17898
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17899
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17900
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17901
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:14 UTC +00:00]]
|
17902
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17903
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17904
|
+
[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" = 716) LIMIT 1[0m
|
17905
|
+
[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", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["target_id", 716], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17906
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17907
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17908
|
+
[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" != 171 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 716) LIMIT 1[0m
|
17909
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17910
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17911
|
+
[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" = 716) LIMIT 1
|
17912
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
17913
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 716 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17914
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.5ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 716 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17915
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17916
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m [["id", 171]]
|
17917
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17918
|
+
[1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 716 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
|
17919
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
17920
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
17921
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17922
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17923
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17924
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17925
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 717 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
|
17926
|
+
[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", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 717], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17927
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17928
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17929
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17930
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17931
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17932
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17933
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17934
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'gTdZsiJxAdHzLx-dMgJSxg7G7PTfnZzsZtTFOEyQ92Eg' LIMIT 1[0m
|
17935
|
+
[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", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["target_id", 718], ["target_type", "User"], ["token", "gTdZsiJxAdHzLx-dMgJSxg7G7PTfnZzsZtTFOEyQ92Eg"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17936
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17937
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17938
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17939
|
+
[1m[35mNotifyUser::UserHash Exists (0.6ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'gTdZsiJxAdHzLx-dMgJSxg7G7PTfnZzsZtTFOEyQ92Eg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
|
17940
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
17941
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17942
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17943
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17944
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17945
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
17946
|
+
[1m[36mNotifyUser::UserHash Exists (0.5ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HPeDYZLMXJWAlyMq68BLiQB_i24iJEXut-3hEW1TZ1Ug' LIMIT 1[0m
|
17947
|
+
[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", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["target_id", 719], ["target_type", "User"], ["token", "HPeDYZLMXJWAlyMq68BLiQB_i24iJEXut-3hEW1TZ1Ug"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17948
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17949
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
17950
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17951
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17952
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 209[0m [["active", false], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17953
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17954
|
+
[1m[36mNotifyUser::UserHash Exists (0.6ms)[0m [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HPeDYZLMXJWAlyMq68BLiQB_i24iJEXut-3hEW1TZ1Ug' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
|
17955
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17956
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17957
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17958
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17959
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17960
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17961
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'tvV2w9Fk91wU2oM24GvfdQSka-OBC4HkCcKeC2QpgKDg' LIMIT 1
|
17962
|
+
[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", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["target_id", 720], ["target_type", "User"], ["token", "tvV2w9Fk91wU2oM24GvfdQSka-OBC4HkCcKeC2QpgKDg"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17963
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17964
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17965
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
17966
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17967
|
+
[1m[35mSQL (0.8ms)[0m UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 210 [["active", false], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17968
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
17969
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
17970
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
17971
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
17972
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["created_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["email", "user@example.com"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17973
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17974
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17975
|
+
[1m[35mNotifyUser::UserHash Exists (0.5ms)[0m SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '1uhUvoRo3PqccyJy3jyuYQyBL1rBFsVmzmUpfdhqlZmA' LIMIT 1
|
17976
|
+
[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", Thu, 09 Oct 2014 02:52:15 UTC +00:00], ["target_id", 721], ["target_type", "User"], ["token", "1uhUvoRo3PqccyJy3jyuYQyBL1rBFsVmzmUpfdhqlZmA"], ["type", "NewPostNotification"], ["updated_at", Thu, 09 Oct 2014 02:52:15 UTC +00:00]]
|
17977
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17978
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
17979
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
17980
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17981
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17982
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17983
|
+
[1m[35m (0.1ms)[0m BEGIN
|
17984
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17985
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17986
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17987
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17988
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17989
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17990
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
17991
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17992
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
17993
|
+
[1m[35m (0.2ms)[0m BEGIN
|
17994
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|