notify_user 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b2e451b7b44796f73fc946a6a5719c88c15bab5b
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c172d6b03cee3e231e1a51bbcdd815ddc209f9e1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 620d8ffd2ced292710226663faff087f5be2b25ab576785ed4855cdb04afabde6a6c8eeba0b3e4069cd92eb86bbd6617e694a473d9dd10d2a2d10f226600bbff
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 9f6e7f78c21f67134c45d45db1e3662d31063d08d8105960bf599b186b90ad3fa46da3bf5f14c0e94b5cc454b868b36c3fe04f31090723ed8aaad6f252090fe6
         
     | 
| 
         @@ -3,11 +3,22 @@ class NotifyUser::BaseNotificationsController < ApplicationController 
     | 
|
| 
       3 
3 
     | 
    
         
             
              before_filter :authenticate!, :except => [:unauth_unsubscribe]
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
              def index
         
     | 
| 
      
 6 
     | 
    
         
            +
                collection                                     
         
     | 
| 
      
 7 
     | 
    
         
            +
                respond_to_method
         
     | 
| 
      
 8 
     | 
    
         
            +
              end
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
              def collection
         
     | 
| 
       6 
11 
     | 
    
         
             
                @notifications = NotifyUser::BaseNotification.for_target(@user)
         
     | 
| 
       7 
12 
     | 
    
         
             
                                                              .order("created_at DESC")
         
     | 
| 
       8 
13 
     | 
    
         
             
                                                              .limit(30)
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
      
 14 
     | 
    
         
            +
                collection_pagination
         
     | 
| 
      
 15 
     | 
    
         
            +
              end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
              def collection_pagination
         
     | 
| 
      
 18 
     | 
    
         
            +
                @notifications = @notifications.page(params[:page]).per(params[:per_page])
         
     | 
| 
      
 19 
     | 
    
         
            +
              end
         
     | 
| 
       10 
20 
     | 
    
         | 
| 
      
 21 
     | 
    
         
            +
              def respond_to_method
         
     | 
| 
       11 
22 
     | 
    
         
             
                respond_to do |format|
         
     | 
| 
       12 
23 
     | 
    
         
             
                  format.html
         
     | 
| 
       13 
24 
     | 
    
         
             
                  format.json {render :json => @notifications, meta: { pagination: { per_page: @notifications.limit_value, total_pages: @notifications.total_pages, total_objects: @notifications.total_count } }}
         
     | 
    
        data/lib/notify_user/version.rb
    CHANGED
    
    
| 
         @@ -1072,3 +1072,1039 @@ o here. 
     | 
|
| 
       1072 
1072 
     | 
    
         
             
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
       1073 
1073 
     | 
    
         
             
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
       1074 
1074 
     | 
    
         
             
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1075 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1076 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1077 
     | 
    
         
            +
              [1m[36mSQL (4.6ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1078 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1079 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#index as HTML
         
     | 
| 
      
 1080 
     | 
    
         
            +
              Rendered /Users/william/Papercloud/notify_user/app/views/notify_user/base_notifications/index.html.erb within layouts/application (0.4ms)
         
     | 
| 
      
 1081 
     | 
    
         
            +
            Completed 200 OK in 13ms (Views: 10.3ms | ActiveRecord: 0.0ms)
         
     | 
| 
      
 1082 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1083 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1084 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1085 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1086 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1087 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1088 
     | 
    
         
            +
              [1m[36m (0.9ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 43 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1089 
     | 
    
         
            +
              [1m[35mSQL (1.9ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 43], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1090 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1091 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#index as JSON
         
     | 
| 
      
 1092 
     | 
    
         
            +
              [1m[35m (0.6ms)[0m  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 43 AND "notify_user_notifications"."target_type" = 'User'
         
     | 
| 
      
 1093 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.9ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 43 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
         
     | 
| 
      
 1094 
     | 
    
         
            +
            Completed 200 OK in 16ms (Views: 10.7ms | ActiveRecord: 1.5ms)
         
     | 
| 
      
 1095 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1096 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1097 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1098 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1099 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1100 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1101 
     | 
    
         
            +
              [1m[35m (0.7ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1102 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1103 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1104 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1105 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1106 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1107 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1108 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1109 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 44 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1110 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 44], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1111 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1112 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#index as HTML
         
     | 
| 
      
 1113 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 44 AND "notify_user_notifications"."target_type" = 'User' ORDER BY created_at DESC LIMIT 25 OFFSET 0[0m
         
     | 
| 
      
 1114 
     | 
    
         
            +
            Completed 200 OK in 45ms (Views: 42.8ms | ActiveRecord: 0.8ms)
         
     | 
| 
      
 1115 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  ROLLBACK
         
     | 
| 
      
 1116 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1117 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1118 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1119 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1120 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1121 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1122 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1123 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1124 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1125 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1126 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1127 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1128 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1129 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1130 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 45], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1131 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1132 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#read as HTML
         
     | 
| 
      
 1133 
     | 
    
         
            +
              Parameters: {"id"=>"45"}
         
     | 
| 
      
 1134 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 45 AND "notify_user_notifications"."target_type" = 'User' AND (id = '45') ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1135 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1136 
     | 
    
         
            +
              [1m[36mUser Load (0.7ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 45]]
         
     | 
| 
      
 1137 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 45 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1138 
     | 
    
         
            +
              [1m[36mSQL (1.0ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 45[0m  [["state", "read"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1139 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1140 
     | 
    
         
            +
            Completed 200 OK in 16ms (Views: 1.7ms | ActiveRecord: 3.1ms)
         
     | 
| 
      
 1141 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.8ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 45 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1142 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1143 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1144 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1145 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1146 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1147 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1148 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1149 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1150 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1151 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1152 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1153 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Adams"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1154 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1155 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1156 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 46 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1157 
     | 
    
         
            +
              [1m[36mSQL (0.9ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mrs. James"}], ["state", "pending"], ["target_id", 46], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1158 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1159 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#mark_all as HTML
         
     | 
| 
      
 1160 
     | 
    
         
            +
              [1m[36mSQL (1.0ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 46 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('pending','sent'))[0m
         
     | 
| 
      
 1161 
     | 
    
         
            +
            Redirected to http://test.host/notify_user/notifications
         
     | 
| 
      
 1162 
     | 
    
         
            +
            Completed 302 Found in 3ms (ActiveRecord: 1.0ms)
         
     | 
| 
      
 1163 
     | 
    
         
            +
              [1m[35mNotifyUser::BaseNotification Load (0.6ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 46 AND "notify_user_notifications"."target_type" = 'User' AND (state IN ('["pending","sent"]'))
         
     | 
| 
      
 1164 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1165 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1166 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1167 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1168 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1169 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1170 
     | 
    
         
            +
              [1m[36m (0.6ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 47 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1171 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 47], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1172 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1173 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#mark_read as HTML
         
     | 
| 
      
 1174 
     | 
    
         
            +
              Parameters: {"ids"=>["51"]}
         
     | 
| 
      
 1175 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 47 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('51'))
         
     | 
| 
      
 1176 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.5ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 47 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('51'))[0m
         
     | 
| 
      
 1177 
     | 
    
         
            +
            Completed 200 OK in 5ms (Views: 2.4ms | ActiveRecord: 1.0ms)
         
     | 
| 
      
 1178 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.7ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = $1 LIMIT 1  [["id", 51]]
         
     | 
| 
      
 1179 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1180 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1181 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1182 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1183 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1184 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1185 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 48 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1186 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 48], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1187 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1188 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#mark_read as HTML
         
     | 
| 
      
 1189 
     | 
    
         
            +
              Parameters: {"ids"=>["52"]}
         
     | 
| 
      
 1190 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  UPDATE "notify_user_notifications" SET "state" = 'read' WHERE "notify_user_notifications"."target_id" = 48 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('52'))
         
     | 
| 
      
 1191 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."target_id" = 48 AND "notify_user_notifications"."target_type" = 'User' AND (id IN ('52'))[0m
         
     | 
| 
      
 1192 
     | 
    
         
            +
            Completed 200 OK in 4ms (Views: 1.8ms | ActiveRecord: 0.9ms)
         
     | 
| 
      
 1193 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1194 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1195 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1196 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1197 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1198 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1199 
     | 
    
         
            +
              [1m[35m (0.6ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1200 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 49], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1201 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1202 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1203 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#subscriptions as HTML
         
     | 
| 
      
 1204 
     | 
    
         
            +
              Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"0"}]}
         
     | 
| 
      
 1205 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1206 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1207 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 49) LIMIT 1
         
     | 
| 
      
 1208 
     | 
    
         
            +
              [1m[36mSQL (1.0ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 49], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1209 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1210 
     | 
    
         
            +
              [1m[36m (0.6ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
         
     | 
| 
      
 1211 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1212 
     | 
    
         
            +
            Completed 200 OK in 28ms (Views: 0.5ms | ActiveRecord: 3.3ms)
         
     | 
| 
      
 1213 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 49 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1214 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1215 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1216 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1217 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1218 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1219 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1220 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1221 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 50], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1222 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1223 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1224 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#subscriptions as HTML
         
     | 
| 
      
 1225 
     | 
    
         
            +
              Parameters: {"types"=>[{"type"=>"NewPostNotification", "status"=>"1"}]}
         
     | 
| 
      
 1226 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m  SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1227 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
         
     | 
| 
      
 1228 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1229 
     | 
    
         
            +
            Completed 200 OK in 5ms (Views: 0.5ms | ActiveRecord: 1.2ms)
         
     | 
| 
      
 1230 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 50 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1231 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1232 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1233 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1234 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1235 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1236 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1237 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 51 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1238 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 51], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1239 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1240 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#unsubscribe as HTML
         
     | 
| 
      
 1241 
     | 
    
         
            +
              Parameters: {"type"=>"NewPostNotification"}
         
     | 
| 
      
 1242 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1243 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 51) LIMIT 1
         
     | 
| 
      
 1244 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 51], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1245 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1246 
     | 
    
         
            +
            Redirected to http://test.host/notify_user/notifications/unsubscribe
         
     | 
| 
      
 1247 
     | 
    
         
            +
            Completed 302 Found in 5ms (ActiveRecord: 1.2ms)
         
     | 
| 
      
 1248 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (1.2ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
         
     | 
| 
      
 1249 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1250 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1251 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1252 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1253 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1254 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1255 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 52 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1256 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 52], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1257 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1258 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1259 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 52) LIMIT 1
         
     | 
| 
      
 1260 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 52], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1261 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1262 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#subscribe as HTML
         
     | 
| 
      
 1263 
     | 
    
         
            +
              Parameters: {"type"=>"NewPostNotification"}
         
     | 
| 
      
 1264 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.4ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 52 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1265 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1266 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mDELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1[0m  [["id", 13]]
         
     | 
| 
      
 1267 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1268 
     | 
    
         
            +
            Redirected to http://test.host/notify_user/notifications/unsubscribe
         
     | 
| 
      
 1269 
     | 
    
         
            +
            Completed 302 Found in 3ms (ActiveRecord: 1.1ms)
         
     | 
| 
      
 1270 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.2ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes"[0m
         
     | 
| 
      
 1271 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1272 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1273 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1274 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1275 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1276 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1277 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 53 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1278 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 53], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1279 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1280 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.7ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 53 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1281 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1282 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.5ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' LIMIT 1[0m
         
     | 
| 
      
 1283 
     | 
    
         
            +
              [1m[35mSQL (0.7ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 53], ["target_type", "User"], ["token", "biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1284 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1285 
     | 
    
         
            +
            Processing by NotifyUser::NotificationsController#unauth_unsubscribe as HTML
         
     | 
| 
      
 1286 
     | 
    
         
            +
              Parameters: {"type"=>"NewPostNotification", "token"=>"biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA"}
         
     | 
| 
      
 1287 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
         
     | 
| 
      
 1288 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.4ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'biTOl8u9D6ZRsgGgz6R0SQO7_8d30m7jDTBIOxyTplUA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1289 
     | 
    
         
            +
              [1m[35mUser Load (0.4ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 53]]
         
     | 
| 
      
 1290 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1291 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.6ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 53) LIMIT 1
         
     | 
| 
      
 1292 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 53], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1293 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1294 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1295 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 14  [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1296 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1297 
     | 
    
         
            +
            Completed 200 OK in 10ms (Views: 0.4ms | ActiveRecord: 3.3ms)
         
     | 
| 
      
 1298 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.3ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" ORDER BY "notify_user_user_hashes"."id" DESC LIMIT 1
         
     | 
| 
      
 1299 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1300 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1301 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.8ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1302 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1303 
     | 
    
         
            +
              [1m[36m (0.7ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1304 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.5ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
         
     | 
| 
      
 1305 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1306 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 1307 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1308 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  BEGIN
         
     | 
| 
      
 1309 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.5ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1310 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1311 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1312 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.5ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
         
     | 
| 
      
 1313 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1314 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 1315 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1316 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1317 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.5ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1318 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1319 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1320 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.5ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" IS NULL AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1
         
     | 
| 
      
 1321 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1322 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 1323 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1324 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1325 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1326 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1327 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1328 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1329 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 54 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1330 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 54], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1331 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1332 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1333 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1334 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1335 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1336 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1337 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1338 
     | 
    
         
            +
              [1m[35m (0.6ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 55 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1339 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 55], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1340 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1341 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1342 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1343 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1344 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1345 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1346 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1347 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 56 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1348 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 56], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1349 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1350 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1351 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 56 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1352 
     | 
    
         
            +
              [1m[35mSQL (0.7ms)[0m  UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 60  [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1353 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1354 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.4ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
         
     | 
| 
      
 1355 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1356 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1357 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1358 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1359 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1360 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1361 
     | 
    
         
            +
              [1m[36m (0.7ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 57 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1362 
     | 
    
         
            +
              [1m[35mSQL (0.7ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 57], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1363 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1364 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1365 
     | 
    
         
            +
              [1m[36m (0.6ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 57 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1366 
     | 
    
         
            +
              [1m[35mSQL (0.9ms)[0m  UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 61  [["params", {"listing_id"=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1367 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1368 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.4ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
         
     | 
| 
      
 1369 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1370 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1371 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1372 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1373 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1374 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1375 
     | 
    
         
            +
              [1m[36m (0.8ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 58 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1376 
     | 
    
         
            +
              [1m[35mSQL (0.7ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 58], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1377 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1378 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1379 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 58 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1380 
     | 
    
         
            +
              [1m[35mSQL (0.7ms)[0m  UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 62  [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1381 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1382 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.5ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
         
     | 
| 
      
 1383 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1384 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1385 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1386 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1387 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1388 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1389 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 59 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1390 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 59], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1391 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1392 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1393 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 59 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1394 
     | 
    
         
            +
              [1m[35mSQL (0.7ms)[0m  UPDATE "notify_user_notifications" SET "params" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 63  [["params", {:listing_id=>1}], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1395 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1396 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.4ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') ORDER BY "notify_user_notifications"."id" DESC LIMIT 1
         
     | 
| 
      
 1397 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1398 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1399 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1400 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1401 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1402 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1403 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 60 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1404 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 60], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1405 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1406 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1407 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1408 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1409 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1410 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1411 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1412 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1413 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1414 
     | 
    
         
            +
              [1m[35m (0.5ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1415 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 61], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1416 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1417 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1418 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1419 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1420 
     | 
    
         
            +
              [1m[35m (0.9ms)[0m  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 61 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 65)
         
     | 
| 
      
 1421 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.7ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m  [["id", 65]]
         
     | 
| 
      
 1422 
     | 
    
         
            +
              [1m[35mUser Load (0.4ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 61]]
         
     | 
| 
      
 1423 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 61 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
         
     | 
| 
      
 1424 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1425 
     | 
    
         
            +
              [1m[36mUser Load (0.3ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 61]]
         
     | 
| 
      
 1426 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1427 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 65[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1428 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1429 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1430 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1431 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1432 
     | 
    
         
            +
              [1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 65 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
         
     | 
| 
      
 1433 
     | 
    
         
            +
              [1m[36mUser Load (0.3ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 61]]
         
     | 
| 
      
 1434 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1435 
     | 
    
         
            +
              [1m[36mNewPostNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 65 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1436 
     | 
    
         
            +
              [1m[35mUser Load (0.3ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 61]]
         
     | 
| 
      
 1437 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 61 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
         
     | 
| 
      
 1438 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1439 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1440 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1441 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1442 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1443 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1444 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1445 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 62], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1446 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1447 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1448 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1449 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1450 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 62 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 66)
         
     | 
| 
      
 1451 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1452 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 62 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1453 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 62], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1454 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1455 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 62 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending' AND (id != 67)[0m
         
     | 
| 
      
 1456 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1457 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1458 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1459 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1460 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1461 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1462 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1463 
     | 
    
         
            +
              [1m[36mSQL (0.3ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 63], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1464 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1465 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1466 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1467 
     | 
    
         
            +
              [1m[36mSQL (0.3ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 63], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1468 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1469 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m  [["id", 69]]
         
     | 
| 
      
 1470 
     | 
    
         
            +
              [1m[35mUser Load (0.2ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 63]]
         
     | 
| 
      
 1471 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 63 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
         
     | 
| 
      
 1472 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1473 
     | 
    
         
            +
              [1m[36mUser Load (0.3ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 63]]
         
     | 
| 
      
 1474 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1475 
     | 
    
         
            +
              [1m[36mSQL (0.7ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 68[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1476 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1477 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1478 
     | 
    
         
            +
              [1m[35mUser Load (0.3ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 63]]
         
     | 
| 
      
 1479 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1480 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 69  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1481 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1482 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1483 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1484 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1485 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1486 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1487 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1488 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 63 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1489 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.6ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 63 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1490 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1491 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.4ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'jLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ' LIMIT 1[0m
         
     | 
| 
      
 1492 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 63], ["target_type", "User"], ["token", "jLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1493 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1494 
     | 
    
         
            +
             
     | 
| 
      
 1495 
     | 
    
         
            +
            Sent mail to user@example.com (8.3ms)
         
     | 
| 
      
 1496 
     | 
    
         
            +
            Date: Mon, 28 Apr 2014 14:17:56 +1000
         
     | 
| 
      
 1497 
     | 
    
         
            +
            From: please-change-me-at-config-initializers-notify-user@example.com
         
     | 
| 
      
 1498 
     | 
    
         
            +
            To: user@example.com
         
     | 
| 
      
 1499 
     | 
    
         
            +
            Message-ID: <535dd674da3a2_13513fefc482dbf869595@wp.local.mail>
         
     | 
| 
      
 1500 
     | 
    
         
            +
            Subject: Rails402: You have new Newpostnotification notifications.
         
     | 
| 
      
 1501 
     | 
    
         
            +
            Mime-Version: 1.0
         
     | 
| 
      
 1502 
     | 
    
         
            +
            Content-Type: text/html;
         
     | 
| 
      
 1503 
     | 
    
         
            +
             charset=UTF-8
         
     | 
| 
      
 1504 
     | 
    
         
            +
            Content-Transfer-Encoding: quoted-printable
         
     | 
| 
      
 1505 
     | 
    
         
            +
             
     | 
| 
      
 1506 
     | 
    
         
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
         
     | 
| 
      
 1507 
     | 
    
         
            +
            tml4/strict.dtd">
         
     | 
| 
      
 1508 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 1509 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 1510 
     | 
    
         
            +
              <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
         
     | 
| 
      
 1511 
     | 
    
         
            +
            "/>
         
     | 
| 
      
 1512 
     | 
    
         
            +
              <title></title>
         
     | 
| 
      
 1513 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 1514 
     | 
    
         
            +
             
     | 
| 
      
 1515 
     | 
    
         
            +
            <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
         
     | 
| 
      
 1516 
     | 
    
         
            +
            0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
         
     | 
| 
      
 1517 
     | 
    
         
            +
            ing: optimizeLegibility;">
         
     | 
| 
      
 1518 
     | 
    
         
            +
            <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
         
     | 
| 
      
 1519 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
         
     | 
| 
      
 1520 
     | 
    
         
            +
                Logo
         
     | 
| 
      
 1521 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1522 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1523 
     | 
    
         
            +
            <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
         
     | 
| 
      
 1524 
     | 
    
         
            +
            ">
         
     | 
| 
      
 1525 
     | 
    
         
            +
              <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
         
     | 
| 
      
 1526 
     | 
    
         
            +
                =
         
     | 
| 
      
 1527 
     | 
    
         
            +
             
     | 
| 
      
 1528 
     | 
    
         
            +
            <div>
         
     | 
| 
      
 1529 
     | 
    
         
            +
              New Post Notification happened.  =
         
     | 
| 
      
 1530 
     | 
    
         
            +
             
     | 
| 
      
 1531 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1532 
     | 
    
         
            +
            <div>
         
     | 
| 
      
 1533 
     | 
    
         
            +
              New Post Notification happened.  =
         
     | 
| 
      
 1534 
     | 
    
         
            +
             
     | 
| 
      
 1535 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1536 
     | 
    
         
            +
             
     | 
| 
      
 1537 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1538 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1539 
     | 
    
         
            +
            <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
         
     | 
| 
      
 1540 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
         
     | 
| 
      
 1541 
     | 
    
         
            +
                  <p style=3D"text-align: center;">
         
     | 
| 
      
 1542 
     | 
    
         
            +
                    <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
         
     | 
| 
      
 1543 
     | 
    
         
            +
            _unsubscribe?token=3DjLM93zI1WpDKdbGM0XXnMgTDJRmUmYp0W5l5A2M9yVlQ&typ=
         
     | 
| 
      
 1544 
     | 
    
         
            +
            e=3DNewPostNotification">Unsubscribe</a>
         
     | 
| 
      
 1545 
     | 
    
         
            +
                  </p>
         
     | 
| 
      
 1546 
     | 
    
         
            +
                <p style=3D"text-align: center;">
         
     | 
| 
      
 1547 
     | 
    
         
            +
                  This is the default generated layout. A privacy declaration could g=
         
     | 
| 
      
 1548 
     | 
    
         
            +
            o here.
         
     | 
| 
      
 1549 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1550 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-bottom: 0px;">
         
     | 
| 
      
 1551 
     | 
    
         
            +
                  =C2=A9 MyCompany Pty Ltd
         
     | 
| 
      
 1552 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1553 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
         
     | 
| 
      
 1554 
     | 
    
         
            +
                  ABN 123 456 789
         
     | 
| 
      
 1555 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1556 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1557 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1558 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 1559 
     | 
    
         
            +
            </html>=
         
     | 
| 
      
 1560 
     | 
    
         
            +
             
     | 
| 
      
 1561 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1562 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1563 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1564 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1565 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1566 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1567 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1568 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 64], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1569 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1570 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m  [["id", 70]]
         
     | 
| 
      
 1571 
     | 
    
         
            +
              [1m[35mUser Load (0.2ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 64]]
         
     | 
| 
      
 1572 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 64 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
         
     | 
| 
      
 1573 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1574 
     | 
    
         
            +
              [1m[36mUser Load (0.2ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 64]]
         
     | 
| 
      
 1575 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1576 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 70[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1577 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1578 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1579 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1580 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1581 
     | 
    
         
            +
              [1m[35mNotifyUser::BaseNotification Load (0.4ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 70 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
         
     | 
| 
      
 1582 
     | 
    
         
            +
              [1m[36mUser Load (0.3ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 64]]
         
     | 
| 
      
 1583 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1584 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.5ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 64 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1585 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1586 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'Xs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg' LIMIT 1[0m
         
     | 
| 
      
 1587 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 64], ["target_type", "User"], ["token", "Xs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1588 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1589 
     | 
    
         
            +
             
     | 
| 
      
 1590 
     | 
    
         
            +
            Sent mail to user@example.com (18.0ms)
         
     | 
| 
      
 1591 
     | 
    
         
            +
            Date: Mon, 28 Apr 2014 14:17:56 +1000
         
     | 
| 
      
 1592 
     | 
    
         
            +
            From: please-change-me-at-config-initializers-notify-user@example.com
         
     | 
| 
      
 1593 
     | 
    
         
            +
            To: user@example.com
         
     | 
| 
      
 1594 
     | 
    
         
            +
            Message-ID: <535dd674e6514_13513fefc482dbf86961c@wp.local.mail>
         
     | 
| 
      
 1595 
     | 
    
         
            +
            Subject: Rails402: You have a new Newpostnotification notification.
         
     | 
| 
      
 1596 
     | 
    
         
            +
            Mime-Version: 1.0
         
     | 
| 
      
 1597 
     | 
    
         
            +
            Content-Type: text/html;
         
     | 
| 
      
 1598 
     | 
    
         
            +
             charset=UTF-8
         
     | 
| 
      
 1599 
     | 
    
         
            +
            Content-Transfer-Encoding: quoted-printable
         
     | 
| 
      
 1600 
     | 
    
         
            +
             
     | 
| 
      
 1601 
     | 
    
         
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
         
     | 
| 
      
 1602 
     | 
    
         
            +
            tml4/strict.dtd">
         
     | 
| 
      
 1603 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 1604 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 1605 
     | 
    
         
            +
              <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
         
     | 
| 
      
 1606 
     | 
    
         
            +
            "/>
         
     | 
| 
      
 1607 
     | 
    
         
            +
              <title></title>
         
     | 
| 
      
 1608 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 1609 
     | 
    
         
            +
             
     | 
| 
      
 1610 
     | 
    
         
            +
            <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
         
     | 
| 
      
 1611 
     | 
    
         
            +
            0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
         
     | 
| 
      
 1612 
     | 
    
         
            +
            ing: optimizeLegibility;">
         
     | 
| 
      
 1613 
     | 
    
         
            +
            <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
         
     | 
| 
      
 1614 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
         
     | 
| 
      
 1615 
     | 
    
         
            +
                Logo
         
     | 
| 
      
 1616 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1617 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1618 
     | 
    
         
            +
            <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
         
     | 
| 
      
 1619 
     | 
    
         
            +
            ">
         
     | 
| 
      
 1620 
     | 
    
         
            +
              <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
         
     | 
| 
      
 1621 
     | 
    
         
            +
                New Post Notification happened.
         
     | 
| 
      
 1622 
     | 
    
         
            +
             
     | 
| 
      
 1623 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1624 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1625 
     | 
    
         
            +
            <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
         
     | 
| 
      
 1626 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
         
     | 
| 
      
 1627 
     | 
    
         
            +
                  <p style=3D"text-align: center;">
         
     | 
| 
      
 1628 
     | 
    
         
            +
                    <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
         
     | 
| 
      
 1629 
     | 
    
         
            +
            _unsubscribe?token=3DXs_NpRA1VAdO14Mq4q4I_A06nFjvqJVjapWdhkPiFbKg&typ=
         
     | 
| 
      
 1630 
     | 
    
         
            +
            e=3DNewPostNotification">Unsubscribe</a>
         
     | 
| 
      
 1631 
     | 
    
         
            +
                  </p>
         
     | 
| 
      
 1632 
     | 
    
         
            +
                <p style=3D"text-align: center;">
         
     | 
| 
      
 1633 
     | 
    
         
            +
                  This is the default generated layout. A privacy declaration could g=
         
     | 
| 
      
 1634 
     | 
    
         
            +
            o here.
         
     | 
| 
      
 1635 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1636 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-bottom: 0px;">
         
     | 
| 
      
 1637 
     | 
    
         
            +
                  =C2=A9 MyCompany Pty Ltd
         
     | 
| 
      
 1638 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1639 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
         
     | 
| 
      
 1640 
     | 
    
         
            +
                  ABN 123 456 789
         
     | 
| 
      
 1641 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1642 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1643 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1644 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 1645 
     | 
    
         
            +
            </html>=
         
     | 
| 
      
 1646 
     | 
    
         
            +
             
     | 
| 
      
 1647 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 64 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'
         
     | 
| 
      
 1648 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1649 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1650 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1651 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1652 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1653 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1654 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 65) LIMIT 1[0m
         
     | 
| 
      
 1655 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["target_id", 65], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1656 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1657 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1658 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 65 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1659 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 1660 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.3ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" IS NULL ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1661 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1662 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1663 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1664 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1665 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1666 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1667 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 66 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1668 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 66], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1669 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1670 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 71 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1671 
     | 
    
         
            +
              [1m[35mUser Load (0.2ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 66]]
         
     | 
| 
      
 1672 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 66 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'[0m
         
     | 
| 
      
 1673 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1674 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1675 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1676 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1677 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1678 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1679 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1680 
     | 
    
         
            +
              [1m[36mSQL (0.3ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 67], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1681 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1682 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1683 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1684 
     | 
    
         
            +
              [1m[36mSQL (0.3ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00], ["state", "pending"], ["target_id", 67], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1685 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1686 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m  [["id", 73]]
         
     | 
| 
      
 1687 
     | 
    
         
            +
              [1m[35mUser Load (0.2ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 67]]
         
     | 
| 
      
 1688 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 67 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
         
     | 
| 
      
 1689 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1690 
     | 
    
         
            +
              [1m[36mUser Load (0.3ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 67]]
         
     | 
| 
      
 1691 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1692 
     | 
    
         
            +
              [1m[36mSQL (0.7ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 72[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1693 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1694 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1695 
     | 
    
         
            +
              [1m[35mUser Load (0.3ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 67]]
         
     | 
| 
      
 1696 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1697 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  UPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 73  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:56 UTC +00:00]]
         
     | 
| 
      
 1698 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1699 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1700 
     | 
    
         
            +
              [1m[36m (0.4ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1701 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1702 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1703 
     | 
    
         
            +
              [1m[35m (0.5ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1704 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1705 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 67 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1706 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.5ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 67 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1707 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1708 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'UDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ' LIMIT 1[0m
         
     | 
| 
      
 1709 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 67], ["target_type", "User"], ["token", "UDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1710 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1711 
     | 
    
         
            +
             
     | 
| 
      
 1712 
     | 
    
         
            +
            Sent mail to user@example.com (6.2ms)
         
     | 
| 
      
 1713 
     | 
    
         
            +
            Date: Mon, 28 Apr 2014 14:17:57 +1000
         
     | 
| 
      
 1714 
     | 
    
         
            +
            From: please-change-me-at-config-initializers-notify-user@example.com
         
     | 
| 
      
 1715 
     | 
    
         
            +
            To: user@example.com
         
     | 
| 
      
 1716 
     | 
    
         
            +
            Message-ID: <535dd6753a1d_13513fefc482dbf8697f5@wp.local.mail>
         
     | 
| 
      
 1717 
     | 
    
         
            +
            Subject: Rails402: You have new Newpostnotification notifications.
         
     | 
| 
      
 1718 
     | 
    
         
            +
            Mime-Version: 1.0
         
     | 
| 
      
 1719 
     | 
    
         
            +
            Content-Type: text/html;
         
     | 
| 
      
 1720 
     | 
    
         
            +
             charset=UTF-8
         
     | 
| 
      
 1721 
     | 
    
         
            +
            Content-Transfer-Encoding: quoted-printable
         
     | 
| 
      
 1722 
     | 
    
         
            +
             
     | 
| 
      
 1723 
     | 
    
         
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
         
     | 
| 
      
 1724 
     | 
    
         
            +
            tml4/strict.dtd">
         
     | 
| 
      
 1725 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 1726 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 1727 
     | 
    
         
            +
              <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
         
     | 
| 
      
 1728 
     | 
    
         
            +
            "/>
         
     | 
| 
      
 1729 
     | 
    
         
            +
              <title></title>
         
     | 
| 
      
 1730 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 1731 
     | 
    
         
            +
             
     | 
| 
      
 1732 
     | 
    
         
            +
            <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
         
     | 
| 
      
 1733 
     | 
    
         
            +
            0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
         
     | 
| 
      
 1734 
     | 
    
         
            +
            ing: optimizeLegibility;">
         
     | 
| 
      
 1735 
     | 
    
         
            +
            <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
         
     | 
| 
      
 1736 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
         
     | 
| 
      
 1737 
     | 
    
         
            +
                Logo
         
     | 
| 
      
 1738 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1739 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1740 
     | 
    
         
            +
            <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
         
     | 
| 
      
 1741 
     | 
    
         
            +
            ">
         
     | 
| 
      
 1742 
     | 
    
         
            +
              <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
         
     | 
| 
      
 1743 
     | 
    
         
            +
                =
         
     | 
| 
      
 1744 
     | 
    
         
            +
             
     | 
| 
      
 1745 
     | 
    
         
            +
            <div>
         
     | 
| 
      
 1746 
     | 
    
         
            +
              New Post Notification happened.  =
         
     | 
| 
      
 1747 
     | 
    
         
            +
             
     | 
| 
      
 1748 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1749 
     | 
    
         
            +
            <div>
         
     | 
| 
      
 1750 
     | 
    
         
            +
              New Post Notification happened.  =
         
     | 
| 
      
 1751 
     | 
    
         
            +
             
     | 
| 
      
 1752 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1753 
     | 
    
         
            +
             
     | 
| 
      
 1754 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1755 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1756 
     | 
    
         
            +
            <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
         
     | 
| 
      
 1757 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
         
     | 
| 
      
 1758 
     | 
    
         
            +
                  <p style=3D"text-align: center;">
         
     | 
| 
      
 1759 
     | 
    
         
            +
                    <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
         
     | 
| 
      
 1760 
     | 
    
         
            +
            _unsubscribe?token=3DUDa4MKx7NzpybnNQAaZKHw9p5GO0dF6acLFBONa5HRqQ&typ=
         
     | 
| 
      
 1761 
     | 
    
         
            +
            e=3DNewPostNotification">Unsubscribe</a>
         
     | 
| 
      
 1762 
     | 
    
         
            +
                  </p>
         
     | 
| 
      
 1763 
     | 
    
         
            +
                <p style=3D"text-align: center;">
         
     | 
| 
      
 1764 
     | 
    
         
            +
                  This is the default generated layout. A privacy declaration could g=
         
     | 
| 
      
 1765 
     | 
    
         
            +
            o here.
         
     | 
| 
      
 1766 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1767 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-bottom: 0px;">
         
     | 
| 
      
 1768 
     | 
    
         
            +
                  =C2=A9 MyCompany Pty Ltd
         
     | 
| 
      
 1769 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1770 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
         
     | 
| 
      
 1771 
     | 
    
         
            +
                  ABN 123 456 789
         
     | 
| 
      
 1772 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1773 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1774 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1775 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 1776 
     | 
    
         
            +
            </html>=
         
     | 
| 
      
 1777 
     | 
    
         
            +
             
     | 
| 
      
 1778 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  ROLLBACK
         
     | 
| 
      
 1779 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1780 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1781 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1782 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1783 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1784 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1785 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 68], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1786 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1787 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = $1 LIMIT 1[0m  [["id", 74]]
         
     | 
| 
      
 1788 
     | 
    
         
            +
              [1m[35mUser Load (0.3ms)[0m  SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1  [["id", 68]]
         
     | 
| 
      
 1789 
     | 
    
         
            +
              [1m[36mNotifyUser::BaseNotification Load (0.4ms)[0m  [1mSELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" = 'NewPostNotification' AND "notify_user_notifications"."target_id" = 68 AND "notify_user_notifications"."target_type" = 'User' AND "notify_user_notifications"."state" = 'pending'[0m
         
     | 
| 
      
 1790 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1791 
     | 
    
         
            +
              [1m[36mUser Load (0.2ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 68]]
         
     | 
| 
      
 1792 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1793 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 74[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1794 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1795 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1796 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1797 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1798 
     | 
    
         
            +
              [1m[35mNotifyUser::BaseNotification Load (0.3ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."id" = 74 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
         
     | 
| 
      
 1799 
     | 
    
         
            +
              [1m[36mUser Load (0.3ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 68]]
         
     | 
| 
      
 1800 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 68 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1801 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.5ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 68 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1802 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1803 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'HFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg' LIMIT 1[0m
         
     | 
| 
      
 1804 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 68], ["target_type", "User"], ["token", "HFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1805 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1806 
     | 
    
         
            +
             
     | 
| 
      
 1807 
     | 
    
         
            +
            Sent mail to user@example.com (6.1ms)
         
     | 
| 
      
 1808 
     | 
    
         
            +
            Date: Mon, 28 Apr 2014 14:17:57 +1000
         
     | 
| 
      
 1809 
     | 
    
         
            +
            From: please-change-me-at-config-initializers-notify-user@example.com
         
     | 
| 
      
 1810 
     | 
    
         
            +
            To: user@example.com
         
     | 
| 
      
 1811 
     | 
    
         
            +
            Message-ID: <535dd675de40_13513fefc482dbf869861@wp.local.mail>
         
     | 
| 
      
 1812 
     | 
    
         
            +
            Subject: Rails402: You have a new Newpostnotification notification.
         
     | 
| 
      
 1813 
     | 
    
         
            +
            Mime-Version: 1.0
         
     | 
| 
      
 1814 
     | 
    
         
            +
            Content-Type: text/html;
         
     | 
| 
      
 1815 
     | 
    
         
            +
             charset=UTF-8
         
     | 
| 
      
 1816 
     | 
    
         
            +
            Content-Transfer-Encoding: quoted-printable
         
     | 
| 
      
 1817 
     | 
    
         
            +
             
     | 
| 
      
 1818 
     | 
    
         
            +
            <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/h=
         
     | 
| 
      
 1819 
     | 
    
         
            +
            tml4/strict.dtd">
         
     | 
| 
      
 1820 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 1821 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 1822 
     | 
    
         
            +
              <meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type=
         
     | 
| 
      
 1823 
     | 
    
         
            +
            "/>
         
     | 
| 
      
 1824 
     | 
    
         
            +
              <title></title>
         
     | 
| 
      
 1825 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 1826 
     | 
    
         
            +
             
     | 
| 
      
 1827 
     | 
    
         
            +
            <body marginheight=3D"0" topmargin=3D"0" marginwidth=3D"0" leftmargin=3D"=
         
     | 
| 
      
 1828 
     | 
    
         
            +
            0" style=3D"margin: 0px; -webkit-font-smoothing: antialiased; text-render=
         
     | 
| 
      
 1829 
     | 
    
         
            +
            ing: optimizeLegibility;">
         
     | 
| 
      
 1830 
     | 
    
         
            +
            <div style=3D"width: 100%; height: 70px; margin: 0; padding: 0;">
         
     | 
| 
      
 1831 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 15px 0;">
         
     | 
| 
      
 1832 
     | 
    
         
            +
                Logo
         
     | 
| 
      
 1833 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1834 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1835 
     | 
    
         
            +
            <div style=3D"width: 100%; background-color: #fff; margin: 0; padding: 0;=
         
     | 
| 
      
 1836 
     | 
    
         
            +
            ">
         
     | 
| 
      
 1837 
     | 
    
         
            +
              <div style=3D"width: 500px; margin: 0 auto; padding: 40px 0; ">
         
     | 
| 
      
 1838 
     | 
    
         
            +
                New Post Notification happened.
         
     | 
| 
      
 1839 
     | 
    
         
            +
             
     | 
| 
      
 1840 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1841 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1842 
     | 
    
         
            +
            <div style=3D"width: 100%; min-height: 80px; margin: 0; padding: 0;">
         
     | 
| 
      
 1843 
     | 
    
         
            +
              <div style=3D"width: 600px; margin: 0 auto; padding: 0;">
         
     | 
| 
      
 1844 
     | 
    
         
            +
                  <p style=3D"text-align: center;">
         
     | 
| 
      
 1845 
     | 
    
         
            +
                    <a href=3D"http://localhost:5000/notify_user/notifications/unauth=
         
     | 
| 
      
 1846 
     | 
    
         
            +
            _unsubscribe?token=3DHFBlJ2R258sLpWsNcEevKgaQfMlcr5p8Nfh5jW83nklg&typ=
         
     | 
| 
      
 1847 
     | 
    
         
            +
            e=3DNewPostNotification">Unsubscribe</a>
         
     | 
| 
      
 1848 
     | 
    
         
            +
                  </p>
         
     | 
| 
      
 1849 
     | 
    
         
            +
                <p style=3D"text-align: center;">
         
     | 
| 
      
 1850 
     | 
    
         
            +
                  This is the default generated layout. A privacy declaration could g=
         
     | 
| 
      
 1851 
     | 
    
         
            +
            o here.
         
     | 
| 
      
 1852 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1853 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-bottom: 0px;">
         
     | 
| 
      
 1854 
     | 
    
         
            +
                  =C2=A9 MyCompany Pty Ltd
         
     | 
| 
      
 1855 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1856 
     | 
    
         
            +
                <p style=3D"text-align: center; margin-top: 0px; padding-top: 0px;">
         
     | 
| 
      
 1857 
     | 
    
         
            +
                  ABN 123 456 789
         
     | 
| 
      
 1858 
     | 
    
         
            +
                </p>
         
     | 
| 
      
 1859 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 1860 
     | 
    
         
            +
            </div>
         
     | 
| 
      
 1861 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 1862 
     | 
    
         
            +
            </html>=
         
     | 
| 
      
 1863 
     | 
    
         
            +
             
     | 
| 
      
 1864 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1865 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1866 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1867 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1868 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1869 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1870 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1871 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 69], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1872 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1873 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1874 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1875 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1876 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1877 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1878 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1879 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 75[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1880 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1881 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1882 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1883 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1884 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.4ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 75 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
         
     | 
| 
      
 1885 
     | 
    
         
            +
              [1m[36mUser Load (0.2ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 69]]
         
     | 
| 
      
 1886 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1887 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 69 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
         
     | 
| 
      
 1888 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1889 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1890 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1891 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1892 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1893 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1894 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 70) LIMIT 1
         
     | 
| 
      
 1895 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 70], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1896 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1897 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1898 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1899 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1900 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1901 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1902 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 1903 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 70 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1904 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1905 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1906 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1907 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1908 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1909 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1910 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'action_mailer' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 71) LIMIT 1
         
     | 
| 
      
 1911 
     | 
    
         
            +
              [1m[36mSQL (0.3ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 71], ["target_type", "User"], ["type", "action_mailer"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1912 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1913 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1914 
     | 
    
         
            +
              [1m[35m (0.5ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1915 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 71], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1916 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1917 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1918 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1919 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1920 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1921 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1922 
     | 
    
         
            +
              [1m[35m (0.6ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1923 
     | 
    
         
            +
              [1m[36mSQL (0.9ms)[0m  [1mUPDATE "notify_user_notifications" SET "state" = $1, "updated_at" = $2 WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 76[0m  [["state", "sent"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1924 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1925 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1926 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1927 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1928 
     | 
    
         
            +
              [1m[35mNewPostNotification Load (0.4ms)[0m  SELECT "notify_user_notifications".* FROM "notify_user_notifications" WHERE "notify_user_notifications"."type" IN ('NewPostNotification') AND "notify_user_notifications"."id" = 76 ORDER BY "notify_user_notifications"."id" ASC LIMIT 1
         
     | 
| 
      
 1929 
     | 
    
         
            +
              [1m[36mUser Load (0.2ms)[0m  [1mSELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1[0m  [["id", 71]]
         
     | 
| 
      
 1930 
     | 
    
         
            +
              [1m[35m (0.3ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'action_mailer'
         
     | 
| 
      
 1931 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 71 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'apns'[0m
         
     | 
| 
      
 1932 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1933 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1934 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1935 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1936 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1937 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1938 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 72 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1939 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 72], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1940 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1941 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.5ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 72 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1942 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1943 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'u6vVYVqjWS15CgIKmKI2dgMe6o_8rpah23GuguMRjeCA' LIMIT 1[0m
         
     | 
| 
      
 1944 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 72], ["target_type", "User"], ["token", "u6vVYVqjWS15CgIKmKI2dgMe6o_8rpah23GuguMRjeCA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1945 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1946 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 1947 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 1948 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1949 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1950 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1951 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1952 
     | 
    
         
            +
              [1m[35m (0.4ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 73 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1953 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 73], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1954 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1955 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Load (0.4ms)[0m  [1mSELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 73 AND "notify_user_user_hashes"."target_type" = 'User' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' ORDER BY "notify_user_user_hashes"."id" ASC LIMIT 1[0m
         
     | 
| 
      
 1956 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1957 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.5ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'LSo4vY3yZkgw_czqZO_skQK76JRvmXMR8tlO0acQTCaQ' LIMIT 1[0m
         
     | 
| 
      
 1958 
     | 
    
         
            +
              [1m[35mSQL (0.3ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 73], ["target_type", "User"], ["token", "LSo4vY3yZkgw_czqZO_skQK76JRvmXMR8tlO0acQTCaQ"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1959 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1960 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.6ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 73 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
         
     | 
| 
      
 1961 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1962 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 1963 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1964 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1965 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1966 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1967 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 74 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 1968 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["state", "pending"], ["target_id", 74], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1969 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1970 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.5ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 74 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
         
     | 
| 
      
 1971 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1972 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Exists (0.3ms)[0m  SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'kLiF3TraOs_NC2WUYqqL3AA9qkAGhimafcqgAbKbCxEg' LIMIT 1
         
     | 
| 
      
 1973 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 74], ["target_type", "User"], ["token", "kLiF3TraOs_NC2WUYqqL3AA9qkAGhimafcqgAbKbCxEg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1974 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1975 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1976 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 21  [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1977 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1978 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Load (0.4ms)[0m  SELECT "notify_user_user_hashes".* FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."target_id" = 74 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
         
     | 
| 
      
 1979 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1980 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'qQj-v-rTk15SQbxJ2b-E3AhT65qCUAA8h4Wno9TIWt-Q' LIMIT 1
         
     | 
| 
      
 1981 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 74], ["target_type", "User"], ["token", "qQj-v-rTk15SQbxJ2b-E3AhT65qCUAA8h4Wno9TIWt-Q"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1982 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1983 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 1984 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  BEGIN
         
     | 
| 
      
 1985 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1986 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1987 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1988 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1989 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 75) LIMIT 1[0m
         
     | 
| 
      
 1990 
     | 
    
         
            +
              [1m[35mSQL (0.3ms)[0m  INSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 75], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 1991 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1992 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 1993 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m  [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 18 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 75) LIMIT 1[0m
         
     | 
| 
      
 1994 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 1995 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 1996 
     | 
    
         
            +
              [1m[35m (0.5ms)[0m  SELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 75 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 1997 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK TO SAVEPOINT active_record_1[0m
         
     | 
| 
      
 1998 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 1999 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2000 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2001 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2002 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2003 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2004 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1
         
     | 
| 
      
 2005 
     | 
    
         
            +
              [1m[36mSQL (0.3ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 76], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2006 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2007 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2008 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 19 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 76) LIMIT 1
         
     | 
| 
      
 2009 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2010 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2011 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Exists (0.4ms)[0m  [1mSELECT 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" = 76) LIMIT 1[0m
         
     | 
| 
      
 2012 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 2013 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Load (0.3ms)[0m  [1mSELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" ORDER BY "notify_user_unsubscribes"."id" DESC LIMIT 1[0m
         
     | 
| 
      
 2014 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2015 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2016 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2017 
     | 
    
         
            +
              [1m[36mSQL (0.5ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2018 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2019 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2020 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.5ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1
         
     | 
| 
      
 2021 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_unsubscribes" ("created_at", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 77], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2022 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2023 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2024 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."id" != 20 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1
         
     | 
| 
      
 2025 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2026 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2027 
     | 
    
         
            +
              [1m[36mNotifyUser::Unsubscribe Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_unsubscribes" WHERE ("notify_user_unsubscribes"."type" = 'NewPostNotification' AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."target_id" = 77) LIMIT 1[0m
         
     | 
| 
      
 2028 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK TO SAVEPOINT active_record_1
         
     | 
| 
      
 2029 
     | 
    
         
            +
              [1m[36m (0.3ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 2030 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Load (0.4ms)[0m  SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 2031 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2032 
     | 
    
         
            +
              [1m[35mSQL (0.3ms)[0m  DELETE FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."id" = $1  [["id", 20]]
         
     | 
| 
      
 2033 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2034 
     | 
    
         
            +
              [1m[35mNotifyUser::Unsubscribe Load (0.3ms)[0m  SELECT "notify_user_unsubscribes".* FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 77 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'
         
     | 
| 
      
 2035 
     | 
    
         
            +
              [1m[36m (7.8ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 2036 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  BEGIN
         
     | 
| 
      
 2037 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2038 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2039 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2040 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2041 
     | 
    
         
            +
              [1m[36m (0.5ms)[0m  [1mSELECT COUNT(*) FROM "notify_user_unsubscribes" WHERE "notify_user_unsubscribes"."target_id" = 78 AND "notify_user_unsubscribes"."target_type" = 'User' AND "notify_user_unsubscribes"."type" = 'NewPostNotification'[0m
         
     | 
| 
      
 2042 
     | 
    
         
            +
              [1m[35mSQL (0.5ms)[0m  INSERT INTO "notify_user_notifications" ("created_at", "params", "state", "target_id", "target_type", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["params", {:name=>"Mr. Blobby"}], ["state", "pending"], ["target_id", 78], ["target_type", "User"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2043 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2044 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2045 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2046 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2047 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2048 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2049 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2050 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Exists (0.4ms)[0m  SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'd-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA' LIMIT 1
         
     | 
| 
      
 2051 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 79], ["target_type", "User"], ["token", "d-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2052 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2053 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2054 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2055 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'd-7RFJ7NvnmDOS_1kQmvnQjE_lZLd8k2HZIZqlQzNDYA' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1[0m
         
     | 
| 
      
 2056 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2057 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2058 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2059 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2060 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2061 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2062 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Exists (0.3ms)[0m  SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg' LIMIT 1
         
     | 
| 
      
 2063 
     | 
    
         
            +
              [1m[36mSQL (0.4ms)[0m  [1mINSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 80], ["target_type", "User"], ["token", "GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2064 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2065 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2066 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2067 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2068 
     | 
    
         
            +
              [1m[35mSQL (0.6ms)[0m  UPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 24  [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2069 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2070 
     | 
    
         
            +
              [1m[35mNotifyUser::UserHash Exists (0.3ms)[0m  SELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'GUTVF1ABPzQVYVCtlqmj7Qzr79WMP7AstRrh62BOjmRg' AND "notify_user_user_hashes"."type" = 'NewPostNotification' AND "notify_user_user_hashes"."active" = 't' LIMIT 1
         
     | 
| 
      
 2071 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 2072 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  BEGIN
         
     | 
| 
      
 2073 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2074 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2075 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2076 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2077 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = '5Bx1cN73fe2A3ARgRUZx5gtvSmizmCWb7asGhAPiZNOA' LIMIT 1[0m
         
     | 
| 
      
 2078 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 81], ["target_type", "User"], ["token", "5Bx1cN73fe2A3ARgRUZx5gtvSmizmCWb7asGhAPiZNOA"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2079 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2080 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2081 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2082 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2083 
     | 
    
         
            +
              [1m[36mSQL (0.6ms)[0m  [1mUPDATE "notify_user_user_hashes" SET "active" = $1, "updated_at" = $2 WHERE "notify_user_user_hashes"."id" = 25[0m  [["active", false], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2084 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  RELEASE SAVEPOINT active_record_1
         
     | 
| 
      
 2085 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mROLLBACK[0m
         
     | 
| 
      
 2086 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  BEGIN
         
     | 
| 
      
 2087 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mSAVEPOINT active_record_1[0m
         
     | 
| 
      
 2088 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "users" ("created_at", "email", "updated_at") VALUES ($1, $2, $3) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2089 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2090 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2091 
     | 
    
         
            +
              [1m[36mNotifyUser::UserHash Exists (0.3ms)[0m  [1mSELECT 1 AS one FROM "notify_user_user_hashes" WHERE "notify_user_user_hashes"."token" = 'mG9DpfvnCo72ppQBZMWR4wD2J5l1B-6y3Ef68ncElEAg' LIMIT 1[0m
         
     | 
| 
      
 2092 
     | 
    
         
            +
              [1m[35mSQL (0.4ms)[0m  INSERT INTO "notify_user_user_hashes" ("created_at", "target_id", "target_type", "token", "type", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["created_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00], ["target_id", 82], ["target_type", "User"], ["token", "mG9DpfvnCo72ppQBZMWR4wD2J5l1B-6y3Ef68ncElEAg"], ["type", "NewPostNotification"], ["updated_at", Mon, 28 Apr 2014 04:17:57 UTC +00:00]]
         
     | 
| 
      
 2093 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2094 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  SAVEPOINT active_record_1
         
     | 
| 
      
 2095 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mRELEASE SAVEPOINT active_record_1[0m
         
     | 
| 
      
 2096 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2097 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2098 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 2099 
     | 
    
         
            +
              [1m[36m (0.2ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2100 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 2101 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2102 
     | 
    
         
            +
              [1m[35m (0.2ms)[0m  ROLLBACK
         
     | 
| 
      
 2103 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2104 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2105 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2106 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2107 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2108 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     | 
| 
      
 2109 
     | 
    
         
            +
              [1m[36m (0.1ms)[0m  [1mBEGIN[0m
         
     | 
| 
      
 2110 
     | 
    
         
            +
              [1m[35m (0.1ms)[0m  ROLLBACK
         
     |