notify_user 0.0.18 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
@@ -14693,3 +14693,1116 @@ o here.
14693
14693
   (0.2ms) ROLLBACK
14694
14694
   (0.2ms) BEGIN
14695
14695
   (0.2ms) ROLLBACK
14696
+  (1.2ms) BEGIN
14697
+  (0.8ms) SAVEPOINT active_record_1
14698
+ SQL (20.1ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14699
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14700
+ Processing by NotifyUser::NotificationsController#index as HTML
14701
+ Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.7ms)
14702
+ Completed 200 OK in 15ms (Views: 12.1ms | ActiveRecord: 0.0ms)
14703
+  (0.4ms) ROLLBACK
14704
+  (0.2ms) BEGIN
14705
+  (0.2ms) SAVEPOINT active_record_1
14706
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14707
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14708
+  (0.3ms) SAVEPOINT active_record_1
14709
+  (3.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 588 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14710
+ SQL (3.4ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 588], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14711
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14712
+ Processing by NotifyUser::NotificationsController#index as JSON
14713
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 588 AND "notify_user_notifications"."target_type" = 'User'
14714
+ NotifyUser::BaseNotification Load (2.8ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 588 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
14715
+ Completed 200 OK in 20ms (Views: 9.9ms | ActiveRecord: 3.6ms)
14716
+  (0.4ms) ROLLBACK
14717
+  (0.2ms) BEGIN
14718
+  (0.2ms) SAVEPOINT active_record_1
14719
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14720
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14721
+  (0.3ms) SAVEPOINT active_record_1
14722
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 589 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14723
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 589], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14724
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14725
+  (0.2ms) SAVEPOINT active_record_1
14726
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 589 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14727
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 589], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14728
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14729
+  (0.2ms) SAVEPOINT active_record_1
14730
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 589 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14731
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 589], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14732
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14733
+ Processing by NotifyUser::NotificationsController#index as HTML
14734
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 589 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0
14735
+ Completed 200 OK in 564ms (Views: 561.6ms | ActiveRecord: 1.0ms)
14736
+  (0.5ms) ROLLBACK
14737
+  (0.2ms) BEGIN
14738
+  (0.3ms) SAVEPOINT active_record_1
14739
+ SQL (0.8ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14740
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14741
+  (0.2ms) SAVEPOINT active_record_1
14742
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 590 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14743
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 590], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14744
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14745
+  (0.3ms) SAVEPOINT active_record_1
14746
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 590 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14747
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 590], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14748
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14749
+  (0.2ms) SAVEPOINT active_record_1
14750
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 590 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14751
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 590], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14752
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14753
+ Processing by NotifyUser::NotificationsController#read as HTML
14754
+ Parameters: {"id"=>"593"}
14755
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 590 AND "notify_user_notifications"."target_type" = 'User' AND (id = '593') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
14756
+  (0.2ms) SAVEPOINT active_record_1
14757
+ User Load (0.9ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 590]]
14758
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 590 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14759
+ SQL (2.4ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 593 [["state", "read"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14760
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14761
+ Completed 200 OK in 28ms (Views: 2.1ms | ActiveRecord: 5.5ms)
14762
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 593 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
14763
+  (0.3ms) ROLLBACK
14764
+  (0.2ms) BEGIN
14765
+  (0.2ms) SAVEPOINT active_record_1
14766
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14767
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14768
+  (0.2ms) SAVEPOINT active_record_1
14769
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 591 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14770
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 591], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14771
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14772
+  (0.2ms) SAVEPOINT active_record_1
14773
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 591 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14774
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 591], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14775
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14776
+  (0.3ms) SAVEPOINT active_record_1
14777
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 591 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14778
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 591], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14779
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14780
+ Processing by NotifyUser::NotificationsController#read as HTML
14781
+ Parameters: {"id"=>"596"}
14782
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 591 AND "notify_user_notifications"."target_type" = 'User' AND (id = '596') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
14783
+  (0.2ms) SAVEPOINT active_record_1
14784
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 591]]
14785
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 591 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14786
+ SQL (0.8ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 596 [["state", "read"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14787
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14788
+ Completed 200 OK in 9ms (Views: 0.4ms | ActiveRecord: 2.9ms)
14789
+ Processing by NotifyUser::NotificationsController#read as HTML
14790
+ Parameters: {"id"=>"596"}
14791
+ NotifyUser::BaseNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 591 AND "notify_user_notifications"."target_type" = 'User' AND (id = '596') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
14792
+ Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 3.9ms)
14793
+  (0.2ms) ROLLBACK
14794
+  (0.1ms) BEGIN
14795
+  (0.3ms) SAVEPOINT active_record_1
14796
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14797
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14798
+  (0.2ms) SAVEPOINT active_record_1
14799
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 592 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14800
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 592], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14801
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14802
+  (0.3ms) SAVEPOINT active_record_1
14803
+  (1.3ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 592 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14804
+ SQL (1.0ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 592], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14805
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14806
+  (0.3ms) SAVEPOINT active_record_1
14807
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 592 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14808
+ SQL (1.1ms) 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", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 592], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14809
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14810
+ Processing by NotifyUser::NotificationsController#mark_all as HTML
14811
+ SQL (1.1ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 592 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))
14812
+ Redirected to http://test.host/notify_user/notifications
14813
+ Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
14814
+ NotifyUser::BaseNotification Load (1.2ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 592 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
14815
+  (0.7ms) ROLLBACK
14816
+  (0.3ms) BEGIN
14817
+  (0.4ms) SAVEPOINT active_record_1
14818
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14819
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14820
+  (0.2ms) SAVEPOINT active_record_1
14821
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 593 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14822
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 593], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14823
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14824
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
14825
+ Parameters: {"ids"=>["602"]}
14826
+ SQL (0.6ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 593 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('602'))
14827
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 593 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('602'))
14828
+ Completed 200 OK in 5ms (Views: 2.6ms | ActiveRecord: 1.4ms)
14829
+ NewPostNotification Load (1.0ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 602]]
14830
+  (0.3ms) ROLLBACK
14831
+  (0.1ms) BEGIN
14832
+  (0.3ms) SAVEPOINT active_record_1
14833
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14834
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14835
+  (0.3ms) SAVEPOINT active_record_1
14836
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 594 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14837
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 594], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14838
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14839
+ Processing by NotifyUser::NotificationsController#mark_read as HTML
14840
+ Parameters: {"ids"=>["603"]}
14841
+ SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 594 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('603'))
14842
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 594 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('603'))
14843
+ Completed 200 OK in 5ms (Views: 1.9ms | ActiveRecord: 1.2ms)
14844
+  (0.3ms) ROLLBACK
14845
+  (0.2ms) BEGIN
14846
+  (0.3ms) SAVEPOINT active_record_1
14847
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14848
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14849
+  (0.2ms) SAVEPOINT active_record_1
14850
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 595 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14851
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 595], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14852
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14853
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 595 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14854
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
14855
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
14856
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 595 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14857
+  (0.3ms) SAVEPOINT active_record_1
14858
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 595) LIMIT 1
14859
+ SQL (2.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00], ["target_id", 595], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:44 UTC +00:00]]
14860
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14861
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 595 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
14862
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 595 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14863
+ Completed 200 OK in 38ms (Views: 0.4ms | ActiveRecord: 5.6ms)
14864
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 595 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14865
+  (0.3ms) ROLLBACK
14866
+  (0.2ms) BEGIN
14867
+  (0.3ms) SAVEPOINT active_record_1
14868
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14869
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14870
+  (0.3ms) SAVEPOINT active_record_1
14871
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 596 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14872
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 596], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14873
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14874
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 596 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14875
+ Processing by NotifyUser::NotificationsController#subscriptions as HTML
14876
+ Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
14877
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 596 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14878
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 596 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
14879
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 596 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14880
+ Completed 200 OK in 5ms (Views: 0.3ms | ActiveRecord: 1.5ms)
14881
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 596 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14882
+  (0.3ms) ROLLBACK
14883
+  (0.2ms) BEGIN
14884
+  (0.3ms) SAVEPOINT active_record_1
14885
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14886
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14887
+  (0.2ms) SAVEPOINT active_record_1
14888
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 597 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14889
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 597], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14890
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14891
+ Processing by NotifyUser::NotificationsController#unsubscribe as HTML
14892
+ Parameters: {"type"=>"NewPostNotification"}
14893
+  (0.3ms) SAVEPOINT active_record_1
14894
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 597) LIMIT 1
14895
+ SQL (0.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 597], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14896
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14897
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
14898
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 597 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
14899
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 597 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14900
+ Completed 302 Found in 9ms (ActiveRecord: 2.6ms)
14901
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
14902
+  (0.3ms) ROLLBACK
14903
+  (0.1ms) BEGIN
14904
+  (0.3ms) SAVEPOINT active_record_1
14905
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14906
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14907
+  (0.3ms) SAVEPOINT active_record_1
14908
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 598 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14909
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 598], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14910
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14911
+  (0.4ms) SAVEPOINT active_record_1
14912
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 598) LIMIT 1
14913
+ SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 598], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14914
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14915
+ Processing by NotifyUser::NotificationsController#subscribe as HTML
14916
+ Parameters: {"type"=>"NewPostNotification"}
14917
+ NotifyUser::Unsubscribe Load (0.6ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 598 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14918
+  (0.3ms) SAVEPOINT active_record_1
14919
+ SQL (0.7ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 141]]
14920
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14921
+ Redirected to http://test.host/notify_user/notifications/unsubscribe
14922
+ Completed 302 Found in 5ms (ActiveRecord: 1.8ms)
14923
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"
14924
+  (0.2ms) ROLLBACK
14925
+  (0.2ms) BEGIN
14926
+  (0.3ms) SAVEPOINT active_record_1
14927
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14928
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14929
+  (0.2ms) SAVEPOINT active_record_1
14930
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 599 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14931
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 599], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14932
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14933
+ NotifyUser::UserHash Load (2.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 599 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
14934
+  (0.3ms) SAVEPOINT active_record_1
14935
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'URVankCWkaFhcWGIhKDA0gRsBKH2rdhaD-WrM0AFX0cQ' LIMIT 1
14936
+ SQL (2.9ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 599], ["target_type", "User"], ["token", "URVankCWkaFhcWGIhKDA0gRsBKH2rdhaD-WrM0AFX0cQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14937
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14938
+ Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
14939
+ Parameters: {"type"=>"NewPostNotification", "token"=>"URVankCWkaFhcWGIhKDA0gRsBKH2rdhaD-WrM0AFX0cQ"}
14940
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'URVankCWkaFhcWGIhKDA0gRsBKH2rdhaD-WrM0AFX0cQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
14941
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'URVankCWkaFhcWGIhKDA0gRsBKH2rdhaD-WrM0AFX0cQ' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14942
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 599]]
14943
+  (0.3ms) SAVEPOINT active_record_1
14944
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 599) LIMIT 1
14945
+ SQL (0.7ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 599], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14946
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14947
+  (0.2ms) SAVEPOINT active_record_1
14948
+ SQL (0.9ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 173 [["active", false], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14949
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14950
+ Completed 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 4.9ms)
14951
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
14952
+  (0.2ms) ROLLBACK
14953
+  (0.2ms) BEGIN
14954
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14955
+  (0.2ms) SAVEPOINT active_record_1
14956
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
14957
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14958
+  (0.3ms) SAVEPOINT active_record_1
14959
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
14960
+  (0.4ms) ROLLBACK
14961
+  (0.2ms) BEGIN
14962
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14963
+  (0.2ms) SAVEPOINT active_record_1
14964
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
14965
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14966
+  (0.2ms) SAVEPOINT active_record_1
14967
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
14968
+  (0.3ms) ROLLBACK
14969
+  (0.2ms) BEGIN
14970
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14971
+  (0.3ms) SAVEPOINT active_record_1
14972
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
14973
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
14974
+  (0.2ms) SAVEPOINT active_record_1
14975
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
14976
+  (0.3ms) ROLLBACK
14977
+  (0.2ms) BEGIN
14978
+  (0.2ms) SAVEPOINT active_record_1
14979
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14980
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14981
+  (0.2ms) SAVEPOINT active_record_1
14982
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 600 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14983
+ SQL (0.9ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 600], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14984
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14985
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 600 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('sent','pending'))
14986
+  (0.2ms) ROLLBACK
14987
+  (0.2ms) BEGIN
14988
+  (0.2ms) SAVEPOINT active_record_1
14989
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14990
+  (0.3ms) RELEASE SAVEPOINT active_record_1
14991
+  (0.3ms) SAVEPOINT active_record_1
14992
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 601 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
14993
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 601], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14994
+  (0.2ms) RELEASE SAVEPOINT active_record_1
14995
+  (0.3ms) ROLLBACK
14996
+  (0.1ms) BEGIN
14997
+  (0.3ms) SAVEPOINT active_record_1
14998
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
14999
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15000
+  (0.3ms) SAVEPOINT active_record_1
15001
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 602 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15002
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 602], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15003
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15004
+  (0.3ms) ROLLBACK
15005
+  (0.2ms) BEGIN
15006
+  (0.2ms) SAVEPOINT active_record_1
15007
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15008
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15009
+  (0.2ms) SAVEPOINT active_record_1
15010
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 603 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15011
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 603], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15012
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15013
+  (0.2ms) SAVEPOINT active_record_1
15014
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 603 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15015
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 612 [["params", {"listing_id"=>1}], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15016
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15017
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
15018
+  (0.4ms) ROLLBACK
15019
+  (0.2ms) BEGIN
15020
+  (0.2ms) SAVEPOINT active_record_1
15021
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15022
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15023
+  (0.2ms) SAVEPOINT active_record_1
15024
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 604 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15025
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 604], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15026
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15027
+  (0.2ms) SAVEPOINT active_record_1
15028
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 604 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15029
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 613 [["params", {"listing_id"=>1}], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15030
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15031
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
15032
+  (0.3ms) ROLLBACK
15033
+  (0.2ms) BEGIN
15034
+  (0.2ms) SAVEPOINT active_record_1
15035
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15036
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15037
+  (0.3ms) SAVEPOINT active_record_1
15038
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 605 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15039
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 605], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15040
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15041
+  (0.2ms) SAVEPOINT active_record_1
15042
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 605 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15043
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 614 [["params", {:listing_id=>1}], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15044
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15045
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
15046
+  (0.3ms) ROLLBACK
15047
+  (0.2ms) BEGIN
15048
+  (0.3ms) SAVEPOINT active_record_1
15049
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15050
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15051
+  (0.3ms) SAVEPOINT active_record_1
15052
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 606 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15053
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 606], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15054
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15055
+  (0.2ms) SAVEPOINT active_record_1
15056
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 606 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15057
+ SQL (1.2ms) UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 615 [["params", {:listing_id=>1}], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15058
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15059
+ NewPostNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
15060
+  (0.3ms) ROLLBACK
15061
+  (0.2ms) BEGIN
15062
+  (0.3ms) SAVEPOINT active_record_1
15063
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15064
+  (0.4ms) RELEASE SAVEPOINT active_record_1
15065
+  (0.3ms) SAVEPOINT active_record_1
15066
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 607 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15067
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 607], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15068
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15069
+  (0.2ms) SAVEPOINT active_record_1
15070
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
15071
+  (0.2ms) ROLLBACK
15072
+  (0.3ms) BEGIN
15073
+  (0.2ms) SAVEPOINT active_record_1
15074
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15075
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15076
+  (0.2ms) SAVEPOINT active_record_1
15077
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 608 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15078
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 608], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15079
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15080
+  (0.3ms) SAVEPOINT active_record_1
15081
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 608 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15082
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15083
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 608 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 617)
15084
+ NotifyUser::BaseNotification Load (1.2ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 617]]
15085
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 608]]
15086
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 608 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
15087
+  (0.2ms) SAVEPOINT active_record_1
15088
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15089
+  (0.2ms) SAVEPOINT active_record_1
15090
+ User Load (0.5ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 608]]
15091
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 608 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15092
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 617 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15093
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15094
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 617 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15095
+ User Load (1.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 608]]
15096
+  (1.2ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 608 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15097
+ NewPostNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 617 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15098
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 608]]
15099
+  (1.0ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 608 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
15100
+  (0.2ms) ROLLBACK
15101
+  (0.3ms) BEGIN
15102
+  (0.2ms) SAVEPOINT active_record_1
15103
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15104
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15105
+  (0.2ms) SAVEPOINT active_record_1
15106
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 609 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15107
+ SQL (0.8ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 609], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15108
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15109
+  (0.3ms) SAVEPOINT active_record_1
15110
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 609 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15111
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15112
+  (0.8ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 609 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 618)
15113
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 618]]
15114
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 609]]
15115
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 609 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
15116
+  (0.4ms) SAVEPOINT active_record_1
15117
+  (0.4ms) RELEASE SAVEPOINT active_record_1
15118
+  (0.2ms) SAVEPOINT active_record_1
15119
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 609]]
15120
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 609 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15121
+ SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 618 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15122
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15123
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 618 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15124
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 609]]
15125
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 609 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15126
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 618 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15127
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 609]]
15128
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 609 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
15129
+  (0.3ms) ROLLBACK
15130
+  (0.2ms) BEGIN
15131
+  (0.3ms) SAVEPOINT active_record_1
15132
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15133
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15134
+  (0.3ms) SAVEPOINT active_record_1
15135
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 610 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15136
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 610], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15137
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15138
+  (0.2ms) SAVEPOINT active_record_1
15139
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 610 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15140
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15141
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 610 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 619)
15142
+  (0.2ms) SAVEPOINT active_record_1
15143
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 610 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15144
+ SQL (0.7ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 610], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15145
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15146
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 610 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 620)
15147
+  (0.3ms) ROLLBACK
15148
+  (0.2ms) BEGIN
15149
+  (0.2ms) SAVEPOINT active_record_1
15150
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15151
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15152
+  (0.2ms) SAVEPOINT active_record_1
15153
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 611 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15154
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 611], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15155
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15156
+  (0.2ms) SAVEPOINT active_record_1
15157
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 611 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15158
+ SQL (1.0ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 611], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15159
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15160
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 622]]
15161
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 611]]
15162
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 611 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
15163
+  (0.2ms) SAVEPOINT active_record_1
15164
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15165
+  (0.2ms) SAVEPOINT active_record_1
15166
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15167
+  (0.2ms) SAVEPOINT active_record_1
15168
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 611]]
15169
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 611 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15170
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 621 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15171
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15172
+  (0.2ms) SAVEPOINT active_record_1
15173
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 611]]
15174
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 611 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15175
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 622 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15176
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15177
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 611 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15178
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 611 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
15179
+  (0.2ms) SAVEPOINT active_record_1
15180
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'AhQtBKS4dJJPlcDEGVzRFwDfRu3Zs9ueC4NwBt6QminQ' LIMIT 1
15181
+ SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 611], ["target_type", "User"], ["token", "AhQtBKS4dJJPlcDEGVzRFwDfRu3Zs9ueC4NwBt6QminQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15182
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15183
+
15184
+ Sent mail to user@example.com (12.2ms)
15185
+ Date: Wed, 06 Aug 2014 13:50:45 +1000
15186
+ From: please-change-me-at-config-initializers-notify-user@example.com
15187
+ To: user@example.com
15188
+ Message-ID: <53e1a61580c80_db763fc42d465bf09372e@wp.local.mail>
15189
+ Subject: New Notifications
15190
+ Mime-Version: 1.0
15191
+ Content-Type: text/html;
15192
+ charset=UTF-8
15193
+ Content-Transfer-Encoding: quoted-printable
15194
+
15195
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
15196
+ tml4/strict.dtd">
15197
+ <html>
15198
+ <head>
15199
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
15200
+ "/>
15201
+ <title></title>
15202
+ </head>
15203
+
15204
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
15205
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
15206
+ ing: optimizeLegibility;">
15207
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
15208
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
15209
+ Logo
15210
+ </div>
15211
+ </div>
15212
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
15213
+ ">
15214
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
15215
+ =
15216
+
15217
+ <div>
15218
+ New Post Notification happened. =
15219
+
15220
+ </div>
15221
+ <div>
15222
+ New Post Notification happened. =
15223
+
15224
+ </div>
15225
+
15226
+ </div>
15227
+ </div>
15228
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
15229
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
15230
+ <p style=3D"text-align: center;">
15231
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
15232
+ _unsubscribe?token=3DAhQtBKS4dJJPlcDEGVzRFwDfRu3Zs9ueC4NwBt6QminQ&amp;typ=
15233
+ e=3DNewPostNotification">Unsubscribe</a>
15234
+ </p>
15235
+ <p style=3D"text-align: center;">
15236
+ This is the default generated layout. A privacy declaration could g=
15237
+ o here.
15238
+ </p>
15239
+ <p style=3D"text-align: center; margin-bottom: 0px;">
15240
+ =C2=A9 MyCompany Pty Ltd
15241
+ </p>
15242
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
15243
+ ABN 123 456 789
15244
+ </p>
15245
+ </div>
15246
+ </div>
15247
+ </body>
15248
+ </html>=
15249
+
15250
+  (0.4ms) ROLLBACK
15251
+  (0.2ms) BEGIN
15252
+  (0.2ms) SAVEPOINT active_record_1
15253
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15254
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15255
+  (0.2ms) SAVEPOINT active_record_1
15256
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 612 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15257
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 612], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15258
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15259
+ NotifyUser::BaseNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 623]]
15260
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 612]]
15261
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 612 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
15262
+  (0.2ms) SAVEPOINT active_record_1
15263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15264
+  (0.2ms) SAVEPOINT active_record_1
15265
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 612]]
15266
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 612 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15267
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 623 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15268
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15269
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 623 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15270
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 612]]
15271
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 612 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15272
+ NotifyUser::UserHash Load (0.8ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 612 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
15273
+  (0.3ms) SAVEPOINT active_record_1
15274
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GlJ_QX5dANcbvmAQX6S1SA67-oNLYrXmLemNRw4oufzA' LIMIT 1
15275
+ SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 612], ["target_type", "User"], ["token", "GlJ_QX5dANcbvmAQX6S1SA67-oNLYrXmLemNRw4oufzA"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15276
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15277
+
15278
+ Sent mail to user@example.com (7.4ms)
15279
+ Date: Wed, 06 Aug 2014 13:50:45 +1000
15280
+ From: please-change-me-at-config-initializers-notify-user@example.com
15281
+ To: user@example.com
15282
+ Message-ID: <53e1a6158cfaf_db763fc42d465bf093865@wp.local.mail>
15283
+ Subject: New Notification
15284
+ Mime-Version: 1.0
15285
+ Content-Type: text/html;
15286
+ charset=UTF-8
15287
+ Content-Transfer-Encoding: quoted-printable
15288
+
15289
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
15290
+ tml4/strict.dtd">
15291
+ <html>
15292
+ <head>
15293
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
15294
+ "/>
15295
+ <title></title>
15296
+ </head>
15297
+
15298
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
15299
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
15300
+ ing: optimizeLegibility;">
15301
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
15302
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
15303
+ Logo
15304
+ </div>
15305
+ </div>
15306
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
15307
+ ">
15308
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
15309
+ New Post Notification happened.
15310
+
15311
+ </div>
15312
+ </div>
15313
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
15314
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
15315
+ <p style=3D"text-align: center;">
15316
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
15317
+ _unsubscribe?token=3DGlJ_QX5dANcbvmAQX6S1SA67-oNLYrXmLemNRw4oufzA&amp;typ=
15318
+ e=3DNewPostNotification">Unsubscribe</a>
15319
+ </p>
15320
+ <p style=3D"text-align: center;">
15321
+ This is the default generated layout. A privacy declaration could g=
15322
+ o here.
15323
+ </p>
15324
+ <p style=3D"text-align: center; margin-bottom: 0px;">
15325
+ =C2=A9 MyCompany Pty Ltd
15326
+ </p>
15327
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
15328
+ ABN 123 456 789
15329
+ </p>
15330
+ </div>
15331
+ </div>
15332
+ </body>
15333
+ </html>=
15334
+
15335
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 612 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
15336
+  (0.3ms) ROLLBACK
15337
+  (0.2ms) BEGIN
15338
+  (0.3ms) SAVEPOINT active_record_1
15339
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15340
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15341
+  (0.3ms) SAVEPOINT active_record_1
15342
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 613) LIMIT 1
15343
+ SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 613], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15344
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15345
+  (0.2ms) SAVEPOINT active_record_1
15346
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 613 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15347
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
15348
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15349
+  (0.2ms) ROLLBACK
15350
+  (0.2ms) BEGIN
15351
+  (0.2ms) SAVEPOINT active_record_1
15352
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15353
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15354
+  (0.3ms) SAVEPOINT active_record_1
15355
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 614 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15356
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 614], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15357
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15358
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 624 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15359
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 614]]
15360
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 614 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15361
+  (0.2ms) ROLLBACK
15362
+  (0.2ms) BEGIN
15363
+  (0.2ms) SAVEPOINT active_record_1
15364
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15365
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15366
+  (0.2ms) SAVEPOINT active_record_1
15367
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 615 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15368
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 615], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15369
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15370
+  (0.2ms) SAVEPOINT active_record_1
15371
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 615 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15372
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 615], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15373
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15374
+ NotifyUser::BaseNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 626]]
15375
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 615]]
15376
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 615 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
15377
+  (0.1ms) SAVEPOINT active_record_1
15378
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15379
+  (0.1ms) SAVEPOINT active_record_1
15380
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15381
+  (0.1ms) SAVEPOINT active_record_1
15382
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 615]]
15383
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 615 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15384
+ SQL (1.0ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 625 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15385
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15386
+  (0.2ms) SAVEPOINT active_record_1
15387
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 615]]
15388
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 615 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15389
+ SQL (0.7ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 626 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15390
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15391
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 615 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15392
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 615 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
15393
+  (0.2ms) SAVEPOINT active_record_1
15394
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'KxpdyROCvWOCXtsvkb6dBgP6bhmmiInIFu6nbpxNVAmg' LIMIT 1
15395
+ SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 615], ["target_type", "User"], ["token", "KxpdyROCvWOCXtsvkb6dBgP6bhmmiInIFu6nbpxNVAmg"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15396
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15397
+
15398
+ Sent mail to user@example.com (5.5ms)
15399
+ Date: Wed, 06 Aug 2014 13:50:45 +1000
15400
+ From: please-change-me-at-config-initializers-notify-user@example.com
15401
+ To: user@example.com
15402
+ Message-ID: <53e1a615a0c69_db763fc42d465bf093915@wp.local.mail>
15403
+ Subject: New Notifications
15404
+ Mime-Version: 1.0
15405
+ Content-Type: text/html;
15406
+ charset=UTF-8
15407
+ Content-Transfer-Encoding: quoted-printable
15408
+
15409
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
15410
+ tml4/strict.dtd">
15411
+ <html>
15412
+ <head>
15413
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
15414
+ "/>
15415
+ <title></title>
15416
+ </head>
15417
+
15418
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
15419
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
15420
+ ing: optimizeLegibility;">
15421
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
15422
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
15423
+ Logo
15424
+ </div>
15425
+ </div>
15426
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
15427
+ ">
15428
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
15429
+ =
15430
+
15431
+ <div>
15432
+ New Post Notification happened. =
15433
+
15434
+ </div>
15435
+ <div>
15436
+ New Post Notification happened. =
15437
+
15438
+ </div>
15439
+
15440
+ </div>
15441
+ </div>
15442
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
15443
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
15444
+ <p style=3D"text-align: center;">
15445
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
15446
+ _unsubscribe?token=3DKxpdyROCvWOCXtsvkb6dBgP6bhmmiInIFu6nbpxNVAmg&amp;typ=
15447
+ e=3DNewPostNotification">Unsubscribe</a>
15448
+ </p>
15449
+ <p style=3D"text-align: center;">
15450
+ This is the default generated layout. A privacy declaration could g=
15451
+ o here.
15452
+ </p>
15453
+ <p style=3D"text-align: center; margin-bottom: 0px;">
15454
+ =C2=A9 MyCompany Pty Ltd
15455
+ </p>
15456
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
15457
+ ABN 123 456 789
15458
+ </p>
15459
+ </div>
15460
+ </div>
15461
+ </body>
15462
+ </html>=
15463
+
15464
+  (0.4ms) ROLLBACK
15465
+  (0.3ms) BEGIN
15466
+  (0.3ms) SAVEPOINT active_record_1
15467
+ SQL (0.7ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15468
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15469
+  (0.3ms) SAVEPOINT active_record_1
15470
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 616 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15471
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 616], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15472
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15473
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1 [["id", 627]]
15474
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 616]]
15475
+ NotifyUser::BaseNotification Load (0.6ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 616 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'
15476
+  (0.2ms) SAVEPOINT active_record_1
15477
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15478
+  (0.2ms) SAVEPOINT active_record_1
15479
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 616]]
15480
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 616 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15481
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 627 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15482
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15483
+ NotifyUser::BaseNotification Load (0.5ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 627 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15484
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 616]]
15485
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 616 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15486
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 616 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
15487
+  (0.2ms) SAVEPOINT active_record_1
15488
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'rkGpYA_Y3tpUbaJ9zgsH2w6_XTOJqCJdV0eU4DXEje9w' LIMIT 1
15489
+ SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 616], ["target_type", "User"], ["token", "rkGpYA_Y3tpUbaJ9zgsH2w6_XTOJqCJdV0eU4DXEje9w"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15490
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15491
+
15492
+ Sent mail to user@example.com (6.8ms)
15493
+ Date: Wed, 06 Aug 2014 13:50:45 +1000
15494
+ From: please-change-me-at-config-initializers-notify-user@example.com
15495
+ To: user@example.com
15496
+ Message-ID: <53e1a615ab222_db763fc42d465bf094056@wp.local.mail>
15497
+ Subject: New Notification
15498
+ Mime-Version: 1.0
15499
+ Content-Type: text/html;
15500
+ charset=UTF-8
15501
+ Content-Transfer-Encoding: quoted-printable
15502
+
15503
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
15504
+ tml4/strict.dtd">
15505
+ <html>
15506
+ <head>
15507
+ <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
15508
+ "/>
15509
+ <title></title>
15510
+ </head>
15511
+
15512
+ <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
15513
+ 0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
15514
+ ing: optimizeLegibility;">
15515
+ <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
15516
+ <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
15517
+ Logo
15518
+ </div>
15519
+ </div>
15520
+ <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
15521
+ ">
15522
+ <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
15523
+ New Post Notification happened.
15524
+
15525
+ </div>
15526
+ </div>
15527
+ <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
15528
+ <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
15529
+ <p style=3D"text-align: center;">
15530
+ <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
15531
+ _unsubscribe?token=3DrkGpYA_Y3tpUbaJ9zgsH2w6_XTOJqCJdV0eU4DXEje9w&amp;typ=
15532
+ e=3DNewPostNotification">Unsubscribe</a>
15533
+ </p>
15534
+ <p style=3D"text-align: center;">
15535
+ This is the default generated layout. A privacy declaration could g=
15536
+ o here.
15537
+ </p>
15538
+ <p style=3D"text-align: center; margin-bottom: 0px;">
15539
+ =C2=A9 MyCompany Pty Ltd
15540
+ </p>
15541
+ <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
15542
+ ABN 123 456 789
15543
+ </p>
15544
+ </div>
15545
+ </div>
15546
+ </body>
15547
+ </html>=
15548
+
15549
+  (0.4ms) ROLLBACK
15550
+  (0.2ms) BEGIN
15551
+  (0.2ms) SAVEPOINT active_record_1
15552
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15553
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15554
+  (0.3ms) SAVEPOINT active_record_1
15555
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 617 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15556
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 617], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15557
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15558
+  (0.2ms) SAVEPOINT active_record_1
15559
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 617 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15560
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15561
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 617 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15562
+  (0.2ms) SAVEPOINT active_record_1
15563
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15564
+  (0.2ms) SAVEPOINT active_record_1
15565
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 617 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15566
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 628 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15567
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15568
+ NewPostNotification Load (0.9ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 628 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15569
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 617]]
15570
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 617 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15571
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 617 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
15572
+  (0.3ms) ROLLBACK
15573
+  (0.2ms) BEGIN
15574
+  (0.3ms) SAVEPOINT active_record_1
15575
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15576
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15577
+  (0.2ms) SAVEPOINT active_record_1
15578
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 618) LIMIT 1
15579
+ SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 618], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15580
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15581
+  (0.2ms) SAVEPOINT active_record_1
15582
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 618 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15583
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
15584
+  (0.2ms) SAVEPOINT active_record_1
15585
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 618 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15586
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
15587
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 618 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15588
+  (0.3ms) ROLLBACK
15589
+  (0.3ms) BEGIN
15590
+  (0.3ms) SAVEPOINT active_record_1
15591
+ SQL (1.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15592
+  (0.4ms) RELEASE SAVEPOINT active_record_1
15593
+  (0.3ms) SAVEPOINT active_record_1
15594
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 619) LIMIT 1
15595
+ SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 619], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15596
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15597
+  (0.3ms) SAVEPOINT active_record_1
15598
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 619 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15599
+ SQL (0.6ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 619], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15600
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15601
+  (0.2ms) SAVEPOINT active_record_1
15602
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 619 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15603
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15604
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 619 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15605
+  (0.2ms) SAVEPOINT active_record_1
15606
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15607
+  (0.2ms) SAVEPOINT active_record_1
15608
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 619 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15609
+ SQL (0.9ms) UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 629 [["state", "sent"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15610
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15611
+ NewPostNotification Load (0.7ms) SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 629 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
15612
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 LIMIT 1 [["id", 619]]
15613
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 619 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
15614
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 619 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
15615
+  (0.2ms) ROLLBACK
15616
+  (0.3ms) BEGIN
15617
+  (0.2ms) SAVEPOINT active_record_1
15618
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15619
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15620
+  (0.3ms) SAVEPOINT active_record_1
15621
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 620 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15622
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 620], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15624
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 620 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
15625
+  (0.2ms) SAVEPOINT active_record_1
15626
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'lQdsDl7vYMEfdtYSEljIQQzIIseSuo-gzH-vVlGO1FYw' LIMIT 1
15627
+ SQL (1.2ms) 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", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 620], ["target_type", "User"], ["token", "lQdsDl7vYMEfdtYSEljIQQzIIseSuo-gzH-vVlGO1FYw"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15628
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15629
+  (0.4ms) ROLLBACK
15630
+  (0.2ms) BEGIN
15631
+  (0.2ms) SAVEPOINT active_record_1
15632
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15633
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15634
+  (0.1ms) SAVEPOINT active_record_1
15635
+  (0.4ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 621 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15636
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 621], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15637
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15638
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 621 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
15639
+  (0.2ms) SAVEPOINT active_record_1
15640
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'MFLBZg7hS3DgbJHpgnwM1gUAsqRJeem03Qf_fOzmWpMw' LIMIT 1
15641
+ SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 621], ["target_type", "User"], ["token", "MFLBZg7hS3DgbJHpgnwM1gUAsqRJeem03Qf_fOzmWpMw"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15642
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15643
+ NotifyUser::UserHash Load (0.7ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 621 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
15644
+  (0.2ms) ROLLBACK
15645
+  (0.2ms) BEGIN
15646
+  (0.2ms) SAVEPOINT active_record_1
15647
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15648
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15649
+  (0.2ms) SAVEPOINT active_record_1
15650
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 622 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15651
+ SQL (0.5ms) INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["state", "pending"], ["target_id", 622], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15652
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15653
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 622 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
15654
+  (0.3ms) SAVEPOINT active_record_1
15655
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'SXnj2o03P3W561Cwgmszmw9EX85AnCV06LuthRpkBRMQ' LIMIT 1
15656
+ SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 622], ["target_type", "User"], ["token", "SXnj2o03P3W561Cwgmszmw9EX85AnCV06LuthRpkBRMQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15657
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15658
+  (0.2ms) SAVEPOINT active_record_1
15659
+ SQL (0.8ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 180 [["active", false], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15660
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15661
+ NotifyUser::UserHash Load (0.6ms) SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 622 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
15662
+  (0.3ms) SAVEPOINT active_record_1
15663
+ NotifyUser::UserHash Exists (0.6ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'XXSLEGMALGkbdool8GMdCwnqoNfYZusPHAzZ_it1wJ4g' LIMIT 1
15664
+ SQL (0.9ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 622], ["target_type", "User"], ["token", "XXSLEGMALGkbdool8GMdCwnqoNfYZusPHAzZ_it1wJ4g"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15665
+  (0.4ms) RELEASE SAVEPOINT active_record_1
15666
+  (0.3ms) ROLLBACK
15667
+  (0.2ms) BEGIN
15668
+  (0.2ms) SAVEPOINT active_record_1
15669
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15670
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15671
+  (0.2ms) SAVEPOINT active_record_1
15672
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 623) LIMIT 1
15673
+ SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 623], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15674
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15675
+  (0.2ms) SAVEPOINT active_record_1
15676
+ NotifyUser::Unsubscribe Exists (0.7ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 146 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 623) LIMIT 1
15677
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15678
+  (0.2ms) SAVEPOINT active_record_1
15679
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 623 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15680
+  (0.2ms) ROLLBACK TO SAVEPOINT active_record_1
15681
+  (0.3ms) ROLLBACK
15682
+  (0.2ms) BEGIN
15683
+  (0.2ms) SAVEPOINT active_record_1
15684
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15685
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15686
+  (0.2ms) SAVEPOINT active_record_1
15687
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 624) LIMIT 1
15688
+ SQL (0.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 624], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15689
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15690
+  (0.2ms) SAVEPOINT active_record_1
15691
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 147 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 624) LIMIT 1
15692
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15693
+  (0.2ms) SAVEPOINT active_record_1
15694
+  (0.5ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 624 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15695
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
15696
+  (0.3ms) ROLLBACK
15697
+  (0.2ms) BEGIN
15698
+  (0.2ms) SAVEPOINT active_record_1
15699
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15700
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15701
+  (0.3ms) SAVEPOINT active_record_1
15702
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 625) LIMIT 1
15703
+ SQL (0.5ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 625], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15704
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15705
+  (0.2ms) SAVEPOINT active_record_1
15706
+ NotifyUser::Unsubscribe Exists (0.8ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 148 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 625) LIMIT 1
15707
+  (0.4ms) RELEASE SAVEPOINT active_record_1
15708
+  (0.3ms) SAVEPOINT active_record_1
15709
+ NotifyUser::Unsubscribe Exists (0.6ms) 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" = 625) LIMIT 1
15710
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
15711
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1
15712
+  (0.2ms) ROLLBACK
15713
+  (0.2ms) BEGIN
15714
+  (0.2ms) SAVEPOINT active_record_1
15715
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15716
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15717
+  (0.3ms) SAVEPOINT active_record_1
15718
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 626) LIMIT 1
15719
+ SQL (0.6ms) INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 626], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15720
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15721
+  (0.2ms) SAVEPOINT active_record_1
15722
+ NotifyUser::Unsubscribe Exists (0.6ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 149 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 626) LIMIT 1
15723
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15724
+  (0.2ms) SAVEPOINT active_record_1
15725
+ NotifyUser::Unsubscribe Exists (0.5ms) SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 626) LIMIT 1
15726
+  (0.3ms) ROLLBACK TO SAVEPOINT active_record_1
15727
+  (0.6ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 626 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15728
+ NotifyUser::Unsubscribe Load (0.7ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 626 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15729
+  (0.3ms) SAVEPOINT active_record_1
15730
+ SQL (0.5ms) DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1 [["id", 149]]
15731
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15732
+ NotifyUser::Unsubscribe Load (0.5ms) SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 626 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15733
+  (3.6ms) ROLLBACK
15734
+  (0.3ms) BEGIN
15735
+  (0.2ms) SAVEPOINT active_record_1
15736
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15737
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15738
+  (0.3ms) SAVEPOINT active_record_1
15739
+  (0.7ms) SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 627 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
15740
+ SQL (1.1ms) 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", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 627], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15741
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15742
+  (0.2ms) ROLLBACK
15743
+  (0.2ms) BEGIN
15744
+  (0.3ms) SAVEPOINT active_record_1
15745
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15746
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15747
+  (0.2ms) SAVEPOINT active_record_1
15748
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'YqAyogdu6oTZJwrqnt_oUQ3yPgWCrZP1E2Ua8zJrBEUw' LIMIT 1
15749
+ SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 628], ["target_type", "User"], ["token", "YqAyogdu6oTZJwrqnt_oUQ3yPgWCrZP1E2Ua8zJrBEUw"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15750
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15751
+  (0.2ms) SAVEPOINT active_record_1
15752
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15753
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'YqAyogdu6oTZJwrqnt_oUQ3yPgWCrZP1E2Ua8zJrBEUw' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
15754
+  (0.3ms) ROLLBACK
15755
+  (0.2ms) BEGIN
15756
+  (0.2ms) SAVEPOINT active_record_1
15757
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15758
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15759
+  (0.2ms) SAVEPOINT active_record_1
15760
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'v6wdeEwSjBfBUmFB2HI0TQY0LmlQG_AesMKd6MjsPWQA' LIMIT 1
15761
+ SQL (0.5ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 629], ["target_type", "User"], ["token", "v6wdeEwSjBfBUmFB2HI0TQY0LmlQG_AesMKd6MjsPWQA"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15762
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15763
+  (0.2ms) SAVEPOINT active_record_1
15764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
15765
+  (0.2ms) SAVEPOINT active_record_1
15766
+ SQL (0.7ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 183 [["active", false], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15767
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15768
+ NotifyUser::UserHash Exists (0.4ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'v6wdeEwSjBfBUmFB2HI0TQY0LmlQG_AesMKd6MjsPWQA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
15769
+  (0.2ms) ROLLBACK
15770
+  (0.1ms) BEGIN
15771
+  (0.2ms) SAVEPOINT active_record_1
15772
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15773
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15774
+  (0.2ms) SAVEPOINT active_record_1
15775
+ NotifyUser::UserHash Exists (0.9ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'k19S57hklVTRQtdcdy7s-AnxTiNzeZPhdNhP3W08BPuA' LIMIT 1
15776
+ SQL (0.8ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 630], ["target_type", "User"], ["token", "k19S57hklVTRQtdcdy7s-AnxTiNzeZPhdNhP3W08BPuA"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15777
+  (0.4ms) RELEASE SAVEPOINT active_record_1
15778
+  (0.3ms) SAVEPOINT active_record_1
15779
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15780
+  (0.2ms) SAVEPOINT active_record_1
15781
+ SQL (0.9ms) UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 184 [["active", false], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15782
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15783
+  (0.3ms) ROLLBACK
15784
+  (0.2ms) BEGIN
15785
+  (0.2ms) SAVEPOINT active_record_1
15786
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["email", "user@example.com"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15787
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15788
+  (0.3ms) SAVEPOINT active_record_1
15789
+ NotifyUser::UserHash Exists (0.5ms) SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'fMmq-4nI5ut5i7d7PyaSDQJ83l3rk0BPQyp8TIwEFdBQ' LIMIT 1
15790
+ SQL (0.6ms) INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["created_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00], ["target_id", 631], ["target_type", "User"], ["token", "fMmq-4nI5ut5i7d7PyaSDQJ83l3rk0BPQyp8TIwEFdBQ"], ["type", "NewPostNotification"], ["updated_at", Wed, 06 Aug 2014 03:50:45 UTC +00:00]]
15791
+  (0.3ms) RELEASE SAVEPOINT active_record_1
15792
+  (0.3ms) SAVEPOINT active_record_1
15793
+  (0.2ms) RELEASE SAVEPOINT active_record_1
15794
+  (0.2ms) ROLLBACK
15795
+  (0.2ms) BEGIN
15796
+  (0.2ms) ROLLBACK
15797
+  (0.2ms) BEGIN
15798
+  (0.2ms) ROLLBACK
15799
+  (0.2ms) BEGIN
15800
+  (0.2ms) ROLLBACK
15801
+  (0.2ms) BEGIN
15802
+  (0.2ms) ROLLBACK
15803
+  (0.2ms) BEGIN
15804
+  (0.2ms) ROLLBACK
15805
+  (0.1ms) BEGIN
15806
+  (0.2ms) ROLLBACK
15807
+  (0.2ms) BEGIN
15808
+  (0.2ms) ROLLBACK